pub struct SqliteDb { /* private fields */ }Implementations§
Source§impl SqliteDb
impl SqliteDb
pub async fn begin_transaction( &self, timeout: Option<Duration>, ) -> Result<SqliteTransaction>
pub async fn begin_transaction_with_key( &self, key: impl Into<String>, timeout: Option<Duration>, ) -> Result<SqliteTransaction>
Source§impl SqliteDb
impl SqliteDb
pub fn new( handle: EnvoyHandle, actor_id: impl Into<String>, enabled: bool, ) -> Result<Self>
pub fn new_with_remote_sqlite( handle: EnvoyHandle, actor_id: impl Into<String>, actor_key: Option<String>, generation: Option<u64>, enabled: bool, remote_sqlite: bool, ) -> Result<Self>
pub fn is_enabled(&self) -> bool
pub fn backend(&self) -> SqliteBackend
pub async fn get_pages( &self, request: SqliteGetPagesRequest, ) -> Result<SqliteGetPagesResponse>
pub async fn commit( &self, request: SqliteCommitRequest, ) -> Result<SqliteCommitResponse>
pub async fn open(&self) -> Result<()>
pub async fn exec(&self, sql: impl Into<String>) -> Result<QueryResult>
pub async fn query( &self, sql: impl Into<String>, params: Option<Vec<BindParam>>, ) -> Result<QueryResult>
pub async fn run( &self, sql: impl Into<String>, params: Option<Vec<BindParam>>, ) -> Result<ExecResult>
pub async fn execute( &self, sql: impl Into<String>, params: Option<Vec<BindParam>>, ) -> Result<ExecuteResult>
pub async fn execute_batch( &self, statements: Vec<SqliteBatchStatement>, ) -> Result<Vec<ExecuteResult>>
pub async fn close(&self) -> Result<()>
pub fn take_last_kv_error(&self) -> Option<String>
pub fn metrics(&self) -> Option<SqliteVfsMetricsSnapshot>
pub fn runtime_config(&self) -> Result<SqliteRuntimeConfig>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteDb
impl !UnwindSafe for SqliteDb
impl Freeze for SqliteDb
impl Send for SqliteDb
impl Sync for SqliteDb
impl Unpin for SqliteDb
impl UnsafeUnpin for SqliteDb
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more