Skip to content
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
9 changes: 9 additions & 0 deletions src/content/docs/d1/tutorials/d1-and-prisma-orm/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ npx wrangler d1 execute prisma-demo-db --command "INSERT INTO \"User\" (\"email
('[email protected]', 'Jane Doe (Remote)');" --remote
```

:::note
If you receive an error to the effect of `Unknown arguments: (\email\,, \name\)...`, you may need to escape the double quotes with `\``.

```sh
# Escape with ` instead of \
npx wrangler d1 execute prisma-demo-db --command "INSERT INTO `"User`" (`"email`", `"name`") VALUES
('[email protected]', 'Jane Doe (Local)');" --local
```
:::
### 5. Query your database from the Worker

To query your database from the Worker using Prisma ORM, you need to:
Expand Down
Loading