execute method
ITransaction
execute(
- IStatus status,
- ITransaction transaction,
- String sqlStmt, [
- int dialect = FbConsts.sqlDialectCurrent,
- IMessageMetadata? inMetadata,
- Pointer<
Uint8> ? inBuffer, - IMessageMetadata? outMetadata,
- 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);
}
}