package ocsipersist-pgsql

  1. Overview
  2. Docs

Module Ocsipersist.PGOCamlSource

Sourcetype 'a monad = 'a Lwt_thread.t
Sourcetype isolation = [
  1. | `Read_committed
  2. | `Read_uncommitted
  3. | `Repeatable_read
  4. | `Serializable
]
Sourcetype access = [
  1. | `Read_only
  2. | `Read_write
]
Sourceexception Error of string
Sourceexception PostgreSQL_Error of string * (char * string) list
Sourcetype connection_desc = PGOCaml_generic.Make(Lwt_thread).connection_desc = {
  1. user : string;
  2. port : int;
  3. password : string;
  4. host : [ `Hostname of string | `Unix_domain_socket_dir of string ];
  5. database : string;
}
Sourceval describe_connection : ?host:string -> ?port:int -> ?user:string -> ?password:string -> ?database:string -> ?unix_domain_socket_dir:string -> unit -> connection_desc
Sourceval connection_desc_to_string : connection_desc -> string
Sourceval connect : ?host:string -> ?port:int -> ?user:string -> ?password:string -> ?database:string -> ?unix_domain_socket_dir:string -> ?desc:connection_desc -> unit -> 'a t monad
Sourceval close : 'a t -> unit monad
Sourceval ping : 'a t -> unit monad
Sourceval alive : 'a t -> bool monad
Sourceval begin_work : ?isolation:isolation -> ?access:access -> ?deferrable:bool -> 'a t -> unit monad
Sourceval commit : 'a t -> unit monad
Sourceval rollback : 'a t -> unit monad
Sourceval transact : 'a t -> ?isolation:isolation -> ?access:access -> ?deferrable:bool -> ('a t -> 'b monad) -> 'b monad
Sourceval serial : 'a t -> string -> int64 monad
Sourceval serial4 : 'a t -> string -> int32 monad
Sourceval serial8 : 'a t -> string -> int64 monad
Sourceval max_message_length : int ref
Sourceval verbose : int ref
Sourceval set_private_data : 'a t -> 'a -> unit
Sourceval private_data : 'a t -> 'a
Sourceval uuid : 'a t -> string
Sourcetype pa_pg_data = (string, bool) Hashtbl.t
Sourcetype oid = int32
Sourceval pp_oid : Ppx_deriving_runtime.Format.formatter -> oid -> Ppx_deriving_runtime.unit
Sourceval show_oid : oid -> Ppx_deriving_runtime.string
Sourcetype param = string option
Sourcetype result = string option
Sourcetype row = result list
Sourceval prepare : 'a t -> query:string -> ?name:string -> ?types:oid list -> unit -> unit monad
Sourceval execute_rev : 'a t -> ?name:string -> ?portal:string -> params:param list -> unit -> row list monad
Sourceval execute : 'a t -> ?name:string -> ?portal:string -> params:param list -> unit -> row list monad
Sourceval cursor : 'a t -> ?name:string -> ?portal:string -> params:param list -> (row -> unit monad) -> unit monad
Sourceval close_statement : 'a t -> ?name:string -> unit -> unit monad
Sourceval close_portal : 'a t -> ?portal:string -> unit -> unit monad
Sourceval inject : 'a t -> ?name:string -> string -> row list monad
Sourceval alter : 'a t -> ?name:string -> string -> unit monad
Sourcetype result_description = PGOCaml_generic.Make(Lwt_thread).result_description = {
  1. name : string;
  2. table : oid option;
  3. column : int option;
  4. field_type : oid;
  5. length : int;
  6. modifier : int32;
}
Sourceval pp_result_description : Ppx_deriving_runtime.Format.formatter -> result_description -> Ppx_deriving_runtime.unit
Sourceval show_result_description : result_description -> Ppx_deriving_runtime.string
Sourcetype row_description = result_description list
Sourceval pp_row_description : Ppx_deriving_runtime.Format.formatter -> row_description -> Ppx_deriving_runtime.unit
Sourceval show_row_description : row_description -> Ppx_deriving_runtime.string
Sourcetype params_description = param_description list
Sourceand param_description = PGOCaml_generic.Make(Lwt_thread).param_description = {
  1. param_type : oid;
}
Sourceval describe_statement : 'a t -> ?name:string -> unit -> (params_description * row_description option) monad
Sourceval describe_portal : 'a t -> ?portal:string -> unit -> row_description option monad
Sourceval name_of_type : oid -> string
Sourcetype inet = Unix.inet_addr * int
Sourcetype timestamptz = CalendarLib.Calendar.t * CalendarLib.Time_Zone.t
Sourcetype int16 = int
Sourcetype bytea = string
Sourcetype point = float * float
Sourcetype hstore = (string * string option) list
Sourcetype numeric = string
Sourcetype uuid = string
Sourcetype jsonb = string
Sourcetype bool_array = bool option list
Sourcetype int16_array = int16 option list
Sourcetype int32_array = int32 option list
Sourcetype int64_array = int64 option list
Sourcetype string_array = string option list
Sourcetype float_array = float option list
Sourcetype timestamp_array = CalendarLib.Calendar.t option list
Sourcetype uuid_array = string option list
Sourceval string_of_oid : oid -> string
Sourceval string_of_bool : bool -> string
Sourceval string_of_int : int -> string
Sourceval string_of_int16 : int16 -> string
Sourceval string_of_int32 : int32 -> string
Sourceval string_of_int64 : int64 -> string
Sourceval string_of_float : float -> string
Sourceval string_of_point : point -> string
Sourceval string_of_hstore : hstore -> string
Sourceval string_of_numeric : numeric -> string
Sourceval string_of_uuid : uuid -> string
Sourceval string_of_jsonb : jsonb -> string
Sourceval string_of_inet : inet -> string
Sourceval string_of_timestamp : CalendarLib.Calendar.t -> string
Sourceval string_of_timestamptz : timestamptz -> string
Sourceval string_of_date : CalendarLib.Date.t -> string
Sourceval string_of_time : CalendarLib.Time.t -> string
Sourceval string_of_interval : CalendarLib.Calendar.Period.t -> string
Sourceval string_of_bytea : bytea -> string
Sourceval string_of_string : string -> string
Sourceval string_of_unit : unit -> string
Sourceval string_of_bool_array : bool_array -> string
Sourceval string_of_int16_array : int16_array -> string
Sourceval string_of_int32_array : int32_array -> string
Sourceval string_of_int64_array : int64_array -> string
Sourceval string_of_string_array : string_array -> string
Sourceval string_of_bytea_array : string_array -> string
Sourceval string_of_float_array : float_array -> string
Sourceval string_of_timestamp_array : timestamp_array -> string
Sourceval string_of_arbitrary_array : ('a -> string) -> 'a option list -> string
Sourceval string_of_uuid_array : uuid_array -> string
Sourceval comment_src_loc : unit -> bool
Sourceval find_custom_typconvs : ?typnam:string -> ?lookin:string -> ?colnam:string -> ?argnam:string -> unit -> ((string * string) option, string) Rresult.result
Sourceval oid_of_string : string -> oid
Sourceval bool_of_string : string -> bool
Sourceval int_of_string : string -> int
Sourceval int16_of_string : string -> int16
Sourceval int32_of_string : string -> int32
Sourceval int64_of_string : string -> int64
Sourceval float_of_string : string -> float
Sourceval point_of_string : string -> point
Sourceval hstore_of_string : string -> hstore
Sourceval numeric_of_string : string -> numeric
Sourceval uuid_of_string : string -> uuid
Sourceval jsonb_of_string : string -> jsonb
Sourceval inet_of_string : string -> inet
Sourceval timestamp_of_string : string -> CalendarLib.Calendar.t
Sourceval timestamptz_of_string : string -> timestamptz
Sourceval date_of_string : string -> CalendarLib.Date.t
Sourceval time_of_string : string -> CalendarLib.Time.t
Sourceval interval_of_string : string -> CalendarLib.Calendar.Period.t
Sourceval bytea_of_string : string -> bytea
Sourceval unit_of_string : string -> unit
Sourceval bool_array_of_string : string -> bool_array
Sourceval int16_array_of_string : string -> int16_array
Sourceval int32_array_of_string : string -> int32_array
Sourceval int64_array_of_string : string -> int64_array
Sourceval string_array_of_string : string -> string_array
Sourceval float_array_of_string : string -> float_array
Sourceval timestamp_array_of_string : string -> timestamp_array
Sourceval arbitrary_array_of_string : (string -> 'a) -> string -> 'a option list
Sourceval bind : 'a monad -> ('a -> 'b monad) -> 'b monad
Sourceval return : 'a -> 'a monad