-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
How do you close a Database Query in Ace Commands #33
Comments
|
Database.close is not a function using "adonis-lucid": "^2.0.5" and "mysql": "^2.11.1". |
Okay seems like you are using the old version of Dev release will be released as As it is a major, there will be bunch of breaking changes. But it will be worth upgrading coz it is going to be stable. |
Closing. Please reopen if you can any more questions |
If using i am using two models, the connection wont close and the process will not exit. please help |
const Database = use('Database')
const users = yield Database.connection('mysql').table('users').select('*');
I get my data but the database connection is still open so the command doesn't stop running.
Using Lucid i don't face any issue and can close with
Model.activeConnection.client.destroy().
The text was updated successfully, but these errors were encountered: