docs: add Drizzle ORM to third-party tools - #537
Open
PedroHenrique0713 wants to merge 1 commit into
Open
Conversation
Closes questdb#70. Picks up where questdb#71 stopped: that PR had the maintainer's go-ahead and only needed the example aligned to the trades table, but it went stale and was closed six months later without landing. Everything documented here was run against QuestDB 10.0.1 with drizzle-orm 0.45.2 and postgres 3.4.9, so the page states what the combination actually does rather than what it should do: - insert, select with where/orderBy/limit, and groupBy aggregation all work through the query builder - SAMPLE BY has no builder equivalent and goes through db.execute(sql``) - DELETE fails, since QuestDB has no row-level delete; the page points at dropping a partition instead - migrations are out, because the table needs a designated timestamp and partitioning that drizzle-kit does not express Uses the trades table throughout, matching the other client and integration pages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #70.
This picks up where #71 stopped. That PR had @nwoolmer's go-ahead and only needed the example aligned to the
tradestable; the author made the change, asked for another review in October 2024, and the PR went stale and was closed six months later without landing. Credit for the original idea and first draft goes to @Mrinank-Bhowmick. This is a fresh page rather than a revival of that branch, since the docs tree moved in the meantime.Everything here was run, not assumed
Verified against QuestDB 10.0.1 with
drizzle-orm0.45.2 andpostgres3.4.9, driving each case through the query builder:insertselectwithwhere/orderBy/limitgroupBywith aggregationSAMPLE BYviadb.execute(sql````)`updatedeleteSo the page documents what the combination actually does:
DELETEis called out as unsupported, with a pointer to dropping a partition instead. QuestDB has no row-level delete, anddb.delete(...)fails against it.drizzle-kitdoes not express. The page shows SQL DDL for the table and a matching Drizzle schema for querying it.SAMPLE BY,LATEST ONandASOF JOINhave no builder equivalent and go throughdb.execute().One thing I deliberately left out: I first tested with
prepare: falseon the postgres client, then re-ran without it. It works either way, so the page does not mention it rather than carrying a setting nobody needs.Uses the
tradestable throughout, which is the alignment @nwoolmer asked for on the original PR.Registered in
integrations/overview.mdunder Other Tools and insidebars.jsnext to SQLAlchemy. All seven internal links in the page resolve to existing files.