package sqlgg

  1. Overview
  2. Docs
SQL Guided (code) Generator

Install

dune-project
 Dependency

Authors

Maintainers

Sources

sqlgg-20260721.tbz
sha256=40d7699187951dd2f17d885c4f4f04124930bf7dc1119d4cca322c5f0cb42d8e
sha512=e7c90683cddcff3ca0ba9de9e40c2c4c69923ea62e2647f1a70083e42ed00b7cab53f8a14d1a965ee4465966bc02fa75fa7cb42e485beae1a9c26bdc252c3665

doc/sqlgg.traits/Sqlgg_traits/module-type-FNS/index.html

Module type Sqlgg_traits.FNSSource

Sourcetype params
Sourcetype result
Sourcetype 'a io_future
Sourcetype 'a connection
Sourcetype statement
Sourcetype row
Sourcetype execute_response
Sourceval finish_params : params -> result io_future
Sourceval no_params : statement -> result io_future
Sourceval select : [> `RO ] connection -> string -> (statement -> result io_future) -> (row -> unit) -> unit io_future

Perform query (cardinality "any") and return results via callback for each row

  • raises Oops

    on error

Sourceval select_one_maybe : [> `RO ] connection -> string -> (statement -> result io_future) -> (row -> 'b) -> 'b option io_future

Perform query (cardinality "zero or one") and return first row if available

  • raises Oops

    on error

Sourceval select_one : [> `RO ] connection -> string -> (statement -> result io_future) -> (row -> 'b) -> 'b io_future

Perform query (cardinality "one") and return first row

  • raises Oops

    on error

Sourceval execute : [> `WR ] connection -> string -> (statement -> result io_future) -> execute_response io_future

Execute non-query.

  • raises Oops

    on error