Skip to main content

current_user_version

Function current_user_version 

Source
pub fn current_user_version(conn: &Connection) -> Result<i64, CoreError>
Expand description

Read the current PRAGMA user_version from a connection. Returns 0 on a fresh DB. Thin re-export of crate::migrator::current_user_version kept here for callers that only depend on the storage layer.