Struct planetscale_driver::PSConnection
source · pub struct PSConnection {
pub host: String,
pub auth: String,
pub session: Option<Session>,
pub client: Client,
}Fields§
§host: String§auth: String§session: Option<Session>§client: ClientImplementations§
source§impl PSConnection
impl PSConnection
sourcepub async fn transaction(&self, q: Vec<QueryBuilder>) -> Result<()>
pub async fn transaction(&self, q: Vec<QueryBuilder>) -> Result<()>
Execute a multiple SQL queries using transactions
pub async fn execute_session(&mut self, query: &str) -> Result<ExecuteResponse>
Trait Implementations§
source§impl Clone for PSConnection
impl Clone for PSConnection
source§fn clone(&self) -> PSConnection
fn clone(&self) -> PSConnection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more