Skip to main content

get_global_db

Function get_global_db 

Source
pub fn get_global_db() -> Option<Arc<AnalyticsDatabase>>
Expand description

Return the global analytics database if one has been installed.

Recording sites should treat None as “analytics is disabled, skip” rather than an error — making the install opt-in keeps the OSS quick-start from creating a sqlite file the operator didn’t ask for.