MySQL Async support for Toql
Add this to your Cargo.toml
:
[]
= { = "0.4", = ["serde"]}
= "0.4"
And get your Toql with
use ;
use Cache;
let database_url = "mysql://USER:PASS@localhost:3306/DATABASE";
let pool = new;
let mut conn = pool.get_conn.await?;
let cache = new;
let mut toql = from;
A transaction can be started from a connection:
use TxOpts;
// let conn = ...
// let cache = ...
let tx_opts = default;
let tx = conn.start_transaction.await?;
let mut toql = from;
License
Toql MySqlAsync is distributed under the terms of both the MIT license and the Apache License (Version 2.0).