Skip to main content

RawTable

Experimental

Instructs PowerSync to sync data into a "raw" table.

Since raw tables are not backed by JSON, running complex queries on them may be more efficient. Further, they allow using client-side table and column constraints.

To collect local writes to raw tables with PowerSync, custom triggers are required. See the documentation for details and an example on using raw tables.

Note that raw tables are only supported when using the new SyncClientImplementation.rust sync client.

Please note that this feature is experimental at the moment, and not covered by PowerSync semver or stability guarantees.

Implements

Constructors

new RawTable()

new RawTable(name, type): RawTable

Experimental

Parameters

ParameterType
namestring
typeRawTableType

Returns

RawTable

Properties

PropertyTypeDescription
deletePendingStatementExperimental The statement to run when PowerSync detects that a row needs to be deleted.
namestringExperimental The name of the table. This does not have to match the actual table name in the schema - put and delete are free to use another table. Instead, this name is used by the sync client to recognize that operations on this table (as it appears in the source / backend database) are to be handled specially.
putPendingStatementExperimental The statement to run when PowerSync detects that a row needs to be inserted or updated.