entity::global
pub fn set_db<D: Database + 'static>(database: D) -> WeakDatabaseRc
Sets the global database to the specific database implementation