pub struct EmbeddedDatabase(/* private fields */);Expand description
Database with synchronous and Tokio asynchronous access to the same native owner. Only one embedded instance can be active in a process. Close explicitly to observe shutdown errors.
Implementations§
Source§impl EmbeddedDatabase
impl EmbeddedDatabase
pub async fn open_async(options: EmbeddedOptions) -> Result<Self>
pub async fn query_async(&self, query: Query) -> Result<QueryResult>
pub async fn query_with_options_async( &self, query: Query, options: OperationOptions, ) -> Result<QueryResult>
pub async fn stream_append_async( &self, request: StreamAppend, options: OperationOptions, ) -> Result<StreamAcknowledgement>
pub async fn stream_fetch_async( &self, request: StreamFetch, options: OperationOptions, ) -> Result<StreamPage>
pub async fn status_async(&self) -> Result<RuntimeStatus>
pub async fn cancel_async(&self, operation_id: &str) -> Result<bool>
pub async fn flush_async(&self) -> Result<()>
pub async fn close_async(self) -> Result<()>
pub fn open(options: EmbeddedOptions) -> Result<Self>
pub fn query(&self, query: Query) -> Result<QueryResult>
pub fn query_with_options( &self, query: Query, options: OperationOptions, ) -> Result<QueryResult>
pub fn stream_append( &self, request: StreamAppend, options: OperationOptions, ) -> Result<StreamAcknowledgement>
pub fn stream_fetch( &self, request: StreamFetch, options: OperationOptions, ) -> Result<StreamPage>
pub fn status(&self) -> Result<RuntimeStatus>
pub fn cancel(&self, operation_id: &str) -> Result<bool>
pub fn flush(&self) -> Result<()>
pub fn close(self) -> Result<()>
Auto Trait Implementations§
impl Forget for EmbeddedDatabase
impl Freeze for EmbeddedDatabase
impl RefUnwindSafe for EmbeddedDatabase
impl Send for EmbeddedDatabase
impl Sync for EmbeddedDatabase
impl Unpin for EmbeddedDatabase
impl UnsafeUnpin for EmbeddedDatabase
impl UnwindSafe for EmbeddedDatabase
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