Dart DocumentationsqljockyRetainedConnection

RetainedConnection abstract class

Use ConnectionPool.getConnection to get a connection to the database which isn't released after each query. When you have finished with the connection you must release it, otherwise it will never be available in the pool again.

abstract class RetainedConnection extends QueriableConnection {
 /**
  * Releases the connection back to the connection pool.
  */
 Future release();
}

Extends

QueriableConnection > RetainedConnection

Methods

abstract Future<Query> prepare(String sql) #

inherited from QueriableConnection

Prepares a query with the given sql. Returns a [Future] that completes when the query has been prepared.

abstract Future<Results> prepareExecute(String sql, List<dynamic> parameters) #

inherited from QueriableConnection

Prepares and executes the sql with the given list of parameters. Returns a Future<Results> that completes when the query has been executed.

abstract Future<Results> query(String sql) #

inherited from QueriableConnection

Executes the sql query, returning a Future<Results> that completes when the results start to become available.

abstract Future release() #

Releases the connection back to the connection pool.