Skip to content

Commit 00a153d

Browse files
committed
1 parent 8833e87 commit 00a153d

4 files changed

Lines changed: 35 additions & 12 deletions

File tree

apsw/sqlite_extra.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
"description": "functions for the exact display* and input of IEEE754 Binary64 floating-point numbers",
6060
"type": "extension"
6161
},
62+
"memstat": {
63+
"description": "Provides SQL access to the sqlite3_status64() and sqlite3_db_status() interfaces",
64+
"type": "extension"
65+
},
6266
"nextchar": {
6367
"description": "Finds all valid 'next' characters for a string given a vocabulary",
6468
"type": "extension"

doc/extra.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ is for convenience and to help promote these great extras. They add
99
just over 1MB to the download and 3MB of disk space.
1010

1111
Access is provided via an :ref:`API <extra_api>`, :ref:`command line
12-
<extra_api>`, and :ref:`shell <extra_shell>`
12+
<extra_cli>`, and :ref:`shell <extra_shell>`
1313

1414
vec1
15-
++++
15+
----
1616

1717
There is an experimental under development vector search library by
1818
the SQLite team. It is also included with the extras if possible.
@@ -34,6 +34,10 @@ elsewhere. (The SQLite library in that directory deliberately has a
3434
different name to avoid interactions with the standard system SQLite
3535
library.)
3636

37+
Extensions and programs that require third party libraries (eg
38+
compression), or TCL are not included, and optional third party
39+
libraries (eg readline) are not used.
40+
3741
Marking
3842
-------
3943

doc/sqlite_extra.rst-inc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Extensions
130130
* VTable: sqlite_btreeinfo
131131

132132
* - cksumvfs
133-
- `link <https://sqlite.org/src/file?ci=trunk&name=ext%2fmisc%2fcksumvfs.c>`__
133+
- `link <https://sqlite.org/cksumvfs.html>`__
134134
- A VFS shim that writes a checksum on each page of an SQLite database file
135135
-
136136
* Function: verify_checksum
@@ -143,13 +143,13 @@ Extensions
143143
* VTable: transitive_closure
144144

145145
* - completion
146-
- `link <https://sqlite.org/src/file?ci=trunk&name=ext%2fmisc%2fcompletion.c>`__
146+
- `link <https://sqlite.org/completion.html>`__
147147
- A virtual table that returns suggested completions for a partial SQL input
148148
-
149149
* VTable: completion
150150

151151
* - csv
152-
- `link <https://sqlite.org/src/file?ci=trunk&name=ext%2fmisc%2fcsv.c>`__
152+
- `link <https://sqlite.org/csv.html>`__
153153
- A virtual table for reading CSV files
154154
-
155155
* VTable: csv
@@ -186,6 +186,12 @@ Extensions
186186
-
187187
* Function: ieee754 ieee754_exponent ieee754_from_blob ieee754_from_int ieee754_inc ieee754_mantissa ieee754_to_blob ieee754_to_int
188188

189+
* - memstat
190+
- `link <https://sqlite.org/memstat.html>`__
191+
- Provides SQL access to the sqlite3_status64() and sqlite3_db_status() interfaces
192+
-
193+
* VTable: sqlite_memstat
194+
189195
* - nextchar
190196
- `link <https://sqlite.org/src/file?ci=trunk&name=ext%2fmisc%2fnextchar.c>`__
191197
- Finds all valid 'next' characters for a string given a vocabulary
@@ -215,7 +221,7 @@ Extensions
215221
- `link <https://sqlite.org/src/file?ci=trunk&name=ext%2fmisc%2fregexp.c>`__
216222
- Compact reasonably efficient posix extended regular expression matcher
217223
-
218-
* Function: regexpi
224+
* Function: regexp regexpi
219225

220226
* - rot13
221227
- `link <https://sqlite.org/src/file?ci=trunk&name=ext%2fmisc%2frot13.c>`__
@@ -244,7 +250,7 @@ Extensions
244250
* VTable: spellfix1
245251

246252
* - stmt
247-
- `link <https://sqlite.org/src/file?ci=trunk&name=ext%2fmisc%2fstmt.c>`__
253+
- `link <https://sqlite.org/stmt.html>`__
248254
- Virtual table with information about all prepared statements on a connection
249255
-
250256
* VTable: sqlite_stmt
@@ -283,7 +289,7 @@ Extensions
283289
- `link <https://sqlite.org/vec1/doc/trunk/doc/vec1intro.md>`__
284290
- Vector search. !Experimental! !Under development! Loading on before 2013 CPU may crash process
285291
-
286-
* Function: vec1_cos_distance vec1_from_json vec1_info vec1_l2_distance vec1_test_pq_decode vec1_test_pq_distortion vec1_test_pq_encode vec1_to_json vec1_to_json_f vec1_to_json_i vec1_train
292+
* Function: vec1_cos_distance vec1_from_json vec1_info vec1_l2_distance vec1_qinstr vec1_test_pq_decode vec1_test_pq_distortion vec1_test_pq_encode vec1_to_json vec1_to_json_f vec1_to_json_i vec1_train
287293
* VTable: vec1
288294

289295
* - vfsstat

tools/vend.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ def __post_init__(self):
7777
name="btreeinfo",
7878
description="btreeinfo virtual table that shows information about all btrees in an SQLite database file",
7979
),
80+
# bytecode: part of library source, can't be separately built
8081
Extra(
8182
name="cksumvfs",
8283
description="A VFS shim that writes a checksum on each page of an SQLite database file",
84+
doc="cksumvfs.html",
8385
),
8486
Extra(
8587
name="closure",
@@ -88,11 +90,14 @@ def __post_init__(self):
8890
Extra(
8991
name="completion",
9092
description="A virtual table that returns suggested completions for a partial SQL input",
93+
doc="completion.html",
9194
),
9295
Extra(
9396
name="csv",
9497
description="A virtual table for reading CSV files",
98+
doc="csv.html",
9599
),
100+
# dbstat: part of library source, can't be separately built
96101
Extra(
97102
name="decimal",
98103
description="Routines to implement arbitrary-precision decimal math",
@@ -114,6 +119,11 @@ def __post_init__(self):
114119
name="ieee754",
115120
description="functions for the exact display* and input of IEEE754 Binary64 floating-point numbers",
116121
),
122+
Extra(
123+
name="memstat",
124+
description="Provides SQL access to the sqlite3_status64() and sqlite3_db_status() interfaces",
125+
doc="memstat.html",
126+
),
117127
Extra(
118128
name="nextchar",
119129
description="Finds all valid 'next' characters for a string given a vocabulary",
@@ -154,6 +164,7 @@ def __post_init__(self):
154164
Extra(
155165
name="stmt",
156166
description="Virtual table with information about all prepared statements on a connection",
167+
doc="stmt.html",
157168
),
158169
Extra(
159170
name="stmtrand",
@@ -368,10 +379,8 @@ def make_windows_resource(manifest_filename: str | None, **fields):
368379
out.append(f"#define SQLITE_RESOURCE_VERSION {','.join(Version['SQLITE_VERSION'].split('.'))}")
369380
if manifest_filename:
370381
# inject manifest here
371-
location = c_quote(manifest_filename.replace('\\', '\\\\'))
372-
out.append(
373-
f"CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST {location}"
374-
)
382+
location = c_quote(manifest_filename.replace("\\", "\\\\"))
383+
out.append(f"CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST {location}")
375384
continue
376385
if line.strip().startswith("VALUE"):
377386
seen_value = True

0 commit comments

Comments
 (0)