Pgx_asyncSourceAsync 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.configmodule Io : sig ... endval 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.tval 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.tmodule Prepared : sig ... endLike 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.