Skip to main content

Database

Trait Database 

Source
pub trait Database {
    // Required methods
    async fn query(&self, query: impl IntoQuery) -> Result<QueryResult, Error>;
    async fn query_with_args(
        &self,
        query: &ParsedQuery,
        args: &[QueryArg],
    ) -> Result<QueryResult, Error>;
}

Required Methods§

Source

async fn query(&self, query: impl IntoQuery) -> Result<QueryResult, Error>

Source

async fn query_with_args( &self, query: &ParsedQuery, args: &[QueryArg], ) -> Result<QueryResult, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§