]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add some `Sphinx` paragraph level versions informations markups,
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 8 Jun 2012 20:00:17 +0000 (16:00 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 8 Jun 2012 20:00:17 +0000 (16:00 -0400)
such as ``.. versionadded::``, ``.. versionchanged::`` and ``.. deprecated::``.

lib/sqlalchemy/databases/information_schema.py
lib/sqlalchemy/databases/oracle.py
lib/sqlalchemy/engine/__init__.py
lib/sqlalchemy/ext/compiler.py
lib/sqlalchemy/ext/sqlsoup.py
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/sql/expression.py

index a7d4101cdb1fd19e1ee6b23eed2f53a69fd3e133..8cad7cb24adc5e7887a091c3760df08481b48ac1 100644 (file)
@@ -1,7 +1,8 @@
 """
 information schema implementation.
 
-This module is deprecated and will not be present in this form in SQLAlchemy 0.6.
+.. deprecated::
+    This module is deprecated and will not be present in this form in SQLAlchemy 0.6.
 
 """
 from sqlalchemy import util
index 86c19aca428ab8648e82e3a606d90564f9913a23..a5ca663810bcf4eae386ed89ecc55d6e5ac71ee9 100644 (file)
@@ -92,13 +92,20 @@ of LOB objects, can be disabled using auto_convert_lobs=False.
 LIMIT/OFFSET Support
 --------------------
 
-Oracle has no support for the LIMIT or OFFSET keywords.  Whereas previous versions of SQLAlchemy
-used the "ROW NUMBER OVER..." construct to simulate LIMIT/OFFSET, SQLAlchemy 0.5 now uses 
-a wrapped subquery approach in conjunction with ROWNUM.  The exact methodology is taken from
-http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html .  Note that the 
-"FIRST ROWS()" optimization keyword mentioned is not used by default, as the user community felt
-this was stepping into the bounds of optimization that is better left on the DBA side, but this
-prefix can be added by enabling the optimize_limits=True flag on create_engine().
+Oracle has no support for the LIMIT or OFFSET keywords.
+
+.. versionchanged:: 0.5
+    Whereas previous versions of SQLAlchemy used the "ROW NUMBER OVER..."
+    construct to simulate LIMIT/OFFSET, SQLAlchemy 0.5 now uses 
+    a wrapped subquery approach in conjunction with ROWNUM.
+    The exact methodology is taken from
+    http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html .
+    Note that the 
+    "FIRST ROWS()" optimization keyword mentioned is not used by default,
+    as the user community felt this was stepping into the bounds
+    of optimization that is better left on the DBA side, but this
+    prefix can be added by enabling the optimize_limits=True flag
+    on create_engine().
 
 Two Phase Transaction Support
 -----------------------------
index bb2b1b5be4a21e4fc261a7d0bfece938dce4c6ea..c601ef6caa7e46ca2166a9fce823344517ee7955 100644 (file)
@@ -124,7 +124,9 @@ def create_engine(*args, **kwargs):
         parameters are instances of ``unicode``, otherwise raises an
         error. Only takes effect when ``convert_unicode==True``. This
         flag is also available on the ``String`` type and its
-        descendants. New in 0.4.2.
+        descendants.
+
+        .. versionadded:: 0.4.2
 
     :param connect_args: a dictionary of options which will be
         passed directly to the DBAPI's ``connect()`` method as
index 9fb7fd712025bfe664b21810919fc75c5df98cd2..5e9a17fcbc5a61cc9e2374af98c1c5b84838748a 100644 (file)
@@ -60,7 +60,7 @@ Compiling sub-elements of a custom expression construct
 The ``compiler`` argument is the :class:`~sqlalchemy.engine.base.Compiled` object
 in use.  This object can be inspected for any information about the in-progress 
 compilation, including ``compiler.dialect``, ``compiler.statement`` etc.
-The :class:`~sqlalchemy.sql.compiler.SQLCompiler` and :class:`~sqlalchemy.sql.compiler.DDLCompiler` (DDLCompiler is 0.6. only)
+The :class:`~sqlalchemy.sql.compiler.SQLCompiler` and :class:`~sqlalchemy.sql.compiler.DDLCompiler`
 both include a ``process()`` method which can be used for compilation of embedded attributes::
 
     class InsertFromSelect(ClauseElement):
@@ -82,6 +82,9 @@ Produces::
 
     "INSERT INTO mytable (SELECT mytable.x, mytable.y, mytable.z FROM mytable WHERE mytable.x > :x_1)"
 
+.. versionadded:: 0.6
+    :class:`~sqlalchemy.sql.compiler.DDLCompiler`\ .
+
 Changing the default compilation of existing constructs
 =======================================================
 
index b3f2de743ef5c94e91b2162a1920c9eca0f97e21..1ed3ce459ae11927194da1cbab527ce85284a0e2 100644 (file)
@@ -1,4 +1,11 @@
 """
+.. versionchanged:: 0.8
+    SQLSoup is now its own project.  Documentation
+    and project status are available at:
+    http://pypi.python.org/pypi/sqlsoup and
+    http://readthedocs.org/docs/sqlsoup\ .
+    SQLSoup will no longer be included with SQLAlchemy.
+
 Introduction
 ============
 
index 357859b546676caa41cc6bd39a0d32853cd13903..96ae9364bf9170e9864c7d3ed2d1c3a818f18e00 100644 (file)
@@ -398,8 +398,10 @@ def relation(argument, secondary=None, **kwargs):
       This is used for many-to-one or many-to-many relationships that
       should be treated either as one-to-one or one-to-many.  Its
       usage is optional unless delete-orphan cascade is also 
-      set on this relation(), in which case its required (new in 0.5.2).
-      
+      set on this relation(), in which case its required.
+
+      .. versionadded:: 0.5.2
+
     :param uselist=(True|False):
       a boolean that indicates if this property should be loaded as a
       list or a scalar. In most cases, this value is determined
index a145c865dcb4b3ae8aa493527b622266e72fd8d2..366ff8353bbe8c6a0d4815ee659538bce5650841 100644 (file)
@@ -154,10 +154,11 @@ class MapperExtension(object):
         instance population will not proceed, giving this extension an
         opportunity to populate the instance itself, if desired.
 
-        As of 0.5, most usages of this hook are obsolete.  For a
-        generic "object has been newly created from a row" hook, use
-        ``reconstruct_instance()``, or the ``@orm.reconstructor``
-        decorator.
+        .. deprecated:: 0.5
+            As of 0.5, most usages of this hook are obsolete.  For a
+            generic "object has been newly created from a row" hook, use
+            ``reconstruct_instance()``, or the ``@orm.reconstructor``
+            decorator.
 
         """
         return EXT_CONTINUE
index be0821e3b848333b9d186f59339719fc4a48e44c..7403ad2fc199b2dca84cdb2656a39880c16fad99 100644 (file)
@@ -211,8 +211,10 @@ class SessionTransaction(object):
     instances behind the scenes, with one ``Transaction`` per ``Engine`` in
     use.
 
-    Direct usage of ``SessionTransaction`` is not necessary as of SQLAlchemy
-    0.4; use the ``begin()`` and ``commit()`` methods on ``Session`` itself.
+    .. versionchanged:: 0.4
+        Direct usage of ``SessionTransaction`` is not
+        necessary; use the ``begin()`` and ``commit()``
+        methods on ``Session`` itself.
 
     The ``SessionTransaction`` object is **not** thread-safe.
 
index 5a47c4e1eb43450322b410a929ca05ffab031b69..d5428d9cc1e1bef1126d3a53925049619e208ad6 100644 (file)
@@ -2565,8 +2565,10 @@ class Join(FromClause):
           select, for columns that are calculated to be "equivalent"
           based on the join criterion of this :class:`Join`. This will
           recursively apply to any joins directly nested by this one
-          as well.  This flag is specific to a particular use case
-          by the ORM and will be deprecated in 0.6.
+          as well.
+
+          .. deprecated:: 0.6
+              This flag is specific to a particular use case by the ORM.
 
         :param \**kwargs: all other kwargs are sent to the 
           underlying :func:`select()` function.