db-conn-mssql
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Microsoft SQL Server driver of db-conn(JDBC)

  1. based on tedious, pure javascript
  2. Typescript async/await

Connect

var config:tds.ConnectionConfig = {
    authentication: {
        type: "default",
        options: {
            userName: "sa",
            password: "12345678",
        },
    },
    options: {
        trustServerCertificate: true,
    },
    server: "localhost",
};
const driver = new  MssqlDriver();
const conn: Connection = await driver.connect(config);
const rt = await conn.execute(`select * from test`);
console.debug(rt.data);
await conn.close();

Package Sidebar

Install

npm i db-conn-mssql

Weekly Downloads

0

Version

1.3.0

License

MIT

Unpacked Size

23.2 kB

Total Files

23

Last publish

Collaborators

  • sunxufei