summaryrefslogtreecommitdiff
path: root/sqlite3.h
diff options
context:
space:
mode:
authorGravatar data-man2021-03-13 21:08:00 +0500
committerGravatar data-man2021-03-13 21:08:00 +0500
commitd19e7ee48356da21c86014d7ec8aa5449da4ec7c (patch)
treea3406b6f2323a700fc92ccc6bda377fa1ffc5749 /sqlite3.h
parentconfigure linguist for github (diff)
downloadzig-sqlite-d19e7ee48356da21c86014d7ec8aa5449da4ec7c.tar.gz
zig-sqlite-d19e7ee48356da21c86014d7ec8aa5449da4ec7c.tar.xz
zig-sqlite-d19e7ee48356da21c86014d7ec8aa5449da4ec7c.zip
Update SQLite's sources to 3.35 version
Diffstat (limited to '')
-rw-r--r--sqlite3.h61
1 files changed, 44 insertions, 17 deletions
diff --git a/sqlite3.h b/sqlite3.h
index 9098a37..53d9ec8 100644
--- a/sqlite3.h
+++ b/sqlite3.h
@@ -123,9 +123,9 @@ extern "C" {
123** [sqlite3_libversion_number()], [sqlite3_sourceid()], 123** [sqlite3_libversion_number()], [sqlite3_sourceid()],
124** [sqlite_version()] and [sqlite_source_id()]. 124** [sqlite_version()] and [sqlite_source_id()].
125*/ 125*/
126#define SQLITE_VERSION "3.34.0" 126#define SQLITE_VERSION "3.35.0"
127#define SQLITE_VERSION_NUMBER 3034000 127#define SQLITE_VERSION_NUMBER 3035000
128#define SQLITE_SOURCE_ID "2020-12-01 16:14:00 a26b6597e3ae272231b96f9982c3bcc17ddec2f2b6eb4df06a224b91089fed5b" 128#define SQLITE_SOURCE_ID "2021-03-12 15:10:09 acd63062eb06748bfe9e4886639e4f2b54ea6a496a83f10716abbaba4115500b"
129 129
130/* 130/*
131** CAPI3REF: Run-Time Library Version Numbers 131** CAPI3REF: Run-Time Library Version Numbers
@@ -2115,7 +2115,13 @@ struct sqlite3_mem_methods {
2115** The second parameter is a pointer to an integer into which 2115** The second parameter is a pointer to an integer into which
2116** is written 0 or 1 to indicate whether triggers are disabled or enabled 2116** is written 0 or 1 to indicate whether triggers are disabled or enabled
2117** following this call. The second parameter may be a NULL pointer, in 2117** following this call. The second parameter may be a NULL pointer, in
2118** which case the trigger setting is not reported back. </dd> 2118** which case the trigger setting is not reported back.
2119**
2120** <p>Originally this option disabled all triggers. ^(However, since
2121** SQLite version 3.35.0, TEMP triggers are still allowed even if
2122** this option is off. So, in other words, this option now only disables
2123** triggers in the main database schema or in the schemas of ATTACH-ed
2124** databases.)^ </dd>
2119** 2125**
2120** [[SQLITE_DBCONFIG_ENABLE_VIEW]] 2126** [[SQLITE_DBCONFIG_ENABLE_VIEW]]
2121** <dt>SQLITE_DBCONFIG_ENABLE_VIEW</dt> 2127** <dt>SQLITE_DBCONFIG_ENABLE_VIEW</dt>
@@ -2126,7 +2132,13 @@ struct sqlite3_mem_methods {
2126** The second parameter is a pointer to an integer into which 2132** The second parameter is a pointer to an integer into which
2127** is written 0 or 1 to indicate whether views are disabled or enabled 2133** is written 0 or 1 to indicate whether views are disabled or enabled
2128** following this call. The second parameter may be a NULL pointer, in 2134** following this call. The second parameter may be a NULL pointer, in
2129** which case the view setting is not reported back. </dd> 2135** which case the view setting is not reported back.
2136**
2137** <p>Originally this option disabled all views. ^(However, since
2138** SQLite version 3.35.0, TEMP views are still allowed even if
2139** this option is off. So, in other words, this option now only disables
2140** views in the main database schema or in the schemas of ATTACH-ed
2141** databases.)^ </dd>
2130** 2142**
2131** [[SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER]] 2143** [[SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER]]
2132** <dt>SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</dt> 2144** <dt>SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</dt>
@@ -3499,6 +3511,7 @@ SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
3499** that uses dot-files in place of posix advisory locking. 3511** that uses dot-files in place of posix advisory locking.
3500** <tr><td> file:data.db?mode=readonly <td> 3512** <tr><td> file:data.db?mode=readonly <td>
3501** An error. "readonly" is not a valid option for the "mode" parameter. 3513** An error. "readonly" is not a valid option for the "mode" parameter.
3514** Use "ro" instead: "file:data.db?mode=ro".
3502** </table> 3515** </table>
3503** 3516**
3504** ^URI hexadecimal escape sequences (%HH) are supported within the path and 3517** ^URI hexadecimal escape sequences (%HH) are supported within the path and
@@ -3697,7 +3710,7 @@ SQLITE_API sqlite3_file *sqlite3_database_file_object(const char*);
3697** If the Y parameter to sqlite3_free_filename(Y) is anything other 3710** If the Y parameter to sqlite3_free_filename(Y) is anything other
3698** than a NULL pointer or a pointer previously acquired from 3711** than a NULL pointer or a pointer previously acquired from
3699** sqlite3_create_filename(), then bad things such as heap 3712** sqlite3_create_filename(), then bad things such as heap
3700** corruption or segfaults may occur. The value Y should be 3713** corruption or segfaults may occur. The value Y should not be
3701** used again after sqlite3_free_filename(Y) has been called. This means 3714** used again after sqlite3_free_filename(Y) has been called. This means
3702** that if the [sqlite3_vfs.xOpen()] method of a VFS has been called using Y, 3715** that if the [sqlite3_vfs.xOpen()] method of a VFS has been called using Y,
3703** then the corresponding [sqlite3_module.xClose() method should also be 3716** then the corresponding [sqlite3_module.xClose() method should also be
@@ -7765,7 +7778,8 @@ SQLITE_API int sqlite3_test_control(int op, ...);
7765#define SQLITE_TESTCTRL_PRNG_SEED 28 7778#define SQLITE_TESTCTRL_PRNG_SEED 28
7766#define SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS 29 7779#define SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS 29
7767#define SQLITE_TESTCTRL_SEEK_COUNT 30 7780#define SQLITE_TESTCTRL_SEEK_COUNT 30
7768#define SQLITE_TESTCTRL_LAST 30 /* Largest TESTCTRL */ 7781#define SQLITE_TESTCTRL_TRACEFLAGS 31
7782#define SQLITE_TESTCTRL_LAST 31 /* Largest TESTCTRL */
7769 7783
7770/* 7784/*
7771** CAPI3REF: SQL Keyword Checking 7785** CAPI3REF: SQL Keyword Checking
@@ -10439,6 +10453,14 @@ SQLITE_API int sqlite3session_patchset(
10439SQLITE_API int sqlite3session_isempty(sqlite3_session *pSession); 10453SQLITE_API int sqlite3session_isempty(sqlite3_session *pSession);
10440 10454
10441/* 10455/*
10456** CAPI3REF: Query for the amount of heap memory used by a session object.
10457**
10458** This API returns the total amount of heap memory in bytes currently
10459** used by the session object passed as the only argument.
10460*/
10461SQLITE_API sqlite3_int64 sqlite3session_memory_used(sqlite3_session *pSession);
10462
10463/*
10442** CAPI3REF: Create An Iterator To Traverse A Changeset 10464** CAPI3REF: Create An Iterator To Traverse A Changeset
10443** CONSTRUCTOR: sqlite3_changeset_iter 10465** CONSTRUCTOR: sqlite3_changeset_iter
10444** 10466**
@@ -10540,18 +10562,23 @@ SQLITE_API int sqlite3changeset_next(sqlite3_changeset_iter *pIter);
10540** call to [sqlite3changeset_next()] must have returned [SQLITE_ROW]. If this 10562** call to [sqlite3changeset_next()] must have returned [SQLITE_ROW]. If this
10541** is not the case, this function returns [SQLITE_MISUSE]. 10563** is not the case, this function returns [SQLITE_MISUSE].
10542** 10564**
10543** If argument pzTab is not NULL, then *pzTab is set to point to a 10565** Arguments pOp, pnCol and pzTab may not be NULL. Upon return, three
10544** nul-terminated utf-8 encoded string containing the name of the table 10566** outputs are set through these pointers:
10545** affected by the current change. The buffer remains valid until either 10567**
10546** sqlite3changeset_next() is called on the iterator or until the 10568** *pOp is set to one of [SQLITE_INSERT], [SQLITE_DELETE] or [SQLITE_UPDATE],
10547** conflict-handler function returns. If pnCol is not NULL, then *pnCol is 10569** depending on the type of change that the iterator currently points to;
10548** set to the number of columns in the table affected by the change. If 10570**
10549** pbIndirect is not NULL, then *pbIndirect is set to true (1) if the change 10571** *pnCol is set to the number of columns in the table affected by the change; and
10572**
10573** *pzTab is set to point to a nul-terminated utf-8 encoded string containing
10574** the name of the table affected by the current change. The buffer remains
10575** valid until either sqlite3changeset_next() is called on the iterator
10576** or until the conflict-handler function returns.
10577**
10578** If pbIndirect is not NULL, then *pbIndirect is set to true (1) if the change
10550** is an indirect change, or false (0) otherwise. See the documentation for 10579** is an indirect change, or false (0) otherwise. See the documentation for
10551** [sqlite3session_indirect()] for a description of direct and indirect 10580** [sqlite3session_indirect()] for a description of direct and indirect
10552** changes. Finally, if pOp is not NULL, then *pOp is set to one of 10581** changes.
10553** [SQLITE_INSERT], [SQLITE_DELETE] or [SQLITE_UPDATE], depending on the
10554** type of change that the iterator currently points to.
10555** 10582**
10556** If no error occurs, SQLITE_OK is returned. If an error does occur, an 10583** If no error occurs, SQLITE_OK is returned. If an error does occur, an
10557** SQLite error code is returned. The values of the output variables may not 10584** SQLite error code is returned. The values of the output variables may not