Enum libsql_client::client::GenericClient
source · pub enum GenericClient {
Local(Client),
Reqwest(Client),
Hrana(Client),
Workers(Client),
Spin(Client),
}
Expand description
A generic client struct, wrapping possible backends. It’s a convenience struct which allows implementing connect() with backends being passed as env parameters.
Variants§
Trait Implementations§
source§impl DatabaseClient for GenericClient
impl DatabaseClient for GenericClient
source§fn batch<'life0, 'async_trait>(
&'life0 self,
stmts: impl 'async_trait + IntoIterator<Item = impl 'async_trait + Into<Statement>>
) -> Pin<Box<dyn Future<Output = Result<Vec<QueryResult>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn batch<'life0, 'async_trait>( &'life0 self, stmts: impl 'async_trait + IntoIterator<Item = impl 'async_trait + Into<Statement>> ) -> Pin<Box<dyn Future<Output = Result<Vec<QueryResult>>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Executes a batch of SQL statements.
Each statement is going to run in its own transaction,
unless they’re wrapped in BEGIN and END Read more