queries method
Future<void>
queries(
- DatabaseSession session,
- SessionLogEntry sessionLogEntry,
- QueryLogEntry queryLogEntry, {
- Transaction? transaction,
Creates a relation between this SessionLogEntry and the given QueryLogEntry
by setting the QueryLogEntry's foreign key sessionLogId to refer to this SessionLogEntry.
Implementation
Future<void> queries(
_i1.DatabaseSession session,
SessionLogEntry sessionLogEntry,
_i3.QueryLogEntry queryLogEntry, {
_i1.Transaction? transaction,
}) async {
if (queryLogEntry.id == null) {
throw ArgumentError.notNull('queryLogEntry.id');
}
if (sessionLogEntry.id == null) {
throw ArgumentError.notNull('sessionLogEntry.id');
}
var $queryLogEntry = queryLogEntry.copyWith(
sessionLogId: sessionLogEntry.id,
);
await session.db.updateRow<_i3.QueryLogEntry>(
$queryLogEntry,
columns: [_i3.QueryLogEntry.t.sessionLogId],
transaction: transaction,
);
}