Table.insertOnly constructor

const Table.insertOnly(
  1. String name,
  2. List<Column> columns, {
  3. String? viewName,
})

Create a table that only supports inserts.

This table records INSERT statements, but does not persist data locally.

SELECT queries on the table will always return 0 rows.

Implementation

const Table.insertOnly(this.name, this.columns, {String? viewName})
    : localOnly = false,
      insertOnly = true,
      indexes = const [],
      _viewNameOverride = viewName;