MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / customTableArg

Function customTableArg

test/40.bigints.js:88–92  ·  view source on GitHub ↗
(name, options, dontDefine)

Source from the content-addressed store, hash-verified

86 return arg;
87 };
88 const customTableArg = (name, options, dontDefine) => {
89 dontDefine || this.db.table(name, { ...options, columns: ['x'], *rows(a) { arg = a; } });
90 this.db.prepare(`SELECT * FROM ${name}(?)`).get(int);
91 return arg;
92 };
93 this.db.prepare('INSERT INTO entries VALUES (?, ?, ?)').run(int, int, int);
94 this.db.defaultSafeIntegers(true);
95

Callers 1

40.bigints.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected