pub fn open_sqlite(path: &str) -> Result<Connection>Expand description
Open a SQLite database in read-only mode
Opens the database with read-only flag for safety. The database file must exist and be readable.
§Arguments
path- Path to SQLite file (will be validated)
§Returns
Read-only rusqlite::Connection if successful
§Security
- Path is validated before opening
- Database opened in read-only mode (SQLITE_OPEN_READ_ONLY)
- No modifications possible
§Examples
let conn = open_sqlite("database.db")?;
// Use connection to read data