package postgres_async

  1. Overview
  2. Docs
type t
val login_and_get_raw : ?interrupt:unit Async.Deferred.t -> ?ssl_mode:Ssl_mode.t -> ?server:[< Async.Socket.Address.t ] Async.Tcp.Where_to_connect.t -> ?password:string -> ?gss_krb_token:string -> ?buffer_age_limit:[ `At_most of Core.Core_private.Span_float.t | `Unlimited ] -> ?buffer_byte_limit:Core.Byte_units.t -> startup_message:Protocol.Frontend.StartupMessage.t -> unit -> (t, Pgasync_error.t) Core.result Async.Deferred.t

Creates a TCP connection to the server, returning the Reader and Writer after the login message flow has been completed successfully. Will not have asynchronous message handling running

val reader : t -> Async.Reader.t
val writer : t -> Async.Writer.t
val backend_key : t -> Types.backend_key option
val runtime_parameters : t -> string Core.String.Map.t
val pq_cancel : t -> unit Async.Deferred.Or_error.t
OCaml

Innovation. Community. Security.