prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
583 stars 61 forks source link

Union on queries #261

Open GrandChaman opened 3 years ago

GrandChaman commented 3 years ago

Hi !

Would'nt it be nice to be able to UNION together more than just SELECT ? Like the returning data from INSERT, UPDATE and DELETE (Postgres only)

Would it mean that the Visitor::visit_union should'nt be provided anymore and implemented at the visitor level ?

pimeys commented 3 years ago

Should not be that hard to implement either. The question is though, what should happen with other databases?

GrandChaman commented 3 years ago
pimeys commented 3 years ago

Would you like to give a try for the point two? I know I have quite full schedule on Prisma for the next sprint, so I doubt I have any time to focus in this issue...

GrandChaman commented 3 years ago

Unfortunately, I'll be too busy too :(