prepare method

IStatement prepare(
  1. IStatus status,
  2. ITransaction transaction,
  3. String sqlStmt, [
  4. int dialect = FbConsts.sqlDialectCurrent,
  5. int flags = 0,
])

Implementation

IStatement prepare(IStatus status, ITransaction transaction, String sqlStmt,
    [int dialect = FbConsts.sqlDialectCurrent, int flags = 0]) {
  final sqlUtf = sqlStmt.toNativeUtf8(allocator: mem);
  try {
    final res = _prepare(
        self, status.self, transaction.self, 0, sqlUtf, dialect, flags);
    status.checkStatus();
    return IStatement(res);
  } finally {
    mem.free(sqlUtf);
  }
}