Print query execution time in milliseconds when logging SQL.
Defaults to false
Default options for model definitions. See sequelize.define for options
The dialect of the database you are connecting to. One of mysql, postgres, sqlite, mariadb and mssql.
Defaults to 'mysql'
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
An object of additional options, which are passed directly to the connection library
The host of the relational database.
Defaults to 'localhost'
Set the default transaction isolation level. See Sequelize.Transaction.ISOLATION_LEVELS
for possible
options.
Defaults to 'REPEATABLE_READ'
A function that gets executed everytime Sequelize would log something.
Defaults to console.log
A flag that defines if native library shall be used or not. Currently only has an effect for postgres
Defaults to false
A flag that defines if null values should be passed to SQL queries or not.
Defaults to false
Connection pool options
The port of the relational database.
The protocol of the relational database.
Defaults to 'tcp'
Default options for sequelize.query
Set to false
to make table names and attributes case-insensitive on Postgres and skip double quoting of
them.
Defaults to true
Use read / write replication. To enable replication, pass an object, with two properties, read and write.
Write should be an object (a single server for handling writes), and read an array of object (several
servers to handle reads). Each read/write server can have the following properties: host
, port
,
username
, password
, database
Defaults to false
Default options for sequelize.set
Only used by sqlite.
Defaults to ':memory:'
Default options for sequelize.sync
The timezone used when converting a date from the database into a JavaScript date. The timezone is also used to SET TIMEZONE when connecting to the server, to ensure that the result of NOW, CURRENT_TIMESTAMP and other time related functions have in the right timezone. For best cross platform performance use the format +/-HH:MM. Will also accept string versions of timezones used by moment.js (e.g. 'America/Los_Angeles'); this is useful to capture daylight savings time changes.
Defaults to '+00:00'
Set the default transaction type. See Sequelize.Transaction.TYPES
for possible
options.
Defaults to 'DEFERRED'
Generated using TypeDoc
Options for the constructor of Sequelize main class