Optional ReadonlyallowIf true, allows bare named parameters (without prefix). Overrides database-level setting.
Node.js v25+ feature - silently ignored by node:sqlite on v24 and earlier.
Optional ReadonlyallowIf true, unknown named parameters are ignored. Overrides database-level setting.
Node.js v25+ feature - silently ignored by node:sqlite on v24 and earlier.
Optional ReadonlyanonymousIf true, anonymous parameters are enabled for the statement.
Optional ReadonlyexpandedIf true, the prepared statement's expandedSQL property will contain the expanded SQL.
Optional ReadonlyreadIf true, read integer values as JavaScript BigInt. Overrides database-level setting.
Node.js v25+ feature - silently ignored by node:sqlite on v24 and earlier.
Optional ReadonlyreturnIf true, return results as arrays rather than objects. Overrides database-level setting.
Node.js v25+ feature - silently ignored by node:sqlite on v24 and earlier.
Options for creating a prepared statement.
Note: The per-statement override options (
readBigInts,returnArrays,allowBareNamedParameters,allowUnknownNamedParameters) are a Node.js v25+ feature. On Node.js v24 and earlier,node:sqlitesilently ignores these options. This library implements them for forward compatibility with Node.js v25+.