MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / get_database_backend

Method get_database_backend

src/driver/mock.rs:125–130  ·  view source on GitHub ↗

Get the [DatabaseBackend](crate::DatabaseBackend) being used by the [MockDatabase] # Panics Will panic if the lock cannot be acquired.

(&self)

Source from the content-addressed store, hash-verified

123 ///
124 /// Will panic if the lock cannot be acquired.
125 pub fn get_database_backend(&self) -> DbBackend {
126 self.mocker
127 .lock()
128 .expect("Fail to acquire mocker")
129 .get_database_backend()
130 }
131
132 /// Execute the SQL statement in the [MockDatabase]
133 #[instrument(level = "trace")]

Callers 15

new_mockMethod · 0.45
into_selector_rawMethod · 0.45
fetch_pageMethod · 0.45
num_itemsMethod · 0.45
existsMethod · 0.45
fetch_pageFunction · 0.45
fetch_page_rawFunction · 0.45
fetchFunction · 0.45
fetch_rawFunction · 0.45
num_pagesFunction · 0.45
num_pages_rawFunction · 0.45
fetch_and_nextFunction · 0.45

Calls 1

lockMethod · 0.80

Tested by 1

mainFunction · 0.36