-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
SQL documentation #16557
SQL documentation #16557
Conversation
Updated 5:07 AM PT - Jan 21st, 2025
❌ @Jarred-Sumner, your commit 20a0bc0 has 1 failures in
🧪 try this PR locally: bunx bun-pr 16557 |
c15d5de
to
cec5f58
Compare
would also be nice if there was a |
|
||
## Numbers and BigInt | ||
|
||
Bun's SQL client includes special handling for large numbers that exceed the range of a 53-bit integer. Here’s how it works: |
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.
The range is signed 32-bit like in postgres not the JS safe integer.
Bun's SQL client includes special handling for large numbers that exceed the range of a 53-bit integer. Here’s how it works: | |
Bun's SQL client includes special handling for large numbers that exceed the range of a 32-bit integer. Here’s how it works: |
https://github.com/oven-sh/bun/blob/main/test/js/sql/sql.test.ts#L353-L355
docs/api/sql.md
Outdated
|
||
| | | | ||
|-|-| | ||
|✅|Tagged template literals to protect againt SQL injection| |
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.
|✅|Tagged template literals to protect againt SQL injection| | |
|✅|Tagged template literals to protect against SQL injection| |
What does this PR do?
How did you verify your code works?