package caqti
Unified interface to relational database libraries
Install
Dune Dependency
Authors
Maintainers
Sources
caqti-v2.1.1.tbz
sha256=483a535f41e2641917fc1832ce4ad15ffc3f4e8283b1b3018a2617349583090a
sha512=6a1222c0c55cb16a9d409980f9f2400340689b87e21aafed2d7459fd7feaeb109c2dfaf77f55f8422fbb7d3772342565ced7fed78a7b77af5aedab5bfd5ae882
doc/caqti.platform/Caqti_platform/Driver_loader/Make/argument-1-System/Net/index.html
Module System.Net
module Sockaddr : sig ... end
val getaddrinfo :
stdenv:stdenv ->
[ `host ] Domain_name.t ->
int ->
(Sockaddr.t list, [> `Msg of string ]) result Fiber.t
This should be a specialized version of getaddrinfo, which only returns entries which is expected to work with the corresponding connect on the platform implementing this interface. In particular:
- The family can be IPv4 or IPv6, where supported, and this must be encoded in the
Sockaddr.t
. - The socket type is restricted to STREAM.
- The protocol is assumed to be selected automatically from address family, given the socket type restriction.
All returned values are TCP destinations. If a distinction can be made, an empty list indicates that the address has no DNS entries, while an error return indicates that an appropriate DNS server could not be queried.
val convert_io_exception : exn -> Caqti_error.msg option
If the read and write operations in Socket raise exceptions other than End_of_file
and Failure
, this function is used to intercept them.
module Socket : System_sig.SOCKET_OPS with type 'a fiber := 'a Fiber.t
A socket with input and output channels and dedicated IO functions. This bundling is done to support the various APIs involved for networking and StartTLS.
val connect_tcp :
sw:Switch.t ->
stdenv:stdenv ->
Sockaddr.t ->
(Socket.t, Caqti_error.msg) result Fiber.t
module type TLS_PROVIDER =
System_sig.TLS_PROVIDER
with type 'a fiber := 'a Fiber.t
and type tcp_flow := tcp_flow
and type tls_flow := tls_flow
val register_tls_provider : (module TLS_PROVIDER) -> unit
val tls_providers : Caqti_connect_config.t -> (module TLS_PROVIDER) list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>