Skip to main content

sql_schema_version

Function sql_schema_version 

Source
pub async fn sql_schema_version(
    pool: &SqlitePool,
    registry_table: &str,
) -> Result<i64, AdkError>
Expand description

Returns the highest applied migration version, or 0 if no registry table exists or the registry is empty.

ยงErrors

Returns an error when registry_table is not an ASCII identifier of at most 63 bytes, or when the registry cannot be read for any reason other than the table being absent, such as a lost connection or a missing privilege.