Multiple Client Versions
In some cases, different client versions may need different output schemas.
When schema changes are additive, old clients would just ignore the new tables and columns, and no special handling is required. However, in some cases, the schema changes may be more drastic and may need separate Sync Rules based on the client version.
To distinguish between client versions, we would pass in additional user_parameters
from the client to the PowerSync instance. These parameters could be used to implement different logic based on the client version.
Support for user/client parameters is not yet available in the PowerSync client SDKs. This feature is currently on our roadmap.
Example to use different table names based on the client's schema_version
:
Note that user parameters are not authenticated — the client can pass in any values. If the parameter must be authenticated, use token_parameters
from the JWT instead.
Last updated