Closes all underlying Sqlite connections.
(&self)
| 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<()> { |
no outgoing calls