Skip to content

Commit

Permalink
fix: typo in docs and types for sqlite (#13727)
Browse files Browse the repository at this point in the history
  • Loading branch information
sacsbrainz authored Sep 4, 2024
1 parent a9cf463 commit cd7f6a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ const results = query.all("hello", "goodbye");

sqlite supports signed 64 bit integers, but JavaScript only supports signed 52 bit integers or arbitrary precision integers with `bigint`.

`bigint` input is supported everywhere, but by default `bun:sqlite` returns integers as `number` types. If you need to handle integers larger than 2^53, set `safeInteger` option to `true` when creating a `Database` instance. This also validates that `bigint` passed to `bun:sqlite` do not exceed 64 bits.
`bigint` input is supported everywhere, but by default `bun:sqlite` returns integers as `number` types. If you need to handle integers larger than 2^53, set `safeIntegers` option to `true` when creating a `Database` instance. This also validates that `bigint` passed to `bun:sqlite` do not exceed 64 bits.

By default, `bun:sqlite` returns integers as `number` types. If you need to handle integers larger than 2^53, you can use the `bigint` type.

Expand Down
2 changes: 1 addition & 1 deletion packages/bun-types/sqlite.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ declare module "bun:sqlite" {
* @default false
* @since v1.1.14
*/
safeInteger?: boolean;
safeIntegers?: boolean;

/**
* When set to `false` or `undefined`:
Expand Down

0 comments on commit cd7f6a1

Please sign in to comment.