package ppx_mysql

  1. Overview
  2. Docs
type dbh = M.Prepared.dbh
type stmt
type stmt_result
type error = M.Prepared.error
type wrapped_dbh
type wrapped_error = [
  1. | `Mysql_error of error
]
val init : dbh -> wrapped_dbh
val execute_null : stmt -> string option array -> (stmt_result, [> wrapped_error ]) result IO.t
val fetch : stmt_result -> (string option array option, [> wrapped_error ]) result IO.t
val with_stmt_cached : wrapped_dbh -> string -> (stmt -> ('a, [> wrapped_error ] as 'e) result IO.t) -> ('a, 'e) result IO.t
val with_stmt_uncached : wrapped_dbh -> string -> (stmt -> ('a, [> wrapped_error ] as 'e) result IO.t) -> ('a, 'e) result IO.t
OCaml

Innovation. Community. Security.