Skip to content

Commit a71c063

Browse files
authoredJul 15, 2020
chore: write a DELETE query in multiple lines
1 parent e9b8d9d commit a71c063

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
3535
UPDATE categories
3636
SET name = :name, name_ru = :nameRu, slug = :slug, updated_at = NOW(), updated_by = :userId
3737
WHERE id = :categoryId
38-
delete: DELETE FROM categories WHERE id = :categoryId
38+
delete: >-
39+
DELETE
40+
FROM categories
41+
WHERE id = :categoryId
3942
```
4043

4144
1. Generate code

0 commit comments

Comments
 (0)
Please sign in to comment.