GithubHelp home page GithubHelp logo

Comments (9)

aaelony avatar aaelony commented on May 13, 2024

Might subselect be useful for UNION and UNION ALL queries?

from korma.

jiangjianxiao avatar jiangjianxiao commented on May 13, 2024
  • support UNION UNION ALL..

from korma.

AlexBaranosky avatar AlexBaranosky commented on May 13, 2024

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.

jiangjianxiao avatar jiangjianxiao commented on May 13, 2024

thank, i like sqlalchemy, Korma is very flexible, and I hope The Korma there are the SQLAlchemy similar functionality

from korma.

AlexBaranosky avatar AlexBaranosky commented on May 13, 2024

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.

AlexBaranosky avatar AlexBaranosky commented on May 13, 2024

Can anyone test this code on a version of SQL that supports UNION?
https://github.com/korma/Korma/compare/union-support

from korma.

jiangjianxiao avatar jiangjianxiao commented on May 13, 2024

i test union-all on postgresql, no problem

from korma.

AlexBaranosky avatar AlexBaranosky commented on May 13, 2024

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.

AlexBaranosky avatar AlexBaranosky commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.