mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
add TypeORM to javascript.qll file
add tests improvement on comments
This commit is contained in:
10
javascript/ql/test/library-tests/frameworks/SQL/sqlite3.js
Normal file
10
javascript/ql/test/library-tests/frameworks/SQL/sqlite3.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// Adapted from https://github.com/mapbox/node-sqlite3/wiki/API, which is
|
||||
// part of the node-sqlite3 project, which is licensed under the BSD 3-Clause
|
||||
// License; see file node-sqlite3-LICENSE.
|
||||
var sqlite = require('sqlite3');
|
||||
|
||||
var db = new sqlite.Database(":memory:");
|
||||
db.run("UPDATE tbl SET name = ? WHERE id = ?", "bar", 2)
|
||||
.run("UPDATE tbl SET name = ? WHERE id = ?", "foo", 3);
|
||||
|
||||
exports.db = db;
|
||||
Reference in New Issue
Block a user