-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added new third-party tool - Drizzle ORM #71
base: main
Are you sure you want to change the base?
Conversation
@goodroot any updates? |
Hey @Mrinank-Bhowmick, I can take a look at this today :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
It would be great if you could align the example with what we use in other parts of the docs, for example, the trades table. See node ILP client docs here: https://github.com/questdb/nodejs-questdb-client
The trades schema can be obtained from demo.questdb.io or from the example.
third-party-tools/drizzle-orm.md
Outdated
- Node.js | ||
- drizzle-orm | ||
- pg | ||
- A QuestDB instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- A QuestDB instance | |
- A QuestDB instance |
third-party-tools/drizzle-orm.md
Outdated
CREATE TABLE IF NOT EXISTS some_table ( | ||
x INT NOT NULL, | ||
y INT NOT NULL | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CREATE TABLE IF NOT EXISTS some_table ( | |
x INT NOT NULL, | |
y INT NOT NULL | |
); | |
CREATE TABLE IF NOT EXISTS some_table ( | |
x INT, | |
y INT | |
); |
@nwoolmer Thanks for the reply. |
Yes, it's minor but we try to keep examples similar i.e based on trades table. It helps to compare across languages and libraries :) |
@nwoolmer can you review my recent changes now 🚀 |
third-party-tools/drizzle-orm.md
Outdated
CREATE TABLE IF NOT EXISTS trades ( | ||
symbol TEXT, | ||
side TEXT, | ||
price DOUBLE PRECISION, | ||
amount DOUBLE PRECISION, | ||
timestamp TIMESTAMP | ||
); | ||
`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CREATE TABLE IF NOT EXISTS trades ( | |
symbol TEXT, | |
side TEXT, | |
price DOUBLE PRECISION, | |
amount DOUBLE PRECISION, | |
timestamp TIMESTAMP | |
); | |
`); | |
CREATE TABLE IF NOT EXISTS trades ( | |
symbol VARCHAR, | |
side VARCHAR, | |
price DOUBLE, | |
amount DOUBLE, | |
timestamp TIMESTAMP | |
); | |
`); |
Drizzle ORM is a modern TypeScript ORM designed for SQL databases. It provides a type-safe API for building queries and managing database interactions, making it an excellent choice for developers working with TypeScript and JavaScript.
This PR adds documentation for drizzle ORM, which can interface with QuestDB. This tool was raised in issue #70 and #59 .
References taken from SQLAlchemy under Tooling and Interfaces