Giter Club home page Giter Club logo

Comments (6)

rbock avatar rbock commented on July 22, 2024

Not yet.

It is on my TODO list, but not top priority from my personal
perspective. Should not be too hard, though. Patches are welcome, of
course :-)

Best,

Roland

from sqlpp11.

anton-potapov avatar anton-potapov commented on July 22, 2024

any ideas how to implement ? - I'm newbie to the lib :)

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

It depends on whether union should be a member function of select or a
free function. Not sure yet.

In the first case:
Take a look at the select statement. The first step would be to add
another component that allows calling a "union_" function.

In the second case:
Create a free function, that takes two or more select statements and
returns a statement that contains these selects plus the ability to call
order and limit.

I am leaning towards the free function at the moment, but I have not
really thought it through.

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

Actually, I think we should have both, member function and free
function, both yielding a union_t, which again can be combined with
other unions or selects by calling the union_ member or free function.

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

Hi,

Finally, I got to looking into unions: I just pushed a first version of union_ member function. It has almost no compile-time checks included yet. These will follow in the next few days.

Cheers,

Roland

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

UNION support is now included in releases > 0.30

Please use tests/UnionTest as guideline for the time being. Documentation will follow step by step...

from sqlpp11.

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.