Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Async based Postgres client based on Pgx.
include Pgx.S
with type 'a Io.t = 'a Async_kernel.Deferred.t
and type Io.ssl_config = Conduit_async.Ssl.config
module Io : sig ... end
val connect :
?ssl:[ `Always of Io.ssl_config | `Auto | `No ] ->
?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 with_conn :
?ssl:[ `Always of Io.ssl_config | `Auto | `No ] ->
?host:string ->
?port:int ->
?user:string ->
?password:string ->
?database:string ->
?unix_domain_socket_dir:string ->
?verbose:int ->
?max_message_length:int ->
(t -> 'a Io.t) ->
'a Io.t
module Prepared : sig ... end
val execute_pipe :
?params:Pgx.row ->
t ->
string ->
Pgx.row Async_kernel.Pipe.Reader.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.
module Value = Pgx_value_core
Exposed for backwards compatiblity. New code should use Pgx_value_core
directly.