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
Sequelize is a promise-based Node.js/io.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, read replication and more.
8
+
Sequelize is a promise-based Node.js/io.js ORM for Postgres, MySQL, SQLite and Microsoft SQL Server. It features solid transaction support, relations, read replication and more.
Copy file name to clipboardExpand all lines: docs/api/model.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -671,7 +671,7 @@ To obtain Instances for the newly created values, you will need to query for the
671
671
|[options.hooks=true]| Boolean | Run before / after bulk create hooks? |
672
672
|[options.individualHooks=false]| Boolean | Run before / after create hooks for each individual Instance? BulkCreate hooks will still be run if options.hooks is true. |
673
673
|[options.ignoreDuplicates=false]| Boolean | Ignore duplicate values for primary keys? (not supported by postgres) |
674
-
|[options.updateOnDuplicate]| Array | Fields to update if row key already exists (on duplicate key update)? (only supported by mysql & mariadb). By default, all fields are updated. |
674
+
|[options.updateOnDuplicate]| Array | Fields to update if row key already exists (on duplicate key update)? (only supported by mysql). By default, all fields are updated. |
675
675
|[options.transaction]| Transaction | Transaction to run query under |
676
676
|[options.logging=false]| Function | A function that gets executed while running the query to log the sql. |
677
677
|[options.returning=false]| Boolean | Append RETURNING * to get back auto generated values (Postgres only) |
@@ -775,7 +775,7 @@ of affected rows, while the second element is the actual affected rows (only sup
775
775
|[options.sideEffects=true]| Boolean | Whether or not to update the side effects of any virtual setters. |
776
776
|[options.individualHooks=false]| Boolean | Run before / after update hooks?. If true, this will execute a SELECT followed by individual UPDATEs. A select is needed, because the row data needs to be passed to the hooks |
777
777
|[options.returning=false]| Boolean | Return the affected rows (only for postgres) |
778
-
|[options.limit]| Number | How many rows to update (only for mysql and mariadb) |
778
+
|[options.limit]| Number | How many rows to update (only for mysql) |
779
779
|[options.logging=false]| Function | A function that gets executed while running the query to log the sql. |
780
780
|[options.benchmark=false]| Boolean | Print query execution time in milliseconds when logging SQL. |
781
781
|[options.transaction]| Transaction | Transaction to run query under |
@@ -792,4 +792,4 @@ Run a describe query on the table. The result will be return to the listener as
792
792
793
793
***
794
794
795
-
_This document is automatically generated based on source code comments. Please do not edit it directly, as your changes will be ignored. Please write on <ahref="irc://irc.freenode.net/#sequelizejs">IRC</a>, open an issue or a create a pull request if you feel something can be improved. For help on how to write source code documentation see [JSDoc](http://usejsdoc.org) and [dox](https://github.com/tj/dox)_
795
+
_This document is automatically generated based on source code comments. Please do not edit it directly, as your changes will be ignored. Please write on <ahref="irc://irc.freenode.net/#sequelizejs">IRC</a>, open an issue or a create a pull request if you feel something can be improved. For help on how to write source code documentation see [JSDoc](http://usejsdoc.org) and [dox](https://github.com/tj/dox)_
Copy file name to clipboardExpand all lines: docs/api/sequelize.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ var sequelize = new Sequelize('mysql://localhost:3306/database', {})
45
45
|[username=null]| String | The username which is used to authenticate against the database. |
46
46
|[password=null]| String | The password which is used to authenticate against the database. |
47
47
|[options={}]| Object | An object with options. |
48
-
|[options.dialect='mysql']| String | The dialect of the database you are connecting to. One of mysql, postgres, sqlite, mariadb and mssql. |
48
+
|[options.dialect='mysql']| String | The dialect of the database you are connecting to. One of mysql, postgres, sqlite and mssql. |
49
49
|[options.dialectModulePath=null]| String | If specified, load the dialect library from this path. For example, if you want to use pg.js instead of pg when connecting to a pg database, you should specify 'pg.js' here |
50
50
|[options.dialectOptions]| Object | An object of additional options, which are passed directly to the connection library |
51
51
|[options.storage]| String | Only used by sqlite. Defaults to ':memory:' |
0 commit comments