sybase-promised
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/sybase-promised package

1.0.4 • Public • Published

Sybase Promised

A wrapper using the Promise philosophy for the sybase package.

Usage

Install

npm install sybase-promised

Import

const Sybase = require('sybase-promised')

Instantiate an object

const db = new Sybase({
  host: 'locahost',
  port: 2638,
  dbname: 'sybase',
  username: 'root',
  password: '1234',
})

Start the connection

await db.connect()

Execute a query

const rs = await db.query('SELECT * FROM table')

Close the connection

db.disconnect()

Disclaimer

I know the sybase package is long without any updates but it worked for me and I decided to make it easier to use by bringing it to a more current standard used Promises.

Any questions or suggestions for improvement send an email to mscamargo@outlook.com.br or open a issue.

Package Sidebar

Install

npm i sybase-promised

Weekly Downloads

640

Version

1.0.4

License

MIT

Unpacked Size

3.99 kB

Total Files

7

Last publish

Collaborators

  • mscamargo