Repodb.Driver_common.Make.R

repodb · API reference

type connection
type error
val dialect : Driver.dialect
val error_message : error -> string
val error_of_string : string -> error
val connect : string -> (connection, error) result
val close : connection -> unit
val exec_raw : 
  connection ->
  string ->
  params:Driver.Value.t array ->
  (unit, error) result
val query_raw : 
  connection ->
  string ->
  params:Driver.Value.t array ->
  (Driver.row list, error) result
val placeholder : int -> string
val returning_supported : bool
val upsert_syntax : [ `PostgreSQL | `SQLite | `Standard ]
val last_insert_id : connection -> (int64, error) result