pub async fn truncate_jsonb_table(
client: &Client,
table_name: &str,
) -> Result<()>Expand description
Truncate a JSONB table to remove all existing data
This is used to make init idempotent - rerunning init will clear existing data before inserting fresh data from the source.
§Arguments
client- PostgreSQL client connectiontable_name- Name of the table to truncate (must be validated)
§Security
CRITICAL: table_name MUST be validated with validate_table_name() before calling.