Repodb_postgresql.Raw

repodb-postgresql · API reference

type connection = {
  conn : Postgresql.connection;
  cache : string Repodb.Stmt_cache.t;
  mutable stmt_counter : int;
}
type error = string
val dialect : Repodb.Driver.dialect
val error_message : 'a -> 'a
val error_of_string : 'a -> 'a
val connect : string -> (connection, string) result
val close : connection -> unit
val value_to_string : Repodb.Driver.Value.t -> string
val is_blob : Repodb.Driver.Value.t -> bool
module Pg = Postgresql
val bool_oid : Pg.oid
val int2_oid : Pg.oid
val int4_oid : Pg.oid
val int8_oid : Pg.oid
val float8_oid : Pg.oid
val bytea_oid : Pg.oid
val date_oid : Pg.oid
val timestamp_oid : Pg.oid
val interval_oid : Pg.oid
val text_oid : Pg.oid
val json_oid : Pg.oid
val jsonb_oid : Pg.oid
val unknown_oid : Pg.oid
val uuid_oid : int
val decode_value : Pg.oid -> string -> Repodb.Driver.Value.t
val result_to_rows : Postgresql.result -> Repodb.Driver.row list
val next_stmt_name : connection -> string
val exec_raw : 
  connection ->
  string ->
  params:Repodb.Driver.Value.t array ->
  (unit, string) result
val query_raw : 
  connection ->
  string ->
  params:Repodb.Driver.Value.t array ->
  (Repodb.Driver.row list, string) result
val placeholder : int -> string
val returning_supported : bool
val upsert_syntax : [> `PostgreSQL ]
val last_insert_id : connection -> ('a, string) result