synthd’s data model works with three concepts.
synthd
Documents: a document is simply a JSON object, i.e. a key-value store with string keys.
Collections: a collection is an array of documents.
Namespaces: a namespace is a key-value store of collections, with string keys.
The Namespace API is the subset of API functionalities of the synthd API that allows for listing namespaces, accessing their inner data models’ schemas and rollback operations.
NamespaceClient(client)
NamespaceClient
Base class for the Namespace API.
NamespaceClient.delete_collection(*args, …)
NamespaceClient.delete_collection
Delete a collection.
NamespaceClient.delete_namespace(*args, **kwargs)
NamespaceClient.delete_namespace
Delete a namespace.
NamespaceClient.get_namespaces()
NamespaceClient.get_namespaces
List all namespaces.
NamespaceClient.get_schema(*args, **kwargs)
NamespaceClient.get_schema
Retrieve the schema of a single collection or all collections in a namespace.
NamespaceClient.rollback_namespace(*args, …)
NamespaceClient.rollback_namespace
Rollback to a specified namespace generation.