Skip to content
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

docs: fix spellcheck in api sql. #16579

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/api/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ const users = await sql`

// Select with multiple conditions
const activeUsers = await sql`
SELECT *
FROM users
WHERE active = ${true}
SELECT *
FROM users
WHERE active = ${true}
AND age >= ${18}
`;
```

{% features title="Features" %}

{% icon size=20 name="Shield" /%} Tagged template literals to protect againt SQL injection
{% icon size=20 name="Shield" /%} Tagged template literals to protect against SQL injection

{% icon size=20 name="GitMerge" /%} Transactions

Expand Down Expand Up @@ -53,7 +53,7 @@ import { sql } from "bun";

// Basic insert with direct values
const [user] = await sql`
INSERT INTO users (name, email)
INSERT INTO users (name, email)
VALUES (${name}, ${email})
RETURNING *
`;
Expand Down Expand Up @@ -561,7 +561,7 @@ The plan is to add more database drivers in the future.

npm packages like postgres.js, pg, and node-postgres can be used in Bun too. They're great options.

Two reaons why:
Two reasons why:

1. We think it's simpler for developers to have a database driver built into Bun. The time you spend library shopping is time you could be building your app.
2. We leverage some JavaScriptCore engine internals to make it faster to create objects that would be difficult to implement in a library
Expand Down
Loading