Expand description
Database-backed runtime system configuration store.
Aster products share the same system_config table shape and persistence
rules: system definitions are seeded from a product registry, custom values
are stored as scalar strings, public/authenticated custom values can be
exposed to clients, and startup repairs system metadata without overwriting
user-provided values. Product crates still own their configuration
definitions, validation callbacks, audit records, and API presentation.
Structs§
- Active
Model - Generated by sea-orm-macros
- Column
Iter - An iterator over the variants of Column
- Entity
- Generated by sea-orm-macros
- Model
- Runtime system configuration SeaORM model.
- Presented
System Config - API-facing representation of a stored system configuration row.
- Primary
KeyIter - An iterator over the variants of PrimaryKey
- Relation
Iter - An iterator over the variants of Relation
- System
Config Cursor Slice - Page slice returned by cursor-style repository queries.
- System
Config DbBinding - Product binding for the shared system config store.
- System
Config DbStore - SeaORM-backed system configuration store.
- System
Config Upsert - Product request to upsert one system or custom configuration value.
Enums§
- Column
- Generated by sea-orm-macros
- Primary
Key - Generated by sea-orm-macros
- Relation
Constants§
- SYSTEM_
CONFIG_ CATEGORY_ COLUMN - Product category column.
- SYSTEM_
CONFIG_ DESCRIPTION_ COLUMN - Product description column.
- SYSTEM_
CONFIG_ ID_ COLUMN - Stable row id column.
- SYSTEM_
CONFIG_ IS_ SENSITIVE_ COLUMN - Sensitive-value marker column.
- SYSTEM_
CONFIG_ KEY_ COLUMN - Stable configuration key column.
- SYSTEM_
CONFIG_ KEY_ UNIQUE_ INDEX - Unique index name for configuration keys.
- SYSTEM_
CONFIG_ NAMESPACE_ COLUMN - Optional product namespace column.
- SYSTEM_
CONFIG_ REQUIRES_ RESTART_ COLUMN - Restart-required marker column.
- SYSTEM_
CONFIG_ SOURCE_ COLUMN - System/custom source column.
- SYSTEM_
CONFIG_ TABLE - Shared system configuration table name.
- SYSTEM_
CONFIG_ UPDATED_ AT_ COLUMN - Last update timestamp column.
- SYSTEM_
CONFIG_ UPDATED_ BY_ COLUMN - Optional actor user id column.
- SYSTEM_
CONFIG_ VALUE_ COLUMN - Storage value column.
- SYSTEM_
CONFIG_ VALUE_ TYPE_ COLUMN - Storage value type column.
- SYSTEM_
CONFIG_ VISIBILITY_ COLUMN - Consumer visibility column.
Functions§
- create_
system_ config_ key_ unique_ index - Builds the unique index for stable configuration keys.
- create_
system_ config_ table - Builds the shared
system_configtable creation statement. - delete_
by_ key - Deletes a custom row.
- delete_
deprecated_ keys - Deletes deprecated system keys configured by the product.
- drop_
system_ config_ table - Builds the shared
system_configtable drop statement. - ensure_
defaults - Ensures default rows exist and repairs metadata for existing system rows.
- ensure_
system_ value_ if_ missing - Inserts one system value if no row exists.
- find_
all - Lists all rows by stable id order.
- find_
by_ key - Finds one row by key.
- find_
cursor - Lists one id-cursor page by stable id order.
- find_
visible_ custom - Lists visible custom rows ordered by key.
- lock_
by_ key - Locks one row by key where the database supports row locks.
- present_
system_ config - Converts a stored system config row into an API-facing presentation row.
- upsert
- Upserts one row using registry metadata for known system keys.