package azure-cosmos-db

  1. Overview
  2. Docs
type kv_item = {
  1. etag : string;
  2. key : string;
  3. label : string option;
  4. content_type : string option;
  5. locked : bool;
  6. last_modified : string;
}
type kv_result = {
  1. items : kv_item list;
}
val write_kv_item : Stdlib.Buffer.t -> kv_item -> unit

Output a JSON value of type kv_item.

val string_of_kv_item : ?len:int -> kv_item -> string

Serialize a value of type kv_item into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_kv_item : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> kv_item

Input JSON data of type kv_item.

val kv_item_of_string : string -> kv_item

Deserialize JSON data of type kv_item.

val write_kv_result : Stdlib.Buffer.t -> kv_result -> unit

Output a JSON value of type kv_result.

val string_of_kv_result : ?len:int -> kv_result -> string

Serialize a value of type kv_result into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_kv_result : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> kv_result

Input JSON data of type kv_result.

val kv_result_of_string : string -> kv_result

Deserialize JSON data of type kv_result.

OCaml

Innovation. Community. Security.