-
|
Can sync rules query Postgres functions and can Powersync get the name of the table to sync from the AS clause of a query and not just the WHERE clause. The idea is to use a function to do a more sophisticated query than PS can normally handle, return a table that exactly matches the columns of a real table. And then in the sync rule SQL do something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
PowerSync does support table aliases using the However, we do not support any custom Postgres functions or views. Only physical Postgres tables can be replicated, and only the functions and operators listed here are supported. If there are specific additional column-level functions you need, please let us know and we can consider adding them. |
Beta Was this translation helpful? Give feedback.
PowerSync does support table aliases using the
ASclause - the aliased name will be used in the sync protocol and on the client.However, we do not support any custom Postgres functions or views. Only physical Postgres tables can be replicated, and only the functions and operators listed here are supported. If there are specific additional column-level functions you need, please let us know and we can consider adding them.