Skip to content
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

Replace UNION ALL query string with DSL #100

Open
Libbum opened this issue Dec 7, 2020 · 0 comments
Open

Replace UNION ALL query string with DSL #100

Libbum opened this issue Dec 7, 2020 · 0 comments

Comments

@Libbum
Copy link
Owner

Libbum commented Dec 7, 2020

//NOTE: UNION ALL and WITH RECURSIVE are currently not supported by diesel
//https://github.com/diesel-rs/diesel/issues/33
//https://github.com/diesel-rs/diesel/issues/356
//So this is implemented in native SQL for the moment
//TODO: since SqlLiteral#bind is depreciated, we should be using `sql_query`
//here. However: we're building a virtual table and pulling a count from it.
//Diesel for the moment AFAIK is not a happy camper about this.

This issue has a fix now (I think), so we can take a look at re-implementing this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant