package caqti

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

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-v1.2.1.tbz
sha256=8622429654c374774a637d5434182863800bafa1dcc86ddded3ff24a86a55e44
sha512=5dd1398bd0b2ee21d1dead6a6dc07a35c8ec72e738f0cc3add1f1846f8ea73a0e19c8cd99e316f8e752d020aac396265d0da5d331d9c21bdcb61b8a5266e7b5d

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.