On Wed, Aug 20, 2008 at 10:44 PM, Brian Aker <[EMAIL PROTECTED]> wrote: > Hi! > > On Aug 20, 2008, at 7:20 PM, Baron Schwartz wrote: > >> And is the engine asked about the structure of the table, too? > > Yes. > >> I hope so :-) I hope nothing outside the engine is telling the engine >> about itself. > > > I am 90% sure that what should be returned by the ha_discovery is a table > proto buf (which is then fed to a Table() constructor). 10% of me thinks the > engine should build a Table object itself and act as a factory for them.
I like this. The engine can be passed some objects to assist in building the Table object, too. So the dependency is not locked inside the engine completely. (That would lead to duplicate code methinks.) But maybe you envision the Table class having enough helpers to do this anyway. _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

