@@ -696,6 +696,9 @@ console.log(query.get());
696696<!-- YAML
697697added: v22.5.0
698698changes:
699+ - version: REPLACEME
700+ pr-url: https://github.com/nodejs/node/pull/62757
701+ description: Add the `persistent` option.
699702 - version: REPLACEME
700703 pr-url: https://github.com/nodejs/node/pull/65157
701704 description: Throw `ERR_INVALID_ARG_VALUE` if `sql` contains no statements.
@@ -712,10 +715,14 @@ changes:
712715 database options or ` true ` .
713716 * ` allowUnknownNamedParameters ` {boolean} If ` true ` , unknown named parameters
714717 are ignored. ** Default:** inherited from database options or ` false ` .
718+ * ` persistent ` {boolean} If ` true ` , hints to SQLite that this statement will
719+ be retained for a long time and likely reused many times. SQLite currently
720+ responds to this hint by avoiding lookaside memory. Corresponds to the
721+ [ ` SQLITE_PREPARE_PERSISTENT ` ] [ ] flag. ** Default:** ` false ` .
715722* Returns: {StatementSync} The prepared statement.
716723
717724Compiles a SQL statement into a [ prepared statement] [ ] . This method is a wrapper
718- around [ ` sqlite3_prepare_v2 ()` ] [ ] .
725+ around [ ` sqlite3_prepare_v3 ()` ] [ ] .
719726
720727### ` database.createTagStore([maxSize]) `
721728
@@ -1882,6 +1889,7 @@ callback function to indicate what type of operation is being authorized.
18821889[ `SQLITE_DETERMINISTIC` ] : https://www.sqlite.org/c3ref/c_deterministic.html
18831890[ `SQLITE_DIRECTONLY` ] : https://www.sqlite.org/c3ref/c_deterministic.html
18841891[ `SQLITE_MAX_FUNCTION_ARG` ] : https://www.sqlite.org/limits.html#max_function_arg
1892+ [ `SQLITE_PREPARE_PERSISTENT` ] : https://sqlite.org/c3ref/c_prepare_dont_log.html#sqlitepreparepersistent
18851893[ `SQLTagStore` ] : #class-sqltagstore
18861894[ `database.applyChangeset()` ] : #databaseapplychangesetchangeset-options
18871895[ `database.createTagStore()` ] : #databasecreatetagstoremaxsize
@@ -1907,7 +1915,7 @@ callback function to indicate what type of operation is being authorized.
19071915[ `sqlite3_get_autocommit()` ] : https://sqlite.org/c3ref/get_autocommit.html
19081916[ `sqlite3_last_insert_rowid()` ] : https://www.sqlite.org/c3ref/last_insert_rowid.html
19091917[ `sqlite3_load_extension()` ] : https://www.sqlite.org/c3ref/load_extension.html
1910- [ `sqlite3_prepare_v2 ()` ] : https://www.sqlite.org/c3ref/prepare.html
1918+ [ `sqlite3_prepare_v3 ()` ] : https://www.sqlite.org/c3ref/prepare.html
19111919[ `sqlite3_serialize()` ] : https://sqlite.org/c3ref/serialize.html
19121920[ `sqlite3_set_authorizer()` ] : https://sqlite.org/c3ref/set_authorizer.html
19131921[ `sqlite3_sql()` ] : https://www.sqlite.org/c3ref/expanded_sql.html
0 commit comments