Comments (8)
Thank you for the feedback! We have query composition support on our roadmap 👍
from drizzle-orm.
hey, @izelnakri
Just to make sure we're on the same page, those query compositions are subqueries in SQL?
from drizzle-orm.
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.
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.
cc: @izelnakri
please have a look and provide feedback
from drizzle-orm.
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.
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.
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)
- [BUG]: You're about to change created_at column type from timestamp(3) with time zone to timestamp (3) with time zone with 1 items HOT 1
- [BUG]: Drizzle Studio runner not working whenever there is 'inet' column in query mode
- [BUG]: $onUpdate/$onUpdateFn doesn't work with sql``
- [BUG]: onConflictDoUpdate generates broken SQL for PostgreSQL HOT 2
- [BUG]: documentation code snippets don't work for import { Client } from "pg"
- [BUG]: db push is pushing wrong sql queries MYSQL
- [FEATURE]: Is there a plan to support defining data models using decorators, similar to TypeORM? HOT 1
- [FEATURE]: Support QuestDB
- [BUG]: Node-API function "napi_type_tag_object" is not implemented yet. HOT 1
- [FEATURE]: Enhanced OracleDB Integration in Drizzle ORM
- [BUG]: error: column is of type integer[] but default expression is of type integer HOT 1
- [BUG]: Drizzle studio SQL runner - MySQL empty single quotes query linting false positive
- [FEATURE]: cloudflare d1 session support
- [FEATURE]: Better migration information
- [FEATURE]: Add ability to use CTEs with UNION queries HOT 1
- [FEATURE]: Allow for creating extensions using db:push
- [BUG]: DatabaseErrorException: ERROR: column "due_date" is of type timestamp without time zone but expression is of type text; Hint: You will need to rewrite or cast the expression. HOT 1
- [BUG]:How to fetch data from exisisting Views in postgres using drizzle orm
- [BUG]: encoding issue with non-ASCII characters
- [BUG]: Adding new column and unique key on the new column generates invalid migration file
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 drizzle-orm.