MCPcopy Create free account
hub / github.com/chatmail/core / close

Method close

src/sql.rs:120–123  ·  view source on GitHub ↗

Closes all underlying Sqlite connections.

(&self)

Source from the content-addressed store, hash-verified

118
119 /// Closes all underlying Sqlite connections.
120 pub(crate) async fn close(&self) {
121 let _ = self.pool.write().await.take();
122 // drop closes the connection
123 }
124
125 /// Imports the database from a separate file with the given passphrase.
126 pub(crate) async fn import(&self, path: &Path, passphrase: String) -> Result<()> {

Callers 12

get_core_infoFunction · 0.45
remove_accountMethod · 0.45
stopMethod · 0.45
stop_ioMethod · 0.45
test_db_reopenFunction · 0.45
test_check_passphraseFunction · 0.45
maybe_close_folderMethod · 0.45
big_webxdc_appFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_db_reopenFunction · 0.36
test_check_passphraseFunction · 0.36
big_webxdc_appFunction · 0.36