Singleton tables
Closed this issue · 2 comments
Miha-x64 commented
Do tables really need to be singletons and why?
What if, for example, Table has some dependency, and passes it to entity constructor in Table#create
?
andrewoma commented
No reason that I recall, except that you want to refer to column names is various contexts - so having a singleton useful here.
Miha-x64 commented
Thank you, looks reasonable.