insert method

Future<List<LogEntry>> insert(
  1. Session session,
  2. List<LogEntry> rows, {
  3. Transaction? transaction,
})

Inserts all LogEntrys in the list and returns the inserted rows.

The returned LogEntrys will have their id fields set.

This is an atomic operation, meaning that if one of the rows fails to insert, none of the rows will be inserted.

Implementation

Future<List<LogEntry>> insert(
  _i1.Session session,
  List<LogEntry> rows, {
  _i1.Transaction? transaction,
}) async {
  return session.db.insert<LogEntry>(
    rows,
    transaction: transaction,
  );
}