statement method

CommonPreparedStatement statement(
  1. String sql
)

Returns a prepared statement object for the given SQL string.

It is the responsibility of the caller to CommonPreparedStatement.close the result and free resources.

Implementation

CommonPreparedStatement statement(String sql) {
  checkActive();
  checkApiReadyingOrReady();
  raiseOnNul("SQLite.statement", sql);
  return _database!.prepare(sql, persistent: true);
}