Package Exports
- ts-hdb
- ts-hdb/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ts-hdb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
HDB Driver (TypeScript)
minimal type-safe hdb driver
Get Started
npm i -S ts-hdb
import { HDBClient } from "ts-hdb";
async function run() {
const client = new HDBClient({
host: "hostname",
port: 443,
user: "username",
password: "password",
useTLS: true,
});
for await (const row of client.streamQueryObject(
'SELECT A,B,c,D as "d" FROM A_TABLE'
)) {
// the type of `row` is { A: any, B: any, C: any, d: any}
// row.A
// row.B
// row.C
// row.d
}
}
run();
Troubleshooting
export NODE_DEBUG=hdb-client