package sqlgg

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type statement
type connection
type params
type row
type result
type num = int64

datatypes

type text = string
type any = text
type datetime = float
exception Oops of string
val get_column_Bool : row -> int -> bool
val get_column_Int : row -> int -> num
val get_column_Text : row -> int -> text
val get_column_Any : row -> int -> any
val get_column_Float : row -> int -> float
val get_column_Datetime : row -> int -> datetime
val start_params : statement -> int -> params
val finish_params : params -> result
val set_param_null : params -> int -> unit

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

  • raises Oops

    on error

val set_param_Text : params -> int -> text -> unit
val set_param_Any : params -> int -> any -> unit
val set_param_Bool : params -> int -> bool -> unit
val set_param_Int : params -> int -> num -> unit
val set_param_Float : params -> int -> float -> unit
val set_param_Datetime : params -> int -> datetime -> unit
val no_params : statement -> result
val select : connection -> string -> (statement -> result) -> (row -> unit) -> unit

Perform query and return results via callback for each row

  • raises Oops

    on error

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

Perform query and return first row if available

  • raises Oops

    on error

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

Execute non-query.

  • raises Oops

    on error

  • returns

    number of affected rows

OCaml

Innovation. Community. Security.