tree: a9d676e8ef12f3d0396a3735597f7fea394690a4 [path history] [tgz]
  1. README.md
  2. amatch.c
  3. anycollseq.c
  4. appendvfs.c
  5. blobio.c
  6. btreeinfo.c
  7. carray.c
  8. closure.c
  9. completion.c
  10. compress.c
  11. csv.c
  12. dbdata.c
  13. dbdump.c
  14. eval.c
  15. explain.c
  16. fileio.c
  17. fossildelta.c
  18. fuzzer.c
  19. ieee754.c
  20. json1.c
  21. memstat.c
  22. memtrace.c
  23. memvfs.c
  24. mmapwarm.c
  25. nextchar.c
  26. normalize.c
  27. percentile.c
  28. prefixes.c
  29. regexp.c
  30. remember.c
  31. rot13.c
  32. scrub.c
  33. series.c
  34. sha1.c
  35. shathree.c
  36. showauth.c
  37. spellfix.c
  38. sqlar.c
  39. stmt.c
  40. templatevtab.c
  41. totype.c
  42. unionvtab.c
  43. vfslog.c
  44. vfsstat.c
  45. vtablog.c
  46. vtshim.c
  47. wholenumber.c
  48. zipfile.c
  49. zorder.c
ext/misc/README.md

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.