All Projects → mmottl → Sqlite3 Ocaml

mmottl / Sqlite3 Ocaml

Licence: other
OCaml bindings to the SQLite3 database

Programming Languages

ocaml
1615 projects

Projects that are alternatives of or similar to Sqlite3 Ocaml

Rsqlite
R interface for SQLite
Stars: ✭ 225 (+192.21%)
Mutual labels:  database, sqlite3
Edge Sql
Cloudflare Workers providing a SQL API
Stars: ✭ 429 (+457.14%)
Mutual labels:  database, sqlite3
Mikro Orm
TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.
Stars: ✭ 3,874 (+4931.17%)
Mutual labels:  database, sqlite3
Choochoo
Training Diary
Stars: ✭ 186 (+141.56%)
Mutual labels:  database, sqlite3
Android dbinspector
Android library for viewing and sharing in app databases.
Stars: ✭ 881 (+1044.16%)
Mutual labels:  database, sqlite3
Pydbgen
Random dataframe and database table generator
Stars: ✭ 191 (+148.05%)
Mutual labels:  database, sqlite3
Sqlboiler
Generate a Go ORM tailored to your database schema.
Stars: ✭ 4,497 (+5740.26%)
Mutual labels:  database, sqlite3
Esp32 arduino sqlite3 lib
Sqlite3 Arduino library for ESP32
Stars: ✭ 167 (+116.88%)
Mutual labels:  database, sqlite3
Database rewinder
minimalist's tiny and ultra-fast database cleaner
Stars: ✭ 685 (+789.61%)
Mutual labels:  database, sqlite3
Qb
The database toolkit for go
Stars: ✭ 524 (+580.52%)
Mutual labels:  database, sqlite3
Quick.db
An easy, open-sourced, Node.js database designed for complete beginners getting into the concept of coding.
Stars: ✭ 177 (+129.87%)
Mutual labels:  database, sqlite3
Fluent Sqlite Driver
Fluent driver for SQLite
Stars: ✭ 51 (-33.77%)
Mutual labels:  database, sqlite3
Web Database Analytics
Web scrapping and related analytics using Python tools
Stars: ✭ 175 (+127.27%)
Mutual labels:  database, sqlite3
Better Sqlite3
The fastest and simplest library for SQLite3 in Node.js.
Stars: ✭ 2,778 (+3507.79%)
Mutual labels:  database, sqlite3
Ctlstore
Control Data Store
Stars: ✭ 171 (+122.08%)
Mutual labels:  database, sqlite3
Squeal
A Swift wrapper for SQLite databases
Stars: ✭ 303 (+293.51%)
Mutual labels:  database, sqlite3
Grimoire
Database access layer for golang
Stars: ✭ 151 (+96.1%)
Mutual labels:  database, sqlite3
Sqlcheck
Automatically identify anti-patterns in SQL queries
Stars: ✭ 2,062 (+2577.92%)
Mutual labels:  database, sqlite3
Denodb
MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Stars: ✭ 498 (+546.75%)
Mutual labels:  database, sqlite3
Perfect Sqlite
A stand-alone Swift wrapper around the SQLite 3 client library.
Stars: ✭ 42 (-45.45%)
Mutual labels:  database, sqlite3

SQLite3-OCaml - SQLite3 Bindings for OCaml

What is SQLite3-OCaml?

SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client API. Sqlite3 is a self-contained, serverless, zero-configuration, transactional SQL database engine with outstanding performance for many use cases.

These bindings are written in a way that enables a friendly coexistence with the old (version 2) SQLite and its OCaml wrapper ocaml-sqlite.

Usage

The API in file src/sqlite3.mli is fully documented. It can also be found online.

SQLite3 has its own online documentation.

Examples

The test-directory in this distribution contains a few simple examples for testing various features of this library. The tests can be run by executing dune runtest.

Build issues

SQLite3-OCaml depends on pkg-config to locate and compile against an SQLite3 library.

If the SQLite3 version is greater than or equal to 3.3.7, it is assumed that it supports Run-Time Loadable Extensions. If this feature has been explicitly disabled in the library, building applications will fail with:

Undefined symbols for architecture ...:
  "_sqlite3_enable_load_extension", referenced from:
      _caml_sqlite3_enable_load_extension in libsqlite3_stubs.a(sqlite3_stubs.o)
     (maybe you meant: _caml_sqlite3_enable_load_extension)
  • You can check if your library is missing loadable extensions by searching it for the string OMIT_LOAD_EXTENSION.

  • If you need to change where pkg-config will look for the SQLite3 library, set the PKG_CONFIG_PATH environment variable to the new directory. This can be automated by setting the SQLITE3_OCAML_BREWCHECK environment variable. This will instruct the build to see if a brewed version of SQLite is installed and route pkg-config appropriately.

  • You can explicitly disable run-time loadable extensions by calling configure with the flag --disable-loadable-extensions or by setting the environment variable SQLITE3_DISABLE_LOADABLE_EXTENSIONS if linking problems persist.

  • Due to frequent installation issues with loadable extensions on Mac OS X, the default there is to disable them. You will have to explicitly enable them on that platform.

Credits

  • Mikhail Fedotov wrote ocaml-sqlite for SQLite version 2. His bindings served as a reference for this wrapper, but sqlite3 is written completely from scratch since the C interface changed significantly.

  • Christian Szegedy wrote the initial release for SQLite version 3.

  • Markus Mottl rewrote Christian's bindings for Jane Street Holding, LLC to clean up a few things and to make it perform better in multi-threaded environments.

  • Enrico Tassi contributed support for user-defined scalar functions.

  • Markus W. Weissmann contributed backup functionality.

Contact Information and Contributing

Please submit bugs reports, feature requests, contributions and similar to the GitHub issue tracker.

Up-to-date information is available at: https://mmottl.github.io/sqlite3-ocaml

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].