package caqti

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

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-v1.8.0.tbz
sha256=2630233f335f910290e24b318ac7f6e712b3109fb55581b2b8c324127a9a4b12
sha512=9ce23cbc02b9d6c856a8db0713dbb1aa393aa43bc1d565121420636f7f6fa1ed64c7269e98cfeb92b5e9c8e23e42e2e8e1705b5fe978abd3c3f0cc3259d32b98

doc/caqti.blocking/Caqti_blocking_sql_io/index.html

Module Caqti_blocking_sql_ioSource

  • deprecated Use Caqti_query.angstrom_parser.
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.