txn_state method

int txn_state(
  1. PtrSqlite3 arg1,
  2. String? zSchema
)
inherited

Implementation

int txn_state(PtrSqlite3 arg1, String? zSchema) {
  if (libVersionNumber < 3034000) {
    throw dbsql.DatabaseException('API sqlite3_txn_state is not available before 3.34.0');
  }
  final zSchemaMeta = zSchema?._metaNativeUtf8();
  final ptrZSchema = zSchemaMeta?.ptr ?? ffi.nullptr;
  try {
    return _h_sqlite3_txn_state!(arg1, ptrZSchema);
  } finally {
    pkgffi.malloc.free(ptrZSchema);
  }
}