Add support for lazy connections #103
Labels
kind/improvement
An improvement to existing feature and code.
level/intermediate
priority/high
process/candidate
Candidate for the next release
Projects
Milestone
Problem
Currently, defining multiple event handlers using a framework that doesn't support a callback like
on_startup()
is annoying as you have to check if the client is connected or not before making a query.Suggested solution
Refactor the internal engine connection to be lazy, i.e. whenever a query is made, connect to the database before running the query.
The text was updated successfully, but these errors were encountered: