How to use the msnodesqlv8.PollingQuery 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("cancel using query identifier.");
            let q: Query = conn.query(sql.PollingQuery("waitfor delay \'00:00:20\';"), function (err) {
                if (err) {
                    Assert.check(err.message.indexOf('Operation canceled') > 0);
                }
                
                async_done();
            });

            q.cancelQuery( err => {
                Assert.ifError(err);
            });
        },
github TimelordUK / node-sqlserver-v8 / samples / typescript / mssql-demo.ts View on Github external
function (async_done:Function) {
                    conn.prepare(sql.PollingQuery(s), (err: Error, pq: PreparedStatement) => {
                        Assert.check(!err);
                        prepared = pq;
                        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