I use a centralized pokemaster.database to manage all the query functions. But I think all functions in pokemaster.database should not be used by the end users directly. Hence, in the most recent commit 586d8ca357bf8397689aca18b32fb3da64a031ed, I've made it a private module, but I'm not entirely sure about this change.
Making pokemaster.database a private module makes perfect sense. The only thing the end users should use is really just pokemaster.Pokemon. The end users should not worry about all the SQLAlchemy tables under the hood. Only the vanilla Python types should be used as the arguments for the public APIs.
If there is no downside of having the module to be private, I'll include this change in release v0.1.
I use a centralized
pokemaster.database
to manage all the query functions. But I think all functions inpokemaster.database
should not be used by the end users directly. Hence, in the most recent commit 586d8ca357bf8397689aca18b32fb3da64a031ed, I've made it a private module, but I'm not entirely sure about this change.Making
pokemaster.database
a private module makes perfect sense. The only thing the end users should use is really justpokemaster.Pokemon
. The end users should not worry about all the SQLAlchemy tables under the hood. Only the vanilla Python types should be used as the arguments for the public APIs.If there is no downside of having the module to be private, I'll include this change in release v0.1.