Skip to main content

Module schema

Module schema 

Source
Expand description

PostgreSQL storage schema helpers for yugendb.

The schema maps yugendb’s namespace, collection, and key contract to one SQL storage table used by the PostgreSQL driver.

Structs§

PostgresDriverStorageSchema
Structured schema description.

Constants§

ALL_SCHEMA_STATEMENTS
Ordered schema statements for initial setup.
CREATE_EXPIRES_AT_INDEX_SQL
Expiry index used by TTL filtering.
CREATE_PREFIX_INDEX_SQL
Prefix index used by prefix scans.
CREATE_STORE_TABLE_SQL
Table creation statement for the yugendb storage table.
MIGRATION_METADATA_TABLE_NAME
Metadata table used for migration tracking.
SCHEMA_VERSION
Current schema version for the PostgreSQL storage table.
STORE_TABLE_NAME
Storage table used by the PostgreSQL driver.
VALUE_COLUMN_TYPE
Binary value column type for this backend.

Functions§

schema_statements
Returns all schema statements in execution order.