class data_base : string -> string -> string ->
object
.. end
method connect : unit -> unit
Deprecated.The connection to the database oocurs when the object is created.
method disconnect : unit -> unit
Disconnect from the database. The objet should not be used after calling this method.
Raises SQL_Error
if an error occurs while disconnecting.
method execute : string -> int * string list list
#execute q
executes query q
and
returns the result as a pair (error_code, recordlist)
,
where a record is a string list
. The error_code
is 0
if no error occured.
method execute_with_info : string -> int * (string * sql_column_type) list * string list list