Class RawTableSchema
The schema of a [RawTable] in the local database.
This information is optional when declaring raw tables. However, providing it allows the sync client to infer [RawTable.put] and [RawTable.delete] statements automatically.
public class RawTableSchema
- Inheritance
-
RawTableSchema
- Inherited Members
Properties
- Options
Common options affecting how the
powersync_create_raw_table_crud_triggerSQL function generates triggers.
- SyncedColumns
An optional filter of columns that should be synced.
By default, all columns in a raw table are considered to be synced. If a filter is specified, PowerSync treats unmatched columns as local-only and will not attempt to sync them.
- TableName
The actual name of the raw table in the local schema.
While Name specifies the name of the synced tables to match, this specifies the name of the table in the local SQLite database. This is used to infer statements for the sync client. It can also be used to auto-generate triggers forwarding writes on raw tables into the CRUD upload queue.
When set to null, defaults to Name.