Replies: 2 comments
-
I still need to look and verify what impact this could have on other platforms. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Agree @tyrsson an Interface would be ideal, and yes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While digging into a related requirement for a current project of mine I have found some inconsistencies within the lib overall, or at least I think I have.
We essentially have two concrete classes that deals with representing a table or its identifier and several that consume those two.
Most if not all classes that require a constructor argument for a table name (identifier) will accept an instance of this class.
IMO AbstractTable should accept TableIdentifier|string vs just string as its single argument.
As an example of what I'm looking at.
The Ddl CreateTable accepts either a string or a TableIdentifier instance. I would expect that if one is working with the Ddl classes many times they will have a TableObject instance so it would be very handy if CreateTable could simply be passed that instance vs having to call a method on the instance to getName().
I think, maybe, one way to handle this would be to introduce a TableInterface which TableIdentifier and TableObject could both implement. This would probably require a refactor of one or the other existing classes but wanted to propose the idea here and get your thoughts @settermjd @simon-mundy
Beta Was this translation helpful? Give feedback.
All reactions