package azure-cosmos-db

  1. Overview
  2. Docs

Module Databases.DatabaseSource

Parameters

Signature

Sourceval get_code : Cohttp.Response.t -> int
Sourceval list_databases : ?timeout:float -> unit -> (int * Json_converter_t.list_databases, cosmos_error) result Lwt.t

list_databases returns a list of databases

Sourceval create : ?timeout:float -> string -> (int * Json_converter_t.database option, cosmos_error) result Lwt.t

create database_name creates a database in Cosmos with name database_name.

Sourceval create_if_not_exists : ?timeout:float -> string -> (int * Json_converter_t.database option, cosmos_error) result Lwt.t

create_if_not_exists database_name creates a database in Cosmos with name database_name if it not already exists.

Sourceval get : ?timeout:float -> string -> (int * Json_converter_t.database option, cosmos_error) result Lwt.t

get database_name returns info about the database

Sourceval delete : ?timeout:float -> string -> (int, cosmos_error) result Lwt.t

delete database_name deletes the database database_name from Cosmos

Sourcemodule Collection : sig ... end
Sourcemodule User : sig ... end
OCaml

Innovation. Community. Security.