package azure-cosmos-db

  1. Overview
  2. Docs
type indexing_directive =
  1. | Include
  2. | Exclude
val create : ?is_upsert:bool -> ?indexing_directive:indexing_directive -> ?partition_key:string -> ?timeout:float -> string -> string -> string -> (int * Json_converter_t.collection option, cosmos_error) Stdlib.result Lwt.t
val create_multiple : ?is_upsert:bool -> ?indexing_directive:indexing_directive -> ?partition_key:string -> ?timeout:float -> ?chunk_size:int -> string -> string -> string list -> (int * Json_converter_t.collection option, cosmos_error) Stdlib.result list Lwt.t
type list_result_meta_data = {
  1. rid : string;
  2. self : string;
  3. etag : string;
  4. ts : int;
  5. attachments : string;
}
type list_result = {
  1. rid : string;
  2. documents : (string * list_result_meta_data option) list;
  3. count : int;
}
val list : ?max_item_count:int -> ?continuation:string -> ?consistency_level:string -> ?session_token:string -> ?a_im:bool -> ?if_none_match:string -> ?partition_key_range_id:string -> ?timeout:float -> string -> string -> (int * Response_headers.t * list_result, cosmos_error) Stdlib.result Lwt.t
type consistency_level =
  1. | Strong
  2. | Bounded
  3. | Session
  4. | Eventual
val string_of_consistency_level : consistency_level -> string
val get : ?if_none_match:string -> ?partition_key:string -> ?consistency_level:consistency_level -> ?session_token:string -> ?timeout:float -> string -> string -> string -> (int * string, cosmos_error) Stdlib.result Lwt.t
val replace : ?indexing_directive:indexing_directive -> ?partition_key:string -> ?if_match:string -> ?timeout:float -> string -> string -> string -> string -> (int * Cohttp_lwt.Body.t, cosmos_error) Stdlib.result Lwt.t
val delete : ?partition_key:string -> ?timeout:float -> string -> string -> string -> (int, cosmos_error) Stdlib.result Lwt.t
val delete_multiple : ?partition_key:string -> ?timeout:float -> ?chunk_size:int -> string -> string -> string list -> (int, cosmos_error) Stdlib.result list Lwt.t
val query : ?max_item_count:int -> ?continuation:string -> ?consistency_level:string -> ?session_token:string -> ?is_partition:bool -> ?partition_key:string -> ?timeout:float -> string -> string -> Json_converter_t.query -> (int * Response_headers.t * list_result, cosmos_error) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.