getConnection method
Returns a DBConnection to execute commands.
Implementation
@override
FutureOr<C> getConnection() {
if (_pool.isEmpty) {
return createConnection();
}
var c = _pool.removeFirst();
return c;
}
Returns a DBConnection to execute commands.
@override
FutureOr<C> getConnection() {
if (_pool.isEmpty) {
return createConnection();
}
var c = _pool.removeFirst();
return c;
}