thanosql.resources._schema
Module Contents
Classes
Service layer for schema methods. |
- class thanosql.resources._schema.SchemaService(client: thanosql._client.ThanoSQL)
Bases:
thanosql._service.ThanoSQLServiceService layer for schema methods.
- list() dict
Lists schemas stored in the workspace.
Does not have any parameters.
- Returns:
A dictionary containing the names of stored schemas in the format of:
{ "schemas": [ { "name": "string" } ] }
- Return type:
dict
- create(name: str) dict
Creates a new schema in the workspace.
- Parameters:
name (str) – The name of the schema to be created.
- Returns:
A dictionary containing the name of the created schema and a success message in the format of:
{ "schema": "string", "message": "string" }
- Return type:
dict