exec method

int exec(
  1. PtrSqlite3 arg1,
  2. String sql,
  3. PtrDefcallback callback,
  4. PtrVoid arg2,
  5. PtrPtrUtf8 errmsg,
)
inherited

Implementation

int exec(PtrSqlite3 arg1, String sql, PtrDefcallback callback, PtrVoid arg2, PtrPtrUtf8 errmsg) {
  final sqlMeta = sql._metaNativeUtf8();
  final ptrSql = sqlMeta.ptr;
  try {
    return _h_sqlite3_exec(arg1, ptrSql, callback, arg2, errmsg);
  } finally {
    pkgffi.malloc.free(ptrSql);
  }
}