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 supports INSERT statements, operations are recorded internally and are cleared once handled in the PowerSyncBackendConnector.uploadData method.

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;