sqlite: rename StatementSync to Statement · nodejs/node@3fa9279 · GitHub
Skip to content

Commit 3fa9279

Browse files
committed
sqlite: rename StatementSync to Statement
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
1 parent a4e3ee9 commit 3fa9279

12 files changed

Lines changed: 208 additions & 200 deletions

‎doc/api/deprecations.md‎

Lines changed: 14 additions & 0 deletions

‎doc/api/sqlite.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ changes:
741741
be retained for a long time and likely reused many times. SQLite currently
742742
responds to this hint by avoiding lookaside memory. Corresponds to the
743743
[`SQLITE_PREPARE_PERSISTENT`][] flag. **Default:** `false`.
744-
* Returns: {StatementSync} The prepared statement.
744+
* Returns: {Statement} The prepared statement.
745745

746746
Compiles a SQL statement into a [prepared statement][]. This method is a wrapper
747747
around [`sqlite3_prepare_v3()`][].
@@ -1043,7 +1043,7 @@ Closes the session. If the session is already closed, then this is a no-op. An
10431043
a changeset or patchset, or if the method is called from a callback that SQLite
10441044
invoked, under the same conditions as [`session.close()`][].
10451045

1046-
## Class: `StatementSync`
1046+
## Class: `Statement`
10471047

10481048
<!-- YAML
10491049
added: v22.5.0
@@ -1054,6 +1054,10 @@ instantiated via its constructor. Instead, instances are created via the
10541054
`database.prepare()` method. All APIs exposed by this class execute
10551055
synchronously.
10561056

1057+
`StatementSync` is a deprecated alias for `Statement`, kept for backward
1058+
compatibility with the class's previous name. See
1059+
[DEP0211](deprecations.md#dep0211-sqlitestatementsync).
1060+
10571061
A prepared statement is an efficient binary representation of the SQL used to
10581062
create it. Prepared statements are parameterizable, and can be invoked multiple
10591063
times with different bound values. Parameters also offer protection against

‎doc/type-map.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"Shareable": "stream_iter.html#interface-shareable",
126126
"Sign": "crypto.html#class-sign",
127127
"SQLTagStore": "sqlite.html#class-sqltagstore",
128-
"StatementSync": "sqlite.html#class-statementsync",
128+
"Statement": "sqlite.html#class-statement",
129129
"Stream": "stream.html#stream",
130130
"SubtleCrypto": "webcrypto.html#class-subtlecrypto",
131131
"SuiteContext": "test.html#class-suitecontext",

‎lib/sqlite.js‎

Lines changed: 6 additions & 8 deletions

0 commit comments

Comments
 (0)