Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 9e6d4a77
authored
Apr 25, 2011
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable logging has different option key
1 parent
9a48cbca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
doc/views/index/code/basic-mapping/advanced-instantiation.ejs
doc/views/index/code/basic-mapping/advanced-instantiation.ejs
View file @
9e6d4a7
...
@@ -8,13 +8,13 @@ var sequelize = new Sequelize('database', 'username'[, null])
...
@@ -8,13 +8,13 @@ var sequelize = new Sequelize('database', 'username'[, null])
// Want no logging? Use that:
// Want no logging? Use that:
var sequelize = new Sequelize('database', 'username', 'password', {
var sequelize = new Sequelize('database', 'username', 'password', {
disableLogging: tru
e
logging: fals
e
})
})
// Since v0.4.3 you can disable the pluralization of table names:
// Since v0.4.3 you can disable the pluralization of table names:
var sequelize = new Sequelize('database', 'username', 'password', {
var sequelize = new Sequelize('database', 'username', 'password', {
disableTableNameModification: true
disableTableNameModification: true
})
})
sequelize.define('person', { /* ... */})
sequelize.define('person', { /* ... */
})
// will result in a table called >person< if that option is specified
// will result in a table called >person< if that option is specified
// will result in a table called >people< if that option is not specified
// will result in a table called >people< if that option is not specified
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment