[DB-SIG] Another paramstyle issue

Magnus Lyckå magnus at thinkware.se
Tue May 13 15:18:56 EDT 2003


Since the issue of paramstyles is up:

Today, X.paramstyle returns a string, but drivers might
support several paramstyles.

Should we have a module attribute that returned a list
of paramestyles, or a query function? Something like
this?

 >>> import myDBmodule as d
 >>> d.paramstyles
['qmark', 'named']
 >>> d.supports_paramstyle('qmark')
1
 >>> d.supports_paramstyle('format')
0


--
Magnus Lycka (It's really Lyckå), magnus at thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The shortest path from thought to working program 




More information about the DB-SIG mailing list