Skip to main content
StatementSync.prototype.setReadBigInts - node__sqlite.d.ts - Node documentation
method StatementSync.prototype.setReadBigInts

Usage in Deno

```typescript import { StatementSync } from "node:node__sqlite.d.ts"; ```
StatementSync.prototype.setReadBigInts(enabled: boolean): void
When reading from the database, SQLite `INTEGER`s are mapped to JavaScript numbers by default. However, SQLite `INTEGER`s can store values larger than JavaScript numbers are capable of representing. In such cases, this method can be used to read `INTEGER` data using JavaScript `BigInt`s. This method has no impact on database write operations where numbers and `BigInt`s are both supported at all times.

Parameters

enabled: boolean
Enables or disables the use of `BigInt`s when reading `INTEGER` fields from the database.

Return Type

void