Skip to content

Commit

Permalink
chore: update insertOnly description (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicGBauer authored Dec 23, 2024
1 parent ba563b0 commit 0cb6213
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/powersync_core/lib/src/schema.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ class Table {

/// Create a table that only supports inserts.
///
/// This table records INSERT statements, but does not persist data locally.
/// 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.
///
const Table.insertOnly(this.name, this.columns, {String? viewName})
: localOnly = false,
insertOnly = true,
Expand Down

0 comments on commit 0cb6213

Please sign in to comment.