Skip to content

Conversation

@Chriztiaan
Copy link
Contributor

@Chriztiaan Chriztiaan commented Jun 6, 2024

Description

This PR introduces the ability to pass parameters from a client SDK to the sync rules.
Parameters are available in the sync rules under user_parameters (only supported token_parameters until now). Client PR here

For example:

bucket_definitions:
  user_lists:
    parameters: select id as list_id from lists where owner_id = user_parameters.client_variable_test
    data:
      - SELECT * FROM lists where id = bucket.list_id

Testing

Verified values pull through via self-host project.

@Chriztiaan Chriztiaan marked this pull request as ready for review June 10, 2024 14:05
Copy link
Collaborator

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants