vastdb.schema
VAST Database schema (a container of tables).
VAST S3 buckets can be used to create Database schemas and tables. It is possible to list and access VAST snapshots generated over a bucket.
- class vastdb.schema.Schema(name: str, bucket: Bucket)[source]
Bases:
objectVAST Schema.
- create_schema(name: str, fail_if_exists=True) Schema[source]
Create a new schema (a container of tables) under this schema.
- create_table(table_name: str, columns: pyarrow.Schema, fail_if_exists=True, use_external_row_ids_allocation=False) Table[source]
Create a new table under this schema.
- name: str
- schema(name: str, fail_if_missing=True) Schema | None[source]
Get a specific schema (a container of tables) under this schema.
- table(name: str, fail_if_missing=True) Table | None[source]
Get a specific table under this schema.
- property tx
VAST transaction used for this schema.