You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-6.x.x/getting-started.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ sidebar_position: 2
3
3
title: Getting Started
4
4
---
5
5
6
-
In this tutorial you will learn to make a simple setup of Sequelize.
6
+
In this tutorial, you will learn to make a simple setup of Sequelize.
7
7
8
8
## Installing
9
9
@@ -89,7 +89,7 @@ const sequelize = new Sequelize('sqlite::memory:');
89
89
// Code here! It works!
90
90
```
91
91
92
-
To experiment with the other dialects, which are harder to setup locally, you can use the [Sequelize SSCCE](https://github.com/papb/sequelize-sscce) GitHub repository, which allows you to run code on all supported dialects directly from GitHub, for free, without any setup!
92
+
To experiment with the other dialects, which are harder to set up locally, you can use the [Sequelize SSCCE](https://github.com/papb/sequelize-sscce) GitHub repository, which allows you to run code on all supported dialects directly from GitHub, for free, without any setup!
93
93
94
94
## New databases versus existing databases
95
95
@@ -99,7 +99,7 @@ Also, if you want to use Sequelize to connect to a database that is already fill
99
99
100
100
## Logging
101
101
102
-
By default, Sequelize will log to console every SQL query it performs. The `options.logging` option can be used to customize this behavior, by defining the function that gets executed every time Sequelize would log something. The default value is `console.log` and when using that only the first log parameter of log function call is displayed. For example, for query logging the first parameter is the raw query and the second (hidden by default) is the Sequelize object.
102
+
By default, Sequelize will log into the console for every SQL query it performs. The `options.logging` option can be used to customize this behavior, by defining the function that gets executed every time Sequelize logs something. The default value is `console.log` and when using that only the first log parameter of a log function call is displayed. For example, for query logging the first parameter is the raw query and the second (hidden by default) is the Sequelize object.
103
103
104
104
Common useful values for `options.logging`:
105
105
@@ -116,6 +116,6 @@ const sequelize = new Sequelize('sqlite::memory:', {
116
116
117
117
## Promises and async/await
118
118
119
-
Most of the methods provided by Sequelize are asynchronous and therefore return Promises. They are all [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise), so you can use the Promise API (for example, using `then`, `catch`, `finally`) out of the box.
119
+
Most of the methods provided by Sequelize are asynchronous and therefore return Promises. They are all [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise), so you can use the Promise API (for example, using `then`, `catch`, `finally`) out of the box.
120
120
121
121
Of course, using `async` and `await` works fine as well.
0 commit comments