Skip to content

Commit

Permalink
Merge pull request #353 from girardinsamuel/feat/orm-add-mssql-support
Browse files Browse the repository at this point in the history
Add MSSQL default configuration
  • Loading branch information
josephmancuso committed Oct 20, 2020
2 parents 7e83642 + 9d8ebf8 commit 7895a6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/database.py
Expand Up @@ -43,6 +43,15 @@
"prefix": "",
"grammar": "postgres",
},
'mssql': {
'driver': 'mssql',
'host': env('MSSQL_DATABASE_HOST'),
'user': env('MSSQL_DATABASE_USER'),
'password': env('MSSQL_DATABASE_PASSWORD'),
'database': env('MSSQL_DATABASE_DATABASE'),
'port': env('MSSQL_DATABASE_PORT'),
'prefix': ''
},
}

ConnectionResolver.set_connection_details(DATABASES)
Expand Down

0 comments on commit 7895a6a

Please sign in to comment.