Repodb_mariadb.Raw
repodb-mariadb · API reference
module M = Mariadb.Blockingtype connection = {
dbh : M.t;
cache : M.Stmt.t Repodb.Stmt_cache.t;
mutable last_insert_id : int64 option;
}type error = M.errorval dialect : Repodb.Driver.dialectval error_message : (int * string) -> stringval error_of_string : 'a -> int * 'atype conn_params = {
host : string option;
port : int option;
user : string option;
pass : string option;
db : string option;
socket : string option;
charset : string option;
}val empty_conn_params : conn_paramsval is_space : char -> boolval skip_spaces : string -> int -> intval read_quoted : string -> int -> Char.t -> (string * int, string) resultval read_unquoted : string -> int -> string * intval set_conn_param :
conn_params ->
string ->
string ->
(conn_params, string) resultval parse_conninfo : string -> (conn_params, string) resultval prepare_stmt : connection -> string -> (M.Stmt.t, int * string) resultval reset_cached_stmt : connection -> string -> M.Stmt.t -> unitval connect : string -> (connection, M.error) resultval close : connection -> unitval value_to_param : Repodb.Driver.Value.t -> M.Field.valueval format_time : M.Time.t -> stringval field_to_value : M.Field.t -> Repodb.Driver.Value.tval row_of_fields : M.Field.t array -> Repodb.Driver.rowval remember_insert_id : connection -> M.Res.t -> unitval exec_raw :
connection ->
string ->
params:Repodb.Driver.Value.t array ->
(unit, Mariadb.Blocking.error) resultval query_raw :
connection ->
string ->
params:Repodb.Driver.Value.t array ->
(Repodb.Driver.row list, Mariadb.Blocking.error) resultval placeholder : 'a -> stringval returning_supported : boolval upsert_syntax : [> `Standard ]val last_insert_id : connection -> (int64, int * string) result