Function rusqlite::trace::config_log
source · pub unsafe fn config_log(callback: Option<fn(_: c_int, _: &str)>) -> Result<()>Available on crate feature
trace only.Expand description
Set up the process-wide SQLite error logging callback.
§Safety
This function is marked unsafe for two reasons:
- The function is not threadsafe. No other SQLite calls may be made while
config_logis running, and multiple threads may not callconfig_logsimultaneously. - The provided
callbackitself function has two requirements:- It must not invoke any SQLite calls.
- It must be threadsafe if SQLite is used in a multithreaded way.