package ppx_mysql

  1. Overview
  2. Docs
Syntax extension for facilitating usage of MySQL bindings

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_mysql-1.1.2.tbz
sha256=362134d1a1a4c1f811e4a0b95200b342dedea44ce94d5a579822e9f454460e57
sha512=e24217c3f445b3b8d41038b841fcd0fc690e5cefa6463a368a1fc5f7cfb026c33c9a8240215bc5465a4fdd0add31b3b641dacc579f4b40e68cfb78ea7fa162f3

doc/ppx_mysql.runtime/Ppx_mysql_runtime/Make_context/Prepared/index.html

Module Make_context.Prepared

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.