Comments (9)
Might subselect be useful for UNION and UNION ALL queries?
from korma.
- support UNION UNION ALL..
from korma.
I only have MySQL running, and these don't exist in MySQL. I've got some work that I can put on a branch if one of you are interested you can take it and run with it.
from korma.
thank, i like sqlalchemy, Korma is very flexible, and I hope The Korma there are the SQLAlchemy similar functionality
from korma.
This is what I came up with https://github.com/korma/Korma/compare/union-support
I couldn't run this query using java.jdbc to confirm it works as desired, since I only have MySQL installed.
Also, ORDER_BY support would need to be added.
Another concern is that the syntax is unfortunately clunky. I don't want the sub-queries to execute so used (-> (select* ...) (where ...))
from korma.
Can anyone test this code on a version of SQL that supports UNION?
https://github.com/korma/Korma/compare/union-support
from korma.
i test union-all on postgresql, no problem
from korma.
I'll push a SNAPSHOT release we can test out a bit before the next beta.
On Tue, Jan 8, 2013 at 10:42 PM, jiangjianxiao [email protected]:
i test union-all on postgresql, no problem
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-12033499.
from korma.
I deployed a korma-0.3.0-beta15-SNAPSHOT to clojars. Please try it out and let me know of anything.
from korma.
Related Issues (20)
- SQL comments? HOT 16
- Any way to specify ON CONFLICT DO NOTHING? HOT 2
- Empty "SET" in Update HOT 2
- No default connection pool when using defdb HOT 1
- 0.4.3 issue which may be simple to solve but has me mystified. HOT 2
- [enhancement] Updating a row should respect `jdbc/ISQLParameter` and `jdbc/ISQLValue` protocols
- Maintainers Wanted HOT 2
- http://sqlkorma.com/docs is down HOT 3
- clojure korma.core order 问题 HOT 2
- Do has-many relations not work with (fields :otherthan*)?
- Aliasing entities in (with ..)
- Missing REPLACE or UPSERT and SELECT FOR UPDATE
- Can not use dry run for query in for loop
- [REQUEST] Help to implement Google Query Language
- Parameters from sqlfn inside fields alias are not correctly passed to JDBC
- Korma 0.5.0-RC1 breaks "with" on many-to-many relationships HOT 1
- Subselect breaks after uberjar using composed queries
- hook into select query field values
- http://sqlkorma.com/ is down HOT 6
- Heads up to MySQL users – mysql-connector-java "8.0.23" has a BREAKING change
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from korma.