Referencing external tables in .drift files #3681
Closed
galacticgibbon
started this conversation in
General
Replies: 1 comment 5 replies
-
|
The thing about these external tables (I assume you're referring to I have added analysis support for these virtual tables in 5724986, so with the next release you could add |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using powersync raw tables which requires creating triggers/migrations that reference some tables managed by them
e.g. trigger: https://docs.powersync.com/usage/use-case-examples/raw-tables#capture-local-writes-with-triggers
and data migrations: https://docs.powersync.com/usage/use-case-examples/raw-tables#adding-raw-tables-as-a-new-table
I'd like these triggers to be part of my drift schema for type safety and automated migrations, but I run into lint errors because they reference tables that drift doesn't know about, and test errors from the generated tests from make-migration when applying the data migrations from ps_untyped
I was just wondering if there's some existing solution or if you have ideas on solving them. Perhaps a way to quiet lints, or declare tables in .drift files that won't be committed in the DB, something along those lines.
Beta Was this translation helpful? Give feedback.
All reactions