class virtual statement :connection ->
object
..end
method virtual execute : sql_t list -> unit
?
placeholders in the query string. This method should
be executed before trying to fetch data.
This command can throw a variety of SQL-specific exceptions.
method virtual fetch1 : unit -> sql_t list
Not_found
if no tuple is returned by the database.Failure
if #execute
has not been issued before.method fetch1int : unit -> int
Not_found
if no tuples are remaining.Invalid_argument
if the tuple does not contain a single integer.Failure
if #execute
has not been issued before.method fetch1string : unit -> string
Not_found
if no tuples are remaining.Invalid_argument
if the tuple does not contain a single string.Failure
if #execute
has not been issued before.method fetch1bool : unit -> bool
Not_found
if no tuples are remaining.Invalid_argument
if the tuple does not contain a single boolean.Failure
if #execute
has not been issued before.method fetchall : unit -> sql_t list list
Failure
if #execute
has not been issued before.method iter : (sql_t list -> unit) -> unit
Failure
if #execute
has not been issued before.method map : 'a. (sql_t list -> 'a) -> 'a list
Failure
if #execute
has not been issued before.method fold_left : 'b. ('b -> sql_t list -> 'b) -> 'b -> 'b
Failure
if #execute
has not been issued before.method fold_right : 'c. (sql_t list -> 'c -> 'c) -> 'c -> 'c
Failure
if #execute
has not been issued before.method virtual names : string list
Failure
if #execute
has not been issued before.method fetch1hash : unit -> (string * sql_t) list
Not_found
if there are no more rows to fetch.method virtual serial : string -> int
Not_found
if the serial number is not available.Failure
if #execute
has not been issued before.method finish : unit -> unit
#finish
you may call #execute
to
begin executing another query.method connection : connection