Giter VIP home page Giter VIP logo

Comments (4)

davidmartos96 avatar davidmartos96 commented on August 16, 2024 1

Thanks Simon!

from drift.

simolus3 avatar simolus3 commented on August 16, 2024

Just to make sure I'm not missing anything obvious, you'll never need limit/where/order/joins here right? So the API would essentially be Selectable<TypedResult> selectExpressions(Iterable<Expression> expressions) without a possibility of modifying the statement afterwards.

from drift.

davidmartos96 avatar davidmartos96 commented on August 16, 2024

@simolus3 I can't currently see any usage for joins, but maybe WHERE could end up being useful.
Although selecting an expression + a where is technically creating a subquery with the WHERE right? So unless it's trivial to add it might not be worth it

from drift.

simolus3 avatar simolus3 commented on August 16, 2024

Although selecting an expression + a where is technically creating a subquery with the WHERE right?

I don't think so, because columns from t1 are not in scope on the outer select without a FROM clause. So the WHERE couldn't really refer to anything either way. It would mean that the select returns either zero or one rows, but I can't come up with a scenario where that is useful.

from drift.

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.