execute method

ITransaction execute(
  1. IStatus status,
  2. ITransaction transaction,
  3. String sqlStmt, [
  4. int dialect = FbConsts.sqlDialectCurrent,
  5. IMessageMetadata? inMetadata,
  6. Pointer<Uint8>? inBuffer,
  7. IMessageMetadata? outMetadata,
  8. Pointer<Uint8>? outBuffer,
])

Implementation

ITransaction execute(IStatus status, ITransaction transaction, String sqlStmt,
    [int dialect = FbConsts.sqlDialectCurrent,
    IMessageMetadata? inMetadata,
    Pointer<Uint8>? inBuffer,
    IMessageMetadata? outMetadata,
    Pointer<Uint8>? outBuffer]) {
  final stmtUtf = sqlStmt.toNativeUtf8(allocator: mem);
  try {
    final res = _execute(
        self,
        status.self,
        transaction.self,
        0,
        stmtUtf,
        dialect,
        inMetadata?.self ?? nullptr,
        inBuffer ?? nullptr,
        outMetadata?.self ?? nullptr,
        outBuffer ?? nullptr);
    status.checkStatus();
    return ITransaction(res);
  } finally {
    mem.free(stmtUtf);
  }
}