Skip to content

Commit 2e519da

Browse files
committed
sqlite: fix persistent prepare doc
1 parent d32e5e6 commit 2e519da

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎doc/api/sqlite.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,9 @@ console.log(query.get());
674674
<!-- YAML
675675
added: v22.5.0
676676
changes:
677+
- version: REPLACEME
678+
pr-url: https://github.com/nodejs/node/pull/62757
679+
description: Add the `persistent` option.
677680
- version: REPLACEME
678681
pr-url: https://github.com/nodejs/node/pull/65157
679682
description: Throw `ERR_INVALID_ARG_VALUE` if `sql` contains no statements.
@@ -691,8 +694,8 @@ changes:
691694
* `allowUnknownNamedParameters` {boolean} If `true`, unknown named parameters
692695
are ignored. **Default:** inherited from database options or `false`.
693696
* `persistent` {boolean} If `true`, hints to SQLite that this statement will
694-
be reused many times, causing it to use a different memory allocation
695-
strategy that reduces heap fragmentation. Corresponds to the
697+
be retained for a long time and likely reused many times. SQLite currently
698+
responds to this hint by avoiding lookaside memory. Corresponds to the
696699
[`SQLITE_PREPARE_PERSISTENT`][] flag. **Default:** `false`.
697700
* Returns: {StatementSync} The prepared statement.
698701

0 commit comments

Comments
 (0)