On Jun 30, 2004, at 6:03 PM, Paul McNett wrote:
> All I want to see is: > > dbPostgresSQL-pgdb.py > dbPostgresSQL-x.py > > that implement the interfaces to the different db adapters for > postgres
Except for the "import xxx" line, they should all be identical. Think about it: the backend is what varies. All adapter code for PostgreSQL should form the exact same strings quoted the exact same way, should escape the exact same characters in the exact same way, should call the exact same code to begin/commit/rollback transactions, etc. The only thing that should change is the name of the library to import.
> Why force them to rename a file (and have to remember to do that > again and again as they upgrade Dabo) instead of giving them an > explicit BackEndName to use? Does it really complicate things > to use the name of the dbapi in the BackEndName?
Yes, it does complicate things, because you're now programming to the exception. 99.9% of all Dabo users will be able to use the standard libs. Those few who want to do something different can take care of the tiny effort involved in renaming the file, or simply changing the single import line of the existing file. And once we get out of this early alpha stuff, this stuff isn't going to be changing very often, if at all, so it's not like this will be a weekly chore.
___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://dabodev.com/
©2004 Ed Leafe |