class Project should provide getter for db connection instead of direct access
nanokatze opened this issue · 4 comments
nanokatze commented
class Project should provide getter for db connection instead of direct access
nyxxxie commented
Do you mean provide a method called get_db() or something that returns sqlite object? If that, sure.
nanokatze commented
ya. call it Project.db() and store db connection in Project._db
nyxxxie commented
Yeah sounds good, I'll add that method into the project class.