package mariadb

  1. Overview
  2. Docs

The module contains operations on MariaDB prepared statements.

type t

The type of prepared statement.

val execute : t -> Field.value array -> Res.t option result

execute stmt params executes the prepared statement stmt binding to it the query parameters params and returns a Res.t, the query result.

val reset : t -> unit result

reset stmt reset the client and server state of stmt to what they were after stmt was prepared, and frees up any Res.t produced by stmt.

val close : t -> unit result

close stmt closes the prepapred statement stmt and frees any allocated memory associated with it and its result.

OCaml

Innovation. Community. Security.