Module S.StmtSource

The module contains operations on MariaDB prepared statements.

Sourcetype t

The type of prepared statement.

Sourceval execute : t -> Field.value array -> Res.t result

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

Sourceval 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.

Sourceval close : t -> unit result

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