vastdb.bucket

VAST Database bucket.

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.bucket.Bucket(name: str, tx: Transaction)[source]

Bases: object

VAST bucket.

create_schema(name: str, fail_if_exists=True) Schema[source]

Create a new schema (a container of tables) under this bucket.

name: str
schema(name: str, fail_if_missing=True) Schema | None[source]

Get a specific schema (a container of tables) under this bucket.

schemas(batch_size: int | None = None) Iterable[Schema][source]

List bucket’s schemas.

snapshot(name: str, fail_if_missing=True) Bucket | None[source]

Get snapshot by name (if exists).

snapshots() Iterable[Bucket][source]

List bucket’s snapshots.

tx: transaction.Transaction