summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-08-14 13:25:09 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-08-14 13:25:09 -0400
commit6ca694610b6d3d791a6bde3daea6c80ef8373426 (patch)
tree154866f96334805689fe1a7dbfb326a6fa719361
parente2d05259caf2c7c033a0a9376c0d3b7a1b040183 (diff)
downloadsqlalchemy-6ca694610b6d3d791a6bde3daea6c80ef8373426.tar.gz
- updates
-rw-r--r--doc/build/changelog/migration_10.rst65
1 files changed, 64 insertions, 1 deletions
diff --git a/doc/build/changelog/migration_10.rst b/doc/build/changelog/migration_10.rst
index 06fccd1dd..22005e062 100644
--- a/doc/build/changelog/migration_10.rst
+++ b/doc/build/changelog/migration_10.rst
@@ -102,6 +102,25 @@ symbol, and no change to the object's state occurs.
Behavioral Changes - Core
=========================
+.. _change_3027:
+
+``autoload_with`` now implies ``autoload=True``
+-----------------------------------------------
+
+A :class:`.Table` can be set up for reflection by passing ``autoload_with``
+alone::
+
+ my_table = Table('my_table', metadata, autoload_with=some_engine)
+
+:ticket:`3027`
+
+``raise_on_warnings`` defaults to False for mysql-connector-python
+------------------------------------------------------------------
+
+The Mysql-connector-Python dialect now sets ``raise_on_warnings`` to
+``False``, matching the default of the DBAPI itself.
+
+:ticket:`2515`
New Features
============
@@ -131,11 +150,55 @@ wishes to support the new feature should now call upon the ``._limit_clause``
and ``._offset_clause`` attributes to receive the full SQL expression, rather
than the integer value.
-.. _feature_3076:
+.. _feature_get_enums:
+
+New get_enums() method with Postgresql Dialect
+----------------------------------------------
+
+The :func:`.inspect` method returns a :class:`.PGInspector` object in the
+case of Postgresql, which includes a new :meth:`.PGInspector.get_enums`
+method that returns information on all available ``ENUM`` types::
+
+ from sqlalchemy import inspect, create_engine
+
+ engine = create_engine("postgresql+psycopg2://host/dbname")
+ insp = inspect(engine)
+ print(insp.get_enums())
+
+.. seealso::
+
+ :meth:`.PGInspector.get_enums`
Behavioral Improvements
=======================
+.. _feature_2963:
+
+.info dictionary improvements
+-----------------------------
+
+The :attr:`.InspectionAttr.info` collection is now available on every kind
+of object that one would retrieve from the :attr:`.Mapper.all_orm_descriptors`
+collection::
+
+ class SomeObject(Base):
+ # ...
+
+ @hybrid_property(self):
+ def some_prop(self):
+ return self.value + 5
+
+
+ inspect(SomeObject).all_orm_descriptors.some_prop.info['foo'] = 'bar'
+
+It is also available as a constructor argument for all :class:`.SchemaItem`
+objects (e.g. :class:`.ForeignKey`, :class:`.UniqueConstraint` etc.) as well
+as remaining ORM constructs such as :func:`.orm.synonym`.
+
+:ticket:`2971`
+
+:ticket:`2963`
+
Dialect Changes
===============