sqlite/ext/misc
drh 6a726fa175 Fix separate compilation of json1.c, which was apparently broken by
check-in [32f33f356931242b].

FossilOrigin-Name: 0c7ece6792d30bdb314e2a6e61d0c051c3619a2d749f8b1df7dc2b1f521388bf
2021-10-05 15:30:52 +00:00
..
amatch.c Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set 2020-01-07 19:45:40 +00:00
anycollseq.c Add the anycollseq.c loadable extension in etc/misc 2017-04-16 22:08:31 +00:00
appendvfs.c Add NULL checks on all sqlite3_vfs_find(0) calls. This is not strictly 2021-06-15 15:15:40 +00:00
blobio.c Fix an error message on the blobread() extension function so that it says 2019-05-27 11:21:43 +00:00
btreeinfo.c Extend the refactoring into extensions. Clean up stray newlines. 2020-06-19 15:24:12 +00:00
carray.c Add the usual "#ifdef __cplusplus" magic to header file ext/misc/carray.h. Also update carray.h/carray.c to use SQLITE_API in the usual way. 2021-07-09 11:52:53 +00:00
carray.h Add the usual "#ifdef __cplusplus" magic to header file ext/misc/carray.h. Also update carray.h/carray.c to use SQLITE_API in the usual way. 2021-07-09 11:52:53 +00:00
cksumvfs.c Add NULL checks on all sqlite3_vfs_find(0) calls. This is not strictly 2021-06-15 15:15:40 +00:00
closure.c Fix various harmless compiler warnings seen with MSVC. 2019-03-20 05:45:03 +00:00
completion.c Extend the refactoring into extensions. Clean up stray newlines. 2020-06-19 15:24:12 +00:00
compress.c The compress() function should not be deterministic since the same input can 2020-01-17 21:12:22 +00:00
csv.c In the CSV extension, use SQLITE_TRANSIENT rather than SQLITE_STATIC on 2020-10-07 11:24:45 +00:00
dbdata.c Fix another small buffer overread in sqlite_dbdata triggered by a corrupt database page. 2019-05-09 18:37:37 +00:00
dbdump.c Extend the refactoring into extensions. Clean up stray newlines. 2020-06-19 15:24:12 +00:00
decimal.c Fix a potential memory leak following OOM in the decimal extension. 2021-05-03 13:24:30 +00:00
eval.c Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set 2020-01-07 19:45:40 +00:00
explain.c Extend the refactoring into extensions. Clean up stray newlines. 2020-06-19 15:24:12 +00:00
fileio.c Accomplish fileio standalone for Win32 with less intervention. 2021-09-20 21:42:39 +00:00
fossildelta.c Fix the fossildelta.c extension so that it will compile on mingw. 2020-01-09 23:07:21 +00:00
fuzzer.c Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set 2020-01-07 19:45:40 +00:00
ieee754.c Fix harmless compiler warnings. 2021-10-01 21:01:07 +00:00
json1.c Fix separate compilation of json1.c, which was apparently broken by 2021-10-05 15:30:52 +00:00
memstat.c Use 64-bit math to compute the sizes of memory allocations in extensions. 2019-01-08 20:02:48 +00:00
memtrace.c Fix a harmless compiler warning in the memtrace.c extension. 2019-02-05 19:52:39 +00:00
memvfs.c Add NULL checks on all sqlite3_vfs_find(0) calls. This is not strictly 2021-06-15 15:15:40 +00:00
mmapwarm.c Extend the refactoring into extensions. Clean up stray newlines. 2020-06-19 15:24:12 +00:00
nextchar.c Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set 2020-01-07 19:45:40 +00:00
noop.c Add the new noop_nd() debugging function to the noop.c extension. 2020-01-14 16:33:07 +00:00
normalize.c Fix harmless compiler warnings that surface in newer versions of GCC. 2020-08-10 14:18:00 +00:00
percentile.c Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set 2020-01-07 19:45:40 +00:00
prefixes.c Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set 2020-01-07 19:45:40 +00:00
README.md Updates to the README.md file for the ext/misc directory. No code changes. 2018-01-09 15:28:25 +00:00
regexp.c Remove unnecessary end-of-line whitespace from the regexp.c extension. 2021-06-07 00:54:38 +00:00
remember.c Comment changes clarifying details of the pointer-type parameter. No 2017-07-17 12:41:29 +00:00
rot13.c Fix the rot13.c extension to be deterministic. Add the noop.c extension. 2020-01-08 15:43:29 +00:00
scrub.c Extend the refactoring into extensions. Clean up stray newlines. 2020-06-19 15:24:12 +00:00
series.c Fix harmless compiler warnings 2021-10-02 16:39:16 +00:00
sha1.c Mark the sha1() extension function as SQLITE_DETERMINISTIC. 2020-02-10 19:24:49 +00:00
shathree.c Fix an issue with sha3_query() when the first argument contains blank 2021-01-08 19:53:18 +00:00
showauth.c Add the "showauth" extension in ext/misc. 2014-09-21 17:51:37 +00:00
spellfix.c Fix the series.c and spellfix.c extensions to use SQLITE_VTAB_INNOCUOUS 2020-01-21 12:29:02 +00:00
sqlar.c Fix minor compile issues with optional extensions. 2020-05-25 12:49:58 +00:00
stmt.c Minor change to the sqlite_stmt virtual table, for test coverage. 2020-05-04 19:04:23 +00:00
templatevtab.c Initial code to make shadow tables read-only to ordinary SQL. The now 2018-11-05 23:01:45 +00:00
totype.c Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set 2020-01-07 19:45:40 +00:00
uint.c Fix harmless compiler warnings. 2020-05-04 19:52:00 +00:00
unionvtab.c Fix various harmless compiler warnings seen with MSVC. 2019-03-20 05:45:03 +00:00
urifuncs.c Fix the urifuncs.c extension (used for testing and debugging only) so that 2020-01-14 16:50:09 +00:00
uuid.c Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set 2020-01-07 19:45:40 +00:00
vfslog.c Add NULL checks on all sqlite3_vfs_find(0) calls. This is not strictly 2021-06-15 15:15:40 +00:00
vfsstat.c Add NULL checks on all sqlite3_vfs_find(0) calls. This is not strictly 2021-06-15 15:15:40 +00:00
vtablog.c Initial code to make shadow tables read-only to ordinary SQL. The now 2018-11-05 23:01:45 +00:00
vtshim.c In the 'vtshim' extension, avoid accessing freed memory when handling errors from xCreate/xConnect. 2017-01-19 18:20:36 +00:00
wholenumber.c In the wholenumber virtual table, increase the cost penalty for running 2021-03-19 17:54:43 +00:00
zipfile.c Fix harmless static analyzer warnings in sessions, rtree, fts3 and fts5. 2021-10-04 18:21:14 +00:00
zorder.c Add the zorder.c extension implementing zorder() and unzorder() SQL functions. 2018-02-09 20:49:15 +00:00

Miscellaneous Extensions

This folder contains a collection of smaller loadable extensions. See https://www.sqlite.org/loadext.html for instructions on how to compile and use loadable extensions. Each extension in this folder is implemented in a single file of C code.

Each source file contains a description in its header comment. See the header comments for details about each extension. Additional notes are as follows:

  • carray.c — This module implements the carray table-valued function. It is a good example of how to go about implementing a custom table-valued function.

  • csv.c — A virtual table for reading Comma-Separated-Value (CSV) files.

  • dbdump.c — This is not actually a loadable extension, but rather a library that implements an approximate equivalent to the ".dump" command of the command-line shell.

  • json1.c — Various SQL functions and table-valued functions for processing JSON. This extension is already built into the SQLite amalgamation. See https://sqlite.org/json1.html for additional information.

  • memvfs.c — This file implements a custom VFS that stores an entire database file in a single block of RAM. It serves as a good example of how to implement a simple custom VFS.

  • rot13.c — This file implements the very simple rot13() substitution function. This file makes a good template for implementing new custom SQL functions for SQLite.

  • series.c — This is an implementation of the "generate_series" virtual table. It can make a good template for new custom virtual table implementations.

  • shathree.c — An implementation of the sha3() and sha3_query() SQL functions. The file is named "shathree.c" instead of "sha3.c" because the default entry point names in SQLite are based on the source filename with digits removed, so if we used the name "sha3.c" then the entry point would conflict with the prior "sha1.c" extension.

  • unionvtab.c — Implementation of the unionvtab and swarmvtab virtual tables. These virtual tables allow a single large table to be spread out across multiple database files. In the case of swarmvtab, the individual database files can be attached on demand.

  • zipfile.c — A virtual table that can read and write a ZIP archive.