package caqti

  1. Overview
  2. Docs
Unified interface to relational database libraries

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-v1.2.3.tbz
sha256=2fc68b60d90281e11a3272fa0e760cc22282a317b734778ab0bf987ed08a2f72
sha512=c0f214776bd2eda73f54ab0f64b89a90d12afc0b793308ee21374d70fc096073a24ae66fe0516304a4dc5da8ac5b98cd7df2d2eb88b002f616ef788105c1ec64

doc/caqti.blocking/Caqti_blocking_sql_io/index.html

Module Caqti_blocking_sql_ioSource

include Caqti_sql_io.S with type 'a future = 'a
Sourcetype 'a future = 'a
Sourceval read_sql_statement : ('a -> char option future) -> 'a -> string option future

read_sql_statement read_char chan reads the next semicolon-terminated SQL statement from chan, taking care to skip over quoted semicolons. read_char chan shall return the next character from chan, or None when the end of file has been reached. A final semicolon is optional and any trailing white space after it will be ignored.

This can be used e.g. to read in SQL schemas or schema updates from a file for automatic initialization and updates of tables, sequences, functions, views, etc.

OCaml

Innovation. Community. Security.