How to create a target that isn't a SQL dialect? #2191
Replies: 1 comment 9 replies
-
We'd have to re-architect that part of the code to do that — probably we'd extract the translator code into a Trait, which would implement the translation from RQ to the target. It's very possible, but it would be a sizable refactor... |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is quite obvious how to create a new target that is a SQL dialect, just edit
prql-compiler/src/sql/dialect.rs
and create astruct
that implements theDialectHandler
trait then provide some functions that override functions provided by the trait.But how would one go about creating a target that isn't a SQL dialect?
Beta Was this translation helpful? Give feedback.
All reactions