[Sqlalchemy-tickets] [sqlalchemy] #2866: create kwarg registration system for dialect kwargs, build
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-11-18 15:06:29
|
#2866: create kwarg registration system for dialect kwargs, build into
_valdidate_dialect_kwargs
--------------------+------------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone: 0.9.xx
Component: schema | Severity: major - 1-3 hours
Keywords: | Progress State: in queue
--------------------+------------------------------------
so that operations like Index(..., postresql_where=...) as well as args
not known "postgresql_imfake" can raise an error. To handle entrypoint
dialects, the system would actually need to resolve an entrypoint upon
receipt of an unregistered dialect name as a kwarg.
for an error against "postresql_where", it would be like, "Can't locate
any dialect named 'postresql'" after it searched entrypoints.
for an error against "postgresql_imfake", the Postgresql dialect itself
would have registered all available kwargs such as "postgresql_where" and
such, and the error can say "no dialect option postgresql_imfake
registered for the postgresql dialect".
also Index needs _validate_dialect_kwargs added.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2866>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|