package sqlgg

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module type Sqlgg_traits.MSource

Sourcetype statement
Sourcetype connection
Sourcetype params
Sourcetype row
Sourcetype result
Sourcetype num = int64

datatypes

Sourcetype text = string
Sourcetype any = text
Sourcetype datetime = float
Sourceexception Oops of string
Sourceval get_column_Bool : row -> int -> bool
Sourceval get_column_Int : row -> int -> num
Sourceval get_column_Text : row -> int -> text
Sourceval get_column_Any : row -> int -> any
Sourceval get_column_Float : row -> int -> float
Sourceval get_column_Datetime : row -> int -> datetime
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 -> text -> unit
Sourceval set_param_Any : params -> int -> any -> unit
Sourceval set_param_Bool : params -> int -> bool -> unit
Sourceval set_param_Int : params -> int -> num -> unit
Sourceval set_param_Float : params -> int -> float -> unit
Sourceval set_param_Datetime : params -> int -> datetime -> 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