module Prepared:sig..end
Prepared statements with parameters. Consult the MySQL manual for detailed description and possible problems.
type stmt
Prepared statement
type stmt_result
Prepared query result (rowset)
val create : Mysql.dbd -> string -> stmtCreate prepared statement. Placeholders for parameters are ? and @param.
Returned prepared statement is only valid in the context of this connection and
can be reused many times during the lifetime of the connection.
val execute : stmt -> string array -> stmt_resultExecute the prepared statement with the specified values for parameters.
val execute_null : stmt -> string option array -> stmt_resultSame as Mysql.Prepared.execute, but with support for NULL values.
val affected : stmt -> int64val insert_id : stmt -> int64val real_status : stmt -> int0 for success.val fetch : stmt_result -> string option array optionval result_metadata : stmt -> Mysql.resultval close : stmt -> unitDestroy the prepared statement