andrewoma/kwery

Singleton tables

Closed this issue · 2 comments

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?

No reason that I recall, except that you want to refer to column names is various contexts - so having a singleton useful here.

Thank you, looks reasonable.