Files
MINGW-packages/mingw-w64-sqlite3
Jannick dcab627324 sqlite3: add sqlite extensions to package
sqlite extensions are shared libraries loadable at run-time enhancing
sqlite's SQl code.

The source code of each of the sqlite extensions is located in directory
'ext/misc' of the source code package.  A hand-written Makefile, adjusted
using a project's autoconf tool (config.status), is generated in the
extensions build folder.

The extensions (together with each of the source c-files containing the
extension documentation in the file header) are installed in the directory
'${prefix}/share/sqlite/extensions'.

* PKGBUILD:
  - increase pkgrel
  - add build and install routines for sqlite extensions.
* Makefile.ext.in: add file.
* README.md.in: add file.
2020-08-05 21:30:07 +02:00
..

# Sqlite Extensions - Usage (Sqlite @VERSION@)

This folder contains shared libraries (dll files) `sqlite3.exe` can be
instructed to load at run-time in order to add functions usable in `sqlite3` SQL code.


Here an example of how to call an extension from the command line (example with
extension `csv`, other extensions are in this directory):

- open a shell (e.g. the `@MSYSTEM@` shell)
- call `sqlite3.exe` (residing in `@MINGW_PREFIX@/bin`)
- load the sqlite extension (use an absolute path in Windows notation, see below
  for an example of an absolute path)

~~~bash
    sqlite3
    sqlite3> .load "C:/msys64@MINGW_PREFIX@/share/sqlite/extensions/csv.dll"
~~~

Usage information to each extension is contained in the header of the c-file
corresponding to the extension you can find in this directory.


More information here: https://www.sqlite.org/loadext.html#loading_an_extension.