Skip to main content

apply_init_pragmas

Function apply_init_pragmas 

Source
pub fn apply_init_pragmas(conn: &Connection) -> Result<(), AppError>
Expand description

Applies one-time PRAGMAs on a freshly opened connection (e.g. auto_vacuum).

Calls apply_connection_pragmas internally and then sets wal_autocheckpoint. Must be called once per database file, not once per connection.

ยงErrors

Returns Err when any PRAGMA execution fails.