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

Commit f07da3df by Andreas Tschirpke Committed by Sushant

docs(dialects): explain options handling in tedious (#11390)

1 parent 555dbe1f
Showing with 9 additions and 2 deletions
...@@ -80,10 +80,17 @@ const sequelize = new Sequelize('database', 'username', 'password', { ...@@ -80,10 +80,17 @@ const sequelize = new Sequelize('database', 'username', 'password', {
## MSSQL ## MSSQL
The library for MSSQL is`tedious@^6.0.0` You'll just need to define the dialect: The library for MSSQL is`tedious@^6.0.0` You'll just need to define the dialect.
Please note: `tedious@^6.0.0` requires you to nest MSSQL specific options inside an additional `options`-object inside the `dialectOptions`-object.
```js ```js
const sequelize = new Sequelize('database', 'username', 'password', { const sequelize = new Sequelize('database', 'username', 'password', {
dialect: 'mssql' dialect: 'mssql',
dialectOptions: {
options: {
useUTC: false,
dateFirst: 1,
}
}
}) })
``` ```
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!