Giter Site home page Giter Site logo

Comments (8)

dankochetov avatar dankochetov commented on May 17, 2024

Thank you for the feedback! We have query composition support on our roadmap 👍

from drizzle-orm.

AlexBlokh avatar AlexBlokh commented on May 17, 2024

hey, @izelnakri
Just to make sure we're on the same page, those query compositions are subqueries in SQL?

from drizzle-orm.

izelnakri avatar izelnakri commented on May 17, 2024

Hi @AlexBlokh, it is a representation/intermediary data for an SQL statement. Repo.all or Repo.one gets that fed in and generates the query, so you can make a query with subqueries inside an Ecto.Query struct.

from drizzle-orm.

dankochetov avatar dankochetov commented on May 17, 2024

We now support selecting and joining a subquery since 0.19.0 - https://github.com/drizzle-team/drizzle-orm/releases/tag/0.19.0

from drizzle-orm.

AlexBlokh avatar AlexBlokh commented on May 17, 2024

cc: @izelnakri
please have a look and provide feedback

from drizzle-orm.

izelnakri avatar izelnakri commented on May 17, 2024

Based on this: https://github.com/drizzle-team/drizzle-orm/releases/tag/0.19.0 It isn't what I had in mind as it evals JS context? Rather what I've meant is Ecto creates a intermediary query data structure in Elixir(or JS in this case) and feeds it to Repo.one or Repo.all but I'll have a look ;)

from drizzle-orm.

dankochetov avatar dankochetov commented on May 17, 2024

Closing this as we already have subquery and WITH support implemented. Feel free to open another issue if there's anything else you would like to see in the API.

from drizzle-orm.

izelnakri avatar izelnakri commented on May 17, 2024

its not the same, please have a look into ecto, every query is a intermediary data structure(Ecto.Query) before calling Repo.one or Repo.all, so one can compose queries.

from drizzle-orm.

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.