Rindle docs and package mapSkip to main content

introspect_replicated_table

Function introspect_replicated_table 

pub fn introspect_replicated_table(
    conn: &Connection,
    table: &str,
) -> Result<ReplicatedTableSchema, ReplicaError>
Expand description

Introspect and validate one persistent application table.

The checks deliberately happen before the engine builds a source: generated columns, triggers, virtual tables, and connection-local TEMP tables cannot be reproduced safely by row capture. WITHOUT ROWID is supported and explicitly distinguished from the single-column INTEGER PRIMARY KEY rowid alias.

Every check here reads catalog metadata only, so the cost is O(columns) and independent of the table’s row count — this runs on the write master’s migration path, once per table per DDL. Cell-level validation belongs to rindle-cdc at the capture boundary; see the comment above this function’s return.