Cosmos_eio.Databasesmodule type Auth_key = Cosmos.Databases_intf.Auth_keyA deferred IO computation. Call with () to execute. This is the Eio equivalent of 'a Lwt.t; computations are deferred as thunks so that with_timeout can cancel them via Eio's fiber cancellation.
val with_env :
sw:Eio.Switch.t ->
< clock : _ Eio.Time.clock ; net : _ Eio.Net.t.. > ->
(unit -> 'a) ->
'awith_env ~sw env f sets up the Eio environment (clock, network, TLS client) required by Database operations. All database calls must happen inside f. Call this once inside Eio_main.run and Eio.Switch.run.
module Response_headers : sig ... endtype cosmos_error = Cosmos.Databases_core.cosmos_error = | Timeout_error| Connection_error| Azure_error of int * Response_headers.t