mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
upgrade repl
This commit is contained in:
@@ -136,10 +136,22 @@ impl Context {
|
||||
l.run(self.clone());
|
||||
}
|
||||
|
||||
pub async fn is_running(&self) -> bool {
|
||||
self.inner.scheduler.read().await.is_running()
|
||||
}
|
||||
|
||||
pub async fn stop(&self) {
|
||||
self.inner.stop().await;
|
||||
}
|
||||
|
||||
/// Returns a reference to the underlying SQL instance.
|
||||
///
|
||||
/// Warning: this is only here for testing, not part of the public API.
|
||||
#[cfg(feature = "internals")]
|
||||
pub fn sql(&self) -> &Sql {
|
||||
&self.inner.sql
|
||||
}
|
||||
|
||||
/// Returns database file path.
|
||||
pub fn get_dbfile(&self) -> &Path {
|
||||
self.dbfile.as_path()
|
||||
|
||||
Reference in New Issue
Block a user