elgris / sqrl

Fluent SQL generation for golang
MIT License
279 stars 38 forks source link

Add Union/UnionAll support #36

Closed mattly closed 1 year ago

mattly commented 1 year ago

I've found myself needing first-class support recently for a lot of more advanced SQL features, such that parameters are used correctly, and finding neither Prefix nor Suffix really work for what I'm doing. This is the first of a handful of small PRs adding support for some of these features.

This one adds Union and UnionAll support. It adds the target query to a new internal storage part, combiningParts, which could also be used in the future to support INTERSECT or EXCEPT combining clauses.

imle commented 3 months ago

@mattly why did you end up closing this?

mattly commented 3 months ago

@mattly why did you end up closing this?

because the employer on whose behalf I was pursuing it laid everyone off, including myself