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

Function Foo

test/20.statement.run.js:152–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 this.db.prepare('INSERT INTO entries VALUES (?, ?, ?, ?)').run('foo', { low: 25, high: 25 }, 25, Buffer.alloc(8).fill(0xdd))
151 ).to.throw(RangeError);
152 function Foo() {
153 this.a = 'foo';
154 this.b = 25;
155 this.c = 25;
156 this.d = Buffer.alloc(8).fill(0xdd);
157 }
158 expect(() =>
159 this.db.prepare('INSERT INTO entries VALUES (@a, @b, @c, @d)').run(new Foo)
160 ).to.throw(TypeError);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected