db_readonly method

int db_readonly(
  1. PtrSqlite3 db,
  2. String zDbName
)
inherited

Implementation

int db_readonly(PtrSqlite3 db, String zDbName) {
  if (libVersionNumber < 3007011) {
    throw dbsql.DatabaseException('API sqlite3_db_readonly is not available before 3.7.11');
  }
  final zDbNameMeta = zDbName._metaNativeUtf8();
  final ptrZDbName = zDbNameMeta.ptr;
  try {
    return _h_sqlite3_db_readonly!(db, ptrZDbName);
  } finally {
    pkgffi.malloc.free(ptrZDbName);
  }
}