class virtual statement : connection -> object end
method virtual execute : arg_t list -> unit
?
placeholders in the query string.
This command can throw a variety of SQL-specific exceptions.
method virtual fetch1 : string array
Not_found
if no tuple is
returned by the database.method fetchall : string array list
bind_columns
and next
.method iter : (string array -> unit) -> unit
method map : 'a. (string array -> 'a) -> 'a list
method fold_left : 'b. ('b -> string array -> 'b) -> 'b -> 'b
method fold_right : 'c. (string array -> 'c -> 'c) -> 'c -> 'c
method virtual bind_columns : ref_t list -> unit
next
will set those references for each
tuple returned. Setting references is much more efficient than
using the fetch
methods, particularly when returning large
objects.method virtual next : bool
next
row. You would normally want to call
bind_columns
first so that you can actually retrieve the
value of each column. next
returns true
if a rows was
returned or false
otherwise.method virtual serial : string -> int
method finish : unit
finish
you may call execute
to
begin executing another query.method connection : connection