Skip to main content

register_from_table

Function register_from_table 

Source
pub async fn register_from_table(
    db: &Db,
    registry: &mut AdminRegistry,
    table: &str,
) -> Result<(), Error>
Expand description

Schema-driven counterpart to register_generated. Reads the table’s columns via PRAGMA table_info, builds an AdminModelConfig from them, and registers it under the derived slug. The table must already exist — this helper does not issue CREATE TABLE.