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

Commit 9d090481 by Mick Hansen

Merge pull request #2902 from ClimbsRocks/patch-3

Changed periods to colons before code snippets
2 parents 46671a0e 5cb734fd
Showing with 4 additions and 4 deletions
...@@ -40,7 +40,7 @@ $ npm install --save mariasql # for mariasql ...@@ -40,7 +40,7 @@ $ npm install --save mariasql # for mariasql
## Connecting to the database ## Connecting to the database
Open the created directory in your favorite text editor and add a new file called `app.js` with the following content. Open the created directory in your favorite text editor and add a new file called `app.js` with the following content:
```js ```js
var Sequelize = require('sequelize') var Sequelize = require('sequelize')
...@@ -83,7 +83,7 @@ This will define a user model that has a username and password. Furthermore, Seq ...@@ -83,7 +83,7 @@ This will define a user model that has a username and password. Furthermore, Seq
### Synchronizing the schema ### Synchronizing the schema
As we want to store data in the database, we need to create a representation of the model. As we want to store data in the database, we need to create a representation of the model:
```js ```js
sequelize sequelize
...@@ -107,7 +107,7 @@ Please note, that `{ force: true }` will drop the `Users` table and re-create it ...@@ -107,7 +107,7 @@ Please note, that `{ force: true }` will drop the `Users` table and re-create it
### Configuration ### Configuration
You might not need the timestamps or you might not want the plural of the model's name as table name, right? Luckily there are configuration possibilities for that. You might not need the timestamps or you might not want the plural of the model's name as table name, right? Luckily there are configuration possibilities for that:
```js ```js
var User = sequelize.define('User', { var User = sequelize.define('User', {
...@@ -352,7 +352,7 @@ return sequelize.Promise.all([ ...@@ -352,7 +352,7 @@ return sequelize.Promise.all([
## A combined example ## A combined example
Now that you know the basics of Sequelize, you might want to see everything in a single program. Now that you know the basics of Sequelize, you might want to see everything in a single program:
```js ```js
var Sequelize = require('sequelize') var Sequelize = require('sequelize')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!