How to use the msnodesqlv8.query function in msnodesqlv8

To help you get started, we’ve selected a few msnodesqlv8 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TimelordUK / node-sqlserver-v8 / samples / typescript / mssql-demo.ts View on Github external
function (async_done: Function) {
            console.log('execute an ad hoc query with temporary connection.');
            let q = "declare @s NVARCHAR(MAX) = ?; select @s as s";
            sql.query(conn_str, q, ['node is great'], (err, res) => {
                Assert.ifError(err);
                console.log(res);
                async_done();
            });
        },

msnodesqlv8

Microsoft Driver for Node.js SQL Server compatible with all versions of Node.

Apache-2.0
Latest version published 7 months ago

Package Health Score

73 / 100
Full package analysis