db-conn-hdb
Version:
Database Connecton and Pool implementation for SAP HANA hdb
40 lines (36 loc) • 830 B
Markdown
1) based on hdb, pure javascript
2) Typescript async/await
```
const config: HdbConnectionConfig = {
host:"1.1.1.10",
port: 30013,
user: "system",
password: "********",
databaseName: "DBA"
}
const driver = new HdbDriver();
const conn: Connection = await driver.connect(c);
const rt = await conn.executeQuery("select * from dummy");
await conn.close();
```
```
const poolConfig: any = {
min: 2,
max: 5
}
const driver = new HdbDriver();
const pool: DataSource = new GenericPool(driver, config, poolConfig);
const conn1 = await pool.getConnection();
const conn2 = await pool.getConnection();
await conn1.close();
await conn2.close();
await pool.close();
```
1) SQLException removed
1) Column metadata support