package azure-cosmos-db

  1. Overview
  2. Docs
type user = Json_converter_t.user = {
  1. id : string;
  2. rid : string;
  3. ts : int;
  4. self : string;
  5. etag : string;
  6. permissions : string;
}
type parameter = Json_converter_t.parameter = {
  1. name : string;
  2. value : string;
}
type query = Json_converter_t.query = {
  1. query : string;
  2. parameters : parameter list;
}
type partitionKey_result = Json_converter_t.partitionKey_result = {
  1. paths : string list;
  2. kind : string;
}
type list_users = Json_converter_t.list_users = {
  1. rid : string;
  2. users : user list;
  3. count : int;
}
type database = Json_converter_t.database = {
  1. id : string;
  2. _rid : string;
  3. _self : string;
  4. _etag : string;
  5. _colls : string;
  6. _users : string;
  7. _ts : int;
}
type list_databases = Json_converter_t.list_databases = {
  1. _rid : string;
  2. databases : database list;
  3. _count : int;
}
type indexes = Json_converter_t.indexes = {
  1. dataType : string;
  2. precision : int;
  3. kind : string;
}
type included_paths = Json_converter_t.included_paths = {
  1. path : string;
  2. indexes : indexes list;
}
type indexing_policy = Json_converter_t.indexing_policy = {
  1. automatic : bool;
  2. indexing_mode : string;
  3. included_paths : included_paths list;
}
type collection = Json_converter_t.collection = {
  1. id : string;
  2. indexing_policy : indexing_policy;
  3. partition_key : partitionKey_result option;
  4. rid : string;
  5. ts : int;
  6. self : string;
  7. etag : string;
  8. docs : string;
  9. sprocs : string;
  10. triggers : string;
  11. udfs : string;
  12. conflicts : string;
}
type list_collections = Json_converter_t.list_collections = {
  1. rid : string;
  2. document_collections : collection list;
  3. count : int;
}
type create_user = Json_converter_t.create_user = {
  1. id : string;
}
type create_partition_key = Json_converter_t.create_partition_key = {
  1. paths : string list;
  2. kind : string;
  3. version : int option;
}
type create_database = Json_converter_t.create_database = {
  1. id : string;
}
type create_collection = Json_converter_t.create_collection = {
  1. id : string;
  2. indexing_policy : indexing_policy option;
  3. partition_key : create_partition_key option;
}
val write_user : Buffer.t -> user -> unit

Output a JSON value of type user.

val string_of_user : ?len:int -> user -> string

Serialize a value of type user into a JSON string.

  • parameter len

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

Input JSON data of type user.

val user_of_string : string -> user

Deserialize JSON data of type user.

val write_parameter : Buffer.t -> parameter -> unit

Output a JSON value of type parameter.

val string_of_parameter : ?len:int -> parameter -> string

Serialize a value of type parameter into a JSON string.

  • parameter len

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

Input JSON data of type parameter.

val parameter_of_string : string -> parameter

Deserialize JSON data of type parameter.

val write_query : Buffer.t -> query -> unit

Output a JSON value of type query.

val string_of_query : ?len:int -> query -> string

Serialize a value of type query into a JSON string.

  • parameter len

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

Input JSON data of type query.

val query_of_string : string -> query

Deserialize JSON data of type query.

val write_partitionKey_result : Buffer.t -> partitionKey_result -> unit

Output a JSON value of type partitionKey_result.

val string_of_partitionKey_result : ?len:int -> partitionKey_result -> string

Serialize a value of type partitionKey_result into a JSON string.

  • parameter len

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

val read_partitionKey_result : Yojson.Safe.lexer_state -> Lexing.lexbuf -> partitionKey_result

Input JSON data of type partitionKey_result.

val partitionKey_result_of_string : string -> partitionKey_result

Deserialize JSON data of type partitionKey_result.

val write_list_users : Buffer.t -> list_users -> unit

Output a JSON value of type list_users.

val string_of_list_users : ?len:int -> list_users -> string

Serialize a value of type list_users into a JSON string.

  • parameter len

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

Input JSON data of type list_users.

val list_users_of_string : string -> list_users

Deserialize JSON data of type list_users.

val write_database : Buffer.t -> database -> unit

Output a JSON value of type database.

val string_of_database : ?len:int -> database -> string

Serialize a value of type database into a JSON string.

  • parameter len

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

Input JSON data of type database.

val database_of_string : string -> database

Deserialize JSON data of type database.

val write_list_databases : Buffer.t -> list_databases -> unit

Output a JSON value of type list_databases.

val string_of_list_databases : ?len:int -> list_databases -> string

Serialize a value of type list_databases into a JSON string.

  • parameter len

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

val read_list_databases : Yojson.Safe.lexer_state -> Lexing.lexbuf -> list_databases

Input JSON data of type list_databases.

val list_databases_of_string : string -> list_databases

Deserialize JSON data of type list_databases.

val write_indexes : Buffer.t -> indexes -> unit

Output a JSON value of type indexes.

val string_of_indexes : ?len:int -> indexes -> string

Serialize a value of type indexes into a JSON string.

  • parameter len

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

Input JSON data of type indexes.

val indexes_of_string : string -> indexes

Deserialize JSON data of type indexes.

val write_included_paths : Buffer.t -> included_paths -> unit

Output a JSON value of type included_paths.

val string_of_included_paths : ?len:int -> included_paths -> string

Serialize a value of type included_paths into a JSON string.

  • parameter len

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

val read_included_paths : Yojson.Safe.lexer_state -> Lexing.lexbuf -> included_paths

Input JSON data of type included_paths.

val included_paths_of_string : string -> included_paths

Deserialize JSON data of type included_paths.

val write_indexing_policy : Buffer.t -> indexing_policy -> unit

Output a JSON value of type indexing_policy.

val string_of_indexing_policy : ?len:int -> indexing_policy -> string

Serialize a value of type indexing_policy into a JSON string.

  • parameter len

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

val read_indexing_policy : Yojson.Safe.lexer_state -> Lexing.lexbuf -> indexing_policy

Input JSON data of type indexing_policy.

val indexing_policy_of_string : string -> indexing_policy

Deserialize JSON data of type indexing_policy.

val write_collection : Buffer.t -> collection -> unit

Output a JSON value of type collection.

val string_of_collection : ?len:int -> collection -> string

Serialize a value of type collection into a JSON string.

  • parameter len

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

Input JSON data of type collection.

val collection_of_string : string -> collection

Deserialize JSON data of type collection.

val write_list_collections : Buffer.t -> list_collections -> unit

Output a JSON value of type list_collections.

val string_of_list_collections : ?len:int -> list_collections -> string

Serialize a value of type list_collections into a JSON string.

  • parameter len

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

val read_list_collections : Yojson.Safe.lexer_state -> Lexing.lexbuf -> list_collections

Input JSON data of type list_collections.

val list_collections_of_string : string -> list_collections

Deserialize JSON data of type list_collections.

val write_create_user : Buffer.t -> create_user -> unit

Output a JSON value of type create_user.

val string_of_create_user : ?len:int -> create_user -> string

Serialize a value of type create_user into a JSON string.

  • parameter len

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

Input JSON data of type create_user.

val create_user_of_string : string -> create_user

Deserialize JSON data of type create_user.

val write_create_partition_key : Buffer.t -> create_partition_key -> unit

Output a JSON value of type create_partition_key.

val string_of_create_partition_key : ?len:int -> create_partition_key -> string

Serialize a value of type create_partition_key into a JSON string.

  • parameter len

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

val read_create_partition_key : Yojson.Safe.lexer_state -> Lexing.lexbuf -> create_partition_key

Input JSON data of type create_partition_key.

val create_partition_key_of_string : string -> create_partition_key

Deserialize JSON data of type create_partition_key.

val write_create_database : Buffer.t -> create_database -> unit

Output a JSON value of type create_database.

val string_of_create_database : ?len:int -> create_database -> string

Serialize a value of type create_database into a JSON string.

  • parameter len

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

val read_create_database : Yojson.Safe.lexer_state -> Lexing.lexbuf -> create_database

Input JSON data of type create_database.

val create_database_of_string : string -> create_database

Deserialize JSON data of type create_database.

val write_create_collection : Buffer.t -> create_collection -> unit

Output a JSON value of type create_collection.

val string_of_create_collection : ?len:int -> create_collection -> string

Serialize a value of type create_collection into a JSON string.

  • parameter len

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

val read_create_collection : Yojson.Safe.lexer_state -> Lexing.lexbuf -> create_collection

Input JSON data of type create_collection.

val create_collection_of_string : string -> create_collection

Deserialize JSON data of type create_collection.

OCaml

Innovation. Community. Security.