Skip to content

Commit 9f41d14

Browse files
committed
Adding explicit example in the note component.
1 parent e12396d commit 9f41d14

File tree

1 file changed

+8
-0
lines changed
  • src/content/docs/d1/tutorials/d1-and-prisma-orm

1 file changed

+8
-0
lines changed

src/content/docs/d1/tutorials/d1-and-prisma-orm/index.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,14 @@ npx wrangler d1 execute prisma-demo-db --command "INSERT INTO \"User\" (\"email
234234

235235
:::note
236236
If you receive an error to the effect of `Unknown arguments: (\email\,, \name\)...`, you may need to escape the double quotes with backticks (`) instead of backslashes (\\).
237+
238+
Your Wrangler command will then look like:
239+
240+
```sh
241+
# Escape with ` instead of \
242+
npx wrangler d1 execute prisma-demo-db --command "INSERT INTO `"User`" (`"email`", `"name`") VALUES
243+
('[email protected]', 'Jane Doe (Local)');" --<FLAG>
244+
```
237245
:::
238246
239247
### 5. Query your database from the Worker

0 commit comments

Comments
 (0)