MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / bindable

Function bindable

__tests__/telemetry-services.test.ts:42–42  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

40
41/** Binds integral numbers as INTEGER, as D1 does (node:sqlite would bind them as REAL). */
42const bindable = (v: unknown): unknown => (typeof v === 'number' && Number.isInteger(v) ? BigInt(v) : v);
43
44class SqliteD1Statement {
45 constructor(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected