ts-hdb
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

HDB Driver (TypeScript)

minimal type-safe hdb driver

npm node-test codecov Quality Gate Status

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()

CHANGELOG

LICENSE

Readme

Keywords

Package Sidebar

Install

npm i ts-hdb

Weekly Downloads

7

Version

0.1.8

License

Apache-2.0

Unpacked Size

326 kB

Total Files

32

Last publish

Collaborators

  • suntao