create kwarg registration system for dialect kwargs, build into _valdidate_dialect_kwargs

Issue #2866 resolved
Mike Bayer repo owner created an issue

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.

Comments (4)

  1. Log in to comment