Module Databases.Database
Parameters
Signature
val get_code : Cohttp.Response.t -> int
val list_databases : ?timeout:float -> unit -> (int * Json_converter_t.list_databases, cosmos_error) Stdlib.result Lwt.t
list_databases
returns a list of databases
val create : ?timeout:float -> string -> (int * Json_converter_t.database option, cosmos_error) Stdlib.result Lwt.t
create database_name
creates a database in Cosmos with name database_name.
val create_if_not_exists : ?timeout:float -> string -> (int * Json_converter_t.database option, cosmos_error) Stdlib.result Lwt.t
create_if_not_exists database_name
creates a database in Cosmos with name database_name if it not already exists.
val get : ?timeout:float -> string -> (int * Json_converter_t.database option, cosmos_error) Stdlib.result Lwt.t
get database_name
returns info about the database
val delete : ?timeout:float -> string -> (int, cosmos_error) Stdlib.result Lwt.t
delete database_name
deletes the databasedatabase_name
from Cosmos
module Collection : sig ... end
module User : sig ... end