add TypeORM to javascript.qll file

add tests
improvement on comments
This commit is contained in:
amammad
2023-09-29 01:21:52 +10:00
parent 0eb0c238f3
commit 58f4cd77dc
9 changed files with 366 additions and 20 deletions

View 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;