package sqlgg

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

sqlgg-0.4.5.tar.gz
sha256=3dbe12439ead5b74370b97ca34a5b24da582c20aa2b1eb62328403b356c75b34
md5=ebaf4a8076dcbeaa01e5a68bd6ad74b1

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

Module type Sqlgg_traits.MSource

Sourcetype statement
Sourcetype connection
Sourcetype params
Sourcetype row
Sourcetype result
Sourcemodule Types : sig ... end

datatypes

Sourcetype text = Types.Text.t
Sourcetype datetime = Types.Datetime.t
Sourceexception Oops of string
Sourceval get_column_Bool : row -> int -> Types.Bool.t
Sourceval get_column_Int : row -> int -> Types.Int.t
Sourceval get_column_Text : row -> int -> Types.Text.t
Sourceval get_column_Any : row -> int -> Types.Any.t
Sourceval get_column_Float : row -> int -> Types.Float.t
Sourceval get_column_Datetime : row -> int -> Types.Datetime.t
Sourceval start_params : statement -> int -> params
Sourceval finish_params : params -> result
Sourceval set_param_null : params -> int -> unit

set_param_* stmt index val. index is 0-based,

  • raises Oops

    on error

Sourceval set_param_Text : params -> int -> Types.Text.t -> unit
Sourceval set_param_Any : params -> int -> Types.Any.t -> unit
Sourceval set_param_Bool : params -> int -> Types.Bool.t -> unit
Sourceval set_param_Int : params -> int -> Types.Int.t -> unit
Sourceval set_param_Float : params -> int -> Types.Float.t -> unit
Sourceval set_param_Datetime : params -> int -> Types.Datetime.t -> unit
Sourceval no_params : statement -> result
Sourceval select : connection -> string -> (statement -> result) -> (row -> unit) -> unit

Perform query and return results via callback for each row

  • raises Oops

    on error

Sourceval select1 : connection -> string -> (statement -> result) -> (row -> 'b) -> 'b option

Perform query and return first row if available

  • raises Oops

    on error

Sourceval execute : connection -> string -> (statement -> result) -> int64

Execute non-query.

  • raises Oops

    on error

  • returns

    number of affected rows

OCaml

Innovation. Community. Security.