{"repo":"paurkedal/ocaml-caqti","free":true,"listed":false,"github":"https://github.com/paurkedal/ocaml-caqti","clone":"git clone https://github.com/paurkedal/ocaml-caqti.git","description":"Cooperative-threaded access to relational data","language":"OCaml","stars":356,"topics":["ocaml","database","io-monad","mariadb","postgresql","sqlite","lwt","async"],"license":"LGPL-3.0","category":"databases-storage","readme_excerpt":"Synopsis Caqti provides a monadic cooperative-threaded OCaml connector API for relational databases. The purpose of Caqti is further to help make applications independent of a particular database system. This is achieved by defining a common signature, which is implemented by the database drivers. Connection parameters are specified as an URI, which is typically provided at run-time. Caqti then loads a driver which can handle the URI, and provides a first-class module which implements the driver API and additional convenience functionality. Caqti does not generate or analyze SQL but provides templating and uniform query parameter handling, including encoding and decoding data according to declared types. It is hoped that this agnostic choice makes it a suitable target for higher level interfaces and code generators. The following drivers are available: RDBMS URI scheme library Unix MirageOS ---------- --------------- -------------- ---- -------- MariaDB mariadb:// [mariadb][] yes no PostgreSQL postgresql:// [postgresql][] yes no PostgreSQL pgx:// [pgx][] yes yes SQLite3 sqlite3:// [sqlite3][] yes no The PGX based driver is experimental and only recommended for MirageOS. More about the drivers below. Documentation Tutorials and Examples - The [caqti-study][] repository is a tutorial with examples, which we will keep up to date with the latest release of Caqti. It is work in progress; suggestions and contributions are welcome. - [Interfacing OCaml and PostgreSQL with Caqti][BP-","default_branch":null,"files":null,"tree":[],"storefront":"/r/paurkedal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/paurkedal/ocaml-caqti/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}