public TransactionController(MySqlDriver driver) { driver.Query("START TRANSACTION"); }
/* * public MySqlDriver Rent() * { * //if (pool.TryDequeue(out var result)) * //{ * // return result; * //} * //else * //{ * // lock (pool) * // { * // // pool.Count * * * * // } * //} * } */ public void Return(MySqlDriver driver) { //pool.Enqueue(driver); }