-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Implement createDatabase and dropDatabase on QueryInterface #10027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong commit message. It's include mysql test code. Not only postgres. 😛
--
force to edit the commit message
|
I'm stuck on db testing. How can I create another testing database with db user 'sequelize_test'? I think it's not suitable to create and drop db 'sequelize_test'. If db testing failed(droped database). It would caused trouble on following table testing. And need to re-up the db docker container. |
ee92768 to
55b0125
Compare
Codecov Report
@@ Coverage Diff @@
## master #10027 +/- ##
==========================================
- Coverage 96.36% 96.3% -0.06%
==========================================
Files 63 63
Lines 9399 9421 +22
==========================================
+ Hits 9057 9073 +16
- Misses 342 348 +6
Continue to review full report at Codecov.
|
sushantdhiman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just unit tests are enough, Please take care of my other suggestions and this can be merged
|
@ALiangLiang Please add support for MSSQL if possible, it should be similar to other dialects https://docs.microsoft.com/en-us/sql/t-sql/statements/create-database-transact-sql?view=sql-server-2017 |
|
@sushantdhiman I'm not familiar on MSSQL. So I can't validate the query string correctly. But I can add support and let you review the test code. Wait a moment. |
|
BTW. Should I add support on SQLite? |
No |
done |
|
Thanks @ALiangLiang |
Pull Request check-list
Please make sure to review and check all of these items:
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
Resolved #8821
Added two API on QueryInterface - createDatabase and dropDatabase. I just want to used for sequelize/cli#590. But these two API doesn't have testing code yet. It's hard to implement create and drop database in docker. If somebody has interesting on that. Please help me to add testing code on that.