aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/d2sqlite3/README.md
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-02-19 17:10:51 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2021-02-24 16:46:47 -0500
commit02ca32ae0a5bc290918d2b2a3288e385b9cc6b11 (patch)
tree06379785e8a0165a7deb981c2eba362894820634 /src/ext_depends/d2sqlite3/README.md
parentbuild from static source-tree pre fetch depends (diff)
external & build dependences in src tree
- external & build dependences boost licensed - ext_depends (external depends) - D-YAML - tinyendian - d2sqlite3 - imageformats - build_depends - dub2nix
Diffstat (limited to 'src/ext_depends/d2sqlite3/README.md')
-rw-r--r--src/ext_depends/d2sqlite3/README.md46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/ext_depends/d2sqlite3/README.md b/src/ext_depends/d2sqlite3/README.md
new file mode 100644
index 0000000..b1b3958
--- /dev/null
+++ b/src/ext_depends/d2sqlite3/README.md
@@ -0,0 +1,46 @@
+# `D2Sqlite3`
+
+[![Dub](https://img.shields.io/dub/v/d2sqlite3.svg)](http://code.dlang.org/packages/d2sqlite3)
+[![Downloads](https://img.shields.io/dub/dt/d2sqlite3.svg)](https://code.dlang.org/packages/d2sqlite3)
+
+This is a small wrapper around SQLite for the D programming language.
+It wraps the C API in an idiomatic manner and handles built-in D types and
+`Nullable!T` automatically.
+
+## Documentation
+
+[Online documentation](http://dlang-community.github.io/d2sqlite3/d2sqlite3.html)
+
+## `dub` configurations
+
+- **`with-lib`** (the default): assumes that SQLite is already installed and available to the linker. Set the right path for the SQLite library in your project's `dub.json` file using the `lflags` setting:
+
+```json
+ "lflags": ["-L/path/to/lib"]
+```
+
+- **`without-lib`**: you manage linking SQLite yourself.
+
+- **`all-included`**: on Windows, use a prebuilt SQLite DLL (bundled with this library); on Posix systems, builds SQLite from the source amalgamation (bundled with this library), using the default building configuration with these options defined:
+ - SQLITE_ENABLE_COLUMN_METADATA
+ - SQLITE_ENABLE_UNLOCK_NOTIFY
+
+Set the right configuration for you project in its `dub.json` file using the `subConfigurations` setting, e.g.:
+
+```json
+ "subConfigurations": {
+ "d2sqlite3": "all-included"
+ }
+```
+
+## Library versions
+
+These versions can be used to build the library:
+
+- `SqliteEnableColumnMetadata`: to enable corresponding special methods of `Row`.
+- `SqliteEnableUnlockNotify`: to enable SQLite's builtin unlock notification mechanism.
+- `SqliteFakeUnlockNotify`: to emulate an unlock notification mechanism.
+
+## C binding generation
+
+The D binding file `sqlite3.d` is generated from the C header file `sqlite3.h`, using [jacob-carlborg/dstep](https://github.com/jacob-carlborg/dstep). I try to keep it up to date.