Module Collection.Document
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
type list_result_meta_data
=
{
rid : string;
self : string;
etag : string;
ts : int;
attachments : string;
}
type list_result
=
{
rid : string;
documents : (string * list_result_meta_data option) list;
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
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 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