Async based Postgres client based on Pgx.
include Pgx.S with type 'a Io.t = 'a Async_kernel.Deferred.t
Sourceval connect :
?host:string ->
?port:int ->
?user:string ->
?password:string ->
?database:string ->
?unix_domain_socket_dir:string ->
?verbose:int ->
?max_message_length:int ->
unit ->
t Io.t val close : t -> unit Io.tval ping : t -> unit Io.tval alive : t -> bool Io.tval begin_work :
?isolation:Isolation.t ->
?access:Access.t ->
?deferrable:bool ->
t ->
t Io.tval commit : t -> unit Io.tval rollback : t -> unit Io.tval with_transaction :
?isolation:Isolation.t ->
?access:Access.t ->
?deferrable:bool ->
t ->
(t -> 'b Io.t) ->
'b Io.tval execute : ?params:Types.row -> t -> string -> Types.row list Io.tval execute_unit : ?params:Types.row -> t -> string -> unit Io.tval execute_fold :
?params:Types.param list ->
t ->
string ->
init:'accum ->
f:('accum -> Types.row -> 'accum Io.t) ->
'accum Io.tval execute_map :
?params:Types.param list ->
t ->
string ->
f:(Types.row -> 'a Io.t) ->
'a list Io.tval execute_iter :
?params:Types.param list ->
t ->
string ->
f:(Types.row -> unit Io.t) ->
unit Io.tval execute_many :
t ->
query:string ->
params:Types.param list list ->
Types.row list list Io.tval simple_query : t -> string -> Types.row list list Io.tSourcemodule Thread : Pgx.Io with type 'a t = 'a Async_kernel.Deferred.t Like execute but returns a pipe so you can operate on the results before they have all returned. Note that execute_iter and execute_fold can perform significantly better because they don't have as much overhead.
Exposed for backwards compatiblity. New code should use Pgx_value_core directly.