[DB-SIG] .description constants, was: What's the status of DB modules and datetime.py support?

Jon Franz jfranz at neurokode.com
Mon Jan 12 16:31:44 EST 2004

>> > PS: another small suggestion.  I think it would be useful for the API
>> > define required constants for the modules to expose, namely for the
>> > different fields in description and their indexes.  It seems trivial,
> > is,
>> > but I imagine it would be useful for many people to avoid opening the
>> > PEP every time they needed the index for a field in .description.
>> still thinking about the mappings suggestion. but this is, imho, a nice
>> addition. i _always_ forget the right index into the description
>> sequence and having the indices as constants in the module would be a
>> nice addition.
>I have an adapter that uses my db_row product to represent .descriptions in
>a way where fields can be accessed by name.

PDO does this as well - but the idea that addin modules and wrappers do this
not the point - the sugestion is to add the constants to the original
modules themselves
and to the definition of the DBAPI itself.

~Jon Franz
NeuroKode Labs, LLC

PS: yes, I am a jerk at times.

More information about the DB-SIG mailing list