Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: update SQLite documentation with changes
  • Loading branch information
miguelmarcondesf committed Jun 17, 2025
commit 7f0c06b9874a77d5a53010bcd6d0b52d3f734210
5 changes: 5 additions & 0 deletions doc/api/sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ exposed by this class execute synchronously.

<!-- YAML
added: v22.5.0
changes:
- version:
- REPLACEME
Comment thread
miguelmarcondesf marked this conversation as resolved.
Outdated
pr-url: https://github.com/nodejs/node/pull/58697
description: Add new SQLite database options.
-->

* `path` {string | Buffer | URL} The path of the database. A SQLite database can be
Expand Down
4 changes: 0 additions & 4 deletions test/parallel/test-sqlite-database-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,9 @@ suite('DatabaseSync() constructor', () => {
t.assert.strictEqual(setup, undefined);

const query = db.prepare('SELECT val FROM data');
t.assert.strictEqual(query.setReadBigInts(true), undefined);
t.assert.deepStrictEqual(query.get(), { __proto__: null, val: 42n });

const insert = db.prepare('INSERT INTO data (key) VALUES (?)');
t.assert.strictEqual(insert.setReadBigInts(true), undefined);
t.assert.deepStrictEqual(
insert.run(20),
{ changes: 1n, lastInsertRowid: 20n },
Expand All @@ -219,11 +217,9 @@ suite('DatabaseSync() constructor', () => {
t.assert.strictEqual(setup, undefined);

const query = db.prepare('SELECT val FROM data');
t.assert.strictEqual(query.setReadBigInts(false), undefined);
t.assert.deepStrictEqual(query.get(), { __proto__: null, val: 42 });

const insert = db.prepare('INSERT INTO data (key) VALUES (?)');
t.assert.strictEqual(insert.setReadBigInts(false), undefined);
t.assert.deepStrictEqual(
insert.run(20),
{ changes: 1, lastInsertRowid: 20 },
Expand Down
Loading