DefinitelyTyped/types/sybase-promised/sybase-promised-tests.ts
sergey12313 75a3799a51 add sybase-promised types (#37768)
* Add  types for num2fraction

* add sybase-promised types
2019-08-20 14:21:58 -07:00

19 lines
423 B
TypeScript

import Sybase = require("sybase-promised");
const config: Sybase.ConnectionOptions = {
dbname: "testDb",
host: "127.0.0.1",
password: "password",
port: 3223,
username: "user",
};
const sql = "SELECT * FROM test1";
(async () => {
const connection = new Sybase(config);
await connection.connect();
const result: string[] = await connection.query(sql);
connection.disconnect();
})();