-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature sql fragments #113
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Hey @Newbie012—noticed that your recent roadmap post didn't mention fragments support. Did you run into a blocker when implementing this? Being able to compose SQL from multiple fragments would be incredibly useful in DRYing up code. Curious if you had any thoughts on the feature in general. Would you be opposed to an outside contribution adding support for fragments? Thanks! |
Hi @sds, When I first drafted this PR, I realized it would be too difficult to support sql fragments while still keeping SafeQL library-agnostic (since each library has its own implementation, and I didn't want to force any convention). Although I haven’t explicitly mentioned SQL fragments in the roadmap, I plan to address them using [custom presets](https://safeql.dev/blog/safeql-v4-roadmap.html#example-3-custom-library-presets). These presets will provide the low-level control needed to support SQL fragments while still allowing SafeQL’s core to remain library-agnostic and pluggable. |
Thanks for the response! Looking forward to v4 when it's ready—thanks for all your work on SafeQL. |
No description provided.