diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-25 19:52:17 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-25 19:52:17 -0500 |
| commit | 33f07202ce2d9d34f346e9629dc602d920091cf1 (patch) | |
| tree | f41459bbfad1e2068c640405e682adb8236d3896 /doc | |
| parent | e60529da797491e9e88e9fcc581334ad3a09bcc2 (diff) | |
| download | sqlalchemy-33f07202ce2d9d34f346e9629dc602d920091cf1.tar.gz | |
- The new dialect-level keyword argument system for schema-level
constructs has been enhanced in order to assist with existing
schemes that rely upon addition of ad-hoc keyword arguments to
constructs.
- To suit the use case of allowing custom arguments at construction time,
the :meth:`.DialectKWArgs.argument_for` method now allows this registration.
fixes #2962
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/builder/autodoc_mods.py | 2 | ||||
| -rw-r--r-- | doc/build/changelog/changelog_09.rst | 27 | ||||
| -rw-r--r-- | doc/build/core/sqlelement.rst | 3 |
3 files changed, 31 insertions, 1 deletions
diff --git a/doc/build/builder/autodoc_mods.py b/doc/build/builder/autodoc_mods.py index 93e2596be..8e13d76af 100644 --- a/doc/build/builder/autodoc_mods.py +++ b/doc/build/builder/autodoc_mods.py @@ -22,7 +22,7 @@ _convert_modname = { } _convert_modname_w_class = { - ("sqlalchemy.engine.interfaces", "Connectable"): "sqlalchemy.engine" + ("sqlalchemy.engine.interfaces", "Connectable"): "sqlalchemy.engine", } def _adjust_rendered_mod_name(modname, objname): diff --git a/doc/build/changelog/changelog_09.rst b/doc/build/changelog/changelog_09.rst index e6c954c75..c29db6f92 100644 --- a/doc/build/changelog/changelog_09.rst +++ b/doc/build/changelog/changelog_09.rst @@ -15,6 +15,33 @@ :version: 0.9.4 .. change:: + :tags: feature, sql + :tickets: 2962, 2866 + + The new dialect-level keyword argument system for schema-level + constructs has been enhanced in order to assist with existing + schemes that rely upon addition of ad-hoc keyword arguments to + constructs. + + E.g., a construct such as :class:`.Index` will again accept + ad-hoc keyword arguments within the :attr:`.Index.kwargs` collection, + after construction:: + + idx = Index('a', 'b') + idx.kwargs['mysql_someargument'] = True + + To suit the use case of allowing custom arguments at construction time, + the :meth:`.DialectKWArgs.argument_for` method now allows this registration:: + + Index.argument_for('mysql', 'someargument', False) + + idx = Index('a', 'b', mysql_someargument=True) + + .. seealso:: + + :meth:`.DialectKWArgs.argument_for` + + .. change:: :tags: bug, orm, engine :tickets: 2973 diff --git a/doc/build/core/sqlelement.rst b/doc/build/core/sqlelement.rst index 47855a6a3..61600e927 100644 --- a/doc/build/core/sqlelement.rst +++ b/doc/build/core/sqlelement.rst @@ -100,6 +100,9 @@ used to construct any kind of typed SQL expression. :special-members: :inherited-members: +.. autoclass:: sqlalchemy.sql.base.DialectKWArgs + :members: + .. autoclass:: Extract :members: |
