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 -> string -> string -> string -> (int * Json_converter_t.collection option) 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) 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 -> string -> string -> (int * Response_headers.t * list_result option) 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 -> string -> string -> string -> (int * string) Lwt.t
val replace : ?indexing_directive:indexing_directive -> ?partition_key:string -> ?if_match:string -> string -> string -> string -> string -> (int * Cohttp_lwt.Body.t) Lwt.t
val delete : ?partition_key:string -> string -> string -> string -> int Lwt.t
val query : ?max_item_count:int -> ?continuation:string -> ?consistency_level:string -> ?session_token:string -> ?is_partition:bool -> string -> string -> Json_converter_t.query -> (int * Response_headers.t * list_result option) Lwt.t
OCaml

Innovation. Community. Security.