[Biopython-dev] BioSQL drivers, was: Planning for Biopython 1.54
Peter
biopython at maubp.freeserve.co.uk
Wed Jul 21 07:55:10 EDT 2010
On Wed, Jul 21, 2010 at 12:31 PM, Kevin Jacobs
<jacobs at bioinformed.com> <bioinformed at gmail.com> wrote:
> On Thu, Mar 18, 2010 at 3:28 PM, Kyle <kellrott at gmail.com> wrote:
>
>> What should the parameter by called? Possibilities: 'backend', 'dbtype',
>> ...
>> ideas anyone?
>>
>>
> I suggest 'driver', since it is explicit and precise about what is being
> chosen. This allows users to select among several drivers, even
> alternatives for the same database backend. It also allows the creation of
> default aliases for meta-drivers like 'mysql' or 'postgresql', which could
> search among a list of compatible drivers and the most suitable one that is
> found to be installed.
We already have a parameter called driver (e.g. set to MySQLdb,
psycopg2, psycopg, pgdb, sqlite3) which then have to take on a double
meaning (the python driver versus the underlying back end database,
MySQL, PostreSQL, SQLite).
Peter
More information about the Biopython-dev
mailing list