insert method

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

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

The returned AuthUsers 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<AuthUser>> insert(
  _i1.Session session,
  List<AuthUser> rows, {
  _i1.Transaction? transaction,
}) async {
  return session.db.insert<AuthUser>(
    rows,
    transaction: transaction,
  );
}