不要怂,就是干,撸起袖子干!

Commit d5cb8d1c by Alex

Text amends for readability

- Fixed . appearing in code-text
- Fixed code block not appearing correctly under list (used ``` rather than indenting)
1 parent 07e9c9e4
Showing with 3 additions and 2 deletions
......@@ -198,7 +198,7 @@ The library for PostgreSQL is`pg@~2.0.0`. You'll jus
### Executing raw SQL queries
As there are often use cases in which it is just easier to execute raw / already prepared SQL queries, you can utilize the function`sequelize.query`.
As there are often use cases in which it is just easier to execute raw / already prepared SQL queries, you can utilize the function `sequelize.query`.
Here is how it works:
......@@ -255,6 +255,7 @@ The syntax used depends on the fourth argument passed to the function:
If the object contains keys not found in the query or vice verca, an exception
will be thrown.
```
sequelize
.query(
'SELECT * FROM projects WHERE status = ?', null,
......@@ -272,7 +273,7 @@ will be thrown.
.success(function(projects) {
console.log(projects)
})
```
**One note:** If the attribute names of the table contain dots, the resulting objects will be nested:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!