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

Commit 34313c77 by Jan Aagaard Meier

Merge pull request #3613 from rainboxx/master

[ci skip] Fix typo for sequelize within docs
2 parents 80950968 520d78e6
Showing with 6 additions and 6 deletions
...@@ -74,7 +74,7 @@ var sequelize = new Sequelize('mysql://localhost:3306/database', {}) ...@@ -74,7 +74,7 @@ var sequelize = new Sequelize('mysql://localhost:3306/database', {})
<a name="sequelize"></a> <a name="sequelize"></a>
## `new Sequelize(uri, [options={}])` ## `new Sequelize(uri, [options={}])`
[View code](https://github.com/sequelize/sequelize/blob/421f0f34356a3484b0f26e92e7fd133af6d3f6db/lib/sequelize.js#L98) [View code](https://github.com/sequelize/sequelize/blob/421f0f34356a3484b0f26e92e7fd133af6d3f6db/lib/sequelize.js#L98)
Instantiate sequlize with an URI Instantiate sequelize with an URI
**Params:** **Params:**
...@@ -564,11 +564,11 @@ By default, the function will return two arguments: an array of results, and a m ...@@ -564,11 +564,11 @@ By default, the function will return two arguments: an array of results, and a m
If you are running a type of query where you don't need the metadata, for example a `SELECT` query, you can pass in a query type to make sequelize format the results: If you are running a type of query where you don't need the metadata, for example a `SELECT` query, you can pass in a query type to make sequelize format the results:
```js ```js
sequlize.query('SELECT...').spread(function (results, metadata) { sequelize.query('SELECT...').spread(function (results, metadata) {
// Raw query - use spread // Raw query - use spread
}); });
sequlize.query('SELECT...', { type: sequelize.QueryTypes.SELECT }).then(function (results) { sequelize.query('SELECT...', { type: sequelize.QueryTypes.SELECT }).then(function (results) {
// SELECT query - use then // SELECT query - use then
}) })
``` ```
......
...@@ -88,7 +88,7 @@ module.exports = (function() { ...@@ -88,7 +88,7 @@ module.exports = (function() {
*/ */
/** /**
* Instantiate sequlize with an URI * Instantiate sequelize with an URI
* @name Sequelize * @name Sequelize
* @constructor * @constructor
* *
...@@ -640,11 +640,11 @@ module.exports = (function() { ...@@ -640,11 +640,11 @@ module.exports = (function() {
* If you are running a type of query where you don't need the metadata, for example a `SELECT` query, you can pass in a query type to make sequelize format the results: * If you are running a type of query where you don't need the metadata, for example a `SELECT` query, you can pass in a query type to make sequelize format the results:
* *
* ```js * ```js
* sequlize.query('SELECT...').spread(function (results, metadata) { * sequelize.query('SELECT...').spread(function (results, metadata) {
* // Raw query - use spread * // Raw query - use spread
* }); * });
* *
* sequlize.query('SELECT...', { type: sequelize.QueryTypes.SELECT }).then(function (results) { * sequelize.query('SELECT...', { type: sequelize.QueryTypes.SELECT }).then(function (results) {
* // SELECT query - use then * // SELECT query - use then
* }) * })
* ``` * ```
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!