]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add missing docs
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 May 2023 20:44:02 +0000 (16:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 May 2023 20:44:02 +0000 (16:44 -0400)
ColumnExpressionArgument, as well as Oracle datatypes
mentioned in the changelog

Change-Id: I9496de9a1092af21f84492ff9d91a0cefb1a8a5b

doc/build/changelog/unreleased_20/9656.rst
doc/build/core/internals.rst
doc/build/core/sqlelement.rst
doc/build/dialects/oracle.rst
lib/sqlalchemy/sql/_typing.py
lib/sqlalchemy/sql/expression.py

index 16c170aa855a14642cb252e5ed02e5f8e3727efd..1b00da816ecc57a8099df086ad5e51999db14c26 100644 (file)
@@ -2,7 +2,8 @@
     :tags: typing, sql
     :tickets: 9656
 
-    Added type ``ColumnExpressionArgument`` as a public alias of an internal
-    type. This type is useful since it's what' accepted by the sqlalchemy in
-    many api calls, such as :meth:`_sql.Select.where`, :meth:`_sql.and` and
-    many other.
+    Added type :data:`_sql.ColumnExpressionArgument` as a public-facing type
+    that indicates column-oriented arguments which are passed to SQLAlchemy
+    constructs, such as :meth:`_sql.Select.where`, :func:`_sql.and_` and
+    others. This may be used to add typing to end-user functions which call
+    these methods.
index 26aa9831d2821d2dadac2df9eda2ca2b921cb649..5146ef4af43907fb9cf07d25946c00c5dc08435e 100644 (file)
@@ -70,5 +70,3 @@ Some key internal constructs are listed here.
 .. autoclass:: sqlalchemy.engine.AdaptedConnection
     :members:
 
-.. autoattribute:: sqlalchemy.sql.ColumnExpressionArgument
-    :members:
index 937840924250929ac46757052d544ab3b8bb8446..23dd2118b009ec9f59f0e875e8a6fa14fcec6fd7 100644 (file)
@@ -150,12 +150,23 @@ The classes here are generated using the constructors listed at
 .. autoclass:: ColumnCollection
    :members:
 
-
 .. autoclass:: ColumnElement
    :members:
    :inherited-members:
    :undoc-members:
 
+.. data:: ColumnExpressionArgument
+
+   General purpose "column expression" argument.
+
+   .. versionadded:: 2.0.13
+
+   This type is used for "column" kinds of expressions that typically represent
+   a single SQL column expression, including :class:`_sql.ColumnElement`, as
+   well as ORM-mapped attributes that will have a ``__clause_element__()``
+   method.
+
+
 .. autoclass:: ColumnOperators
    :members:
    :special-members:
index 02f512214162ccdfc978ffd94158af400ae46110..8187e714798d8b45ac2c12c964bbb16a71016696 100644 (file)
@@ -44,6 +44,12 @@ construction arguments, are as follows:
 .. autoclass:: BFILE
   :members: __init__
 
+.. autoclass:: BINARY_DOUBLE
+  :members: __init__
+
+.. autoclass:: BINARY_FLOAT
+  :members: __init__
+
 .. autoclass:: DATE
    :members: __init__
 
@@ -56,6 +62,9 @@ construction arguments, are as follows:
 .. autoclass:: NCLOB
   :members: __init__
 
+.. autoclass:: NVARCHAR2
+   :members: __init__
+
 .. autoclass:: NUMBER
    :members: __init__
 
@@ -65,6 +74,9 @@ construction arguments, are as follows:
 .. autoclass:: RAW
   :members: __init__
 
+.. autoclass:: ROWID
+  :members: __init__
+
 .. autoclass:: TIMESTAMP
   :members: __init__
 
index 9e83c3f429cbec9b7029388da5bd1aff786e0059..513ce78d4ff2edc132b2f91dff7dd34a47856339 100644 (file)
@@ -186,8 +186,11 @@ typically represent a single SQL column expression, not a set of columns the
 way a table or ORM entity does.
 
 This includes ColumnElement, or ORM-mapped attributes that will have a
-`__clause_element__()` method, it also has the ExpressionElementRole
+``__clause_element__()`` method, it also has the ExpressionElementRole
 overall which brings in the TextClause object also.
+
+.. versionadded:: 2.0.13
+
 """
 
 _ColumnExpressionOrLiteralArgument = Union[Any, _ColumnExpressionArgument[_T]]
index 4fa9cda00544344f68a5b79ad15cc9afc24fb78b..f1cb4c276a88e272e02cff1b58c33434d1d5b4de 100644 (file)
@@ -61,6 +61,7 @@ from ._selectable_constructors import tablesample as tablesample
 from ._selectable_constructors import union as union
 from ._selectable_constructors import union_all as union_all
 from ._selectable_constructors import values as values
+from ._typing import ColumnExpressionArgument as ColumnExpressionArgument
 from .base import _from_objects as _from_objects
 from .base import _select_iterables as _select_iterables
 from .base import ColumnCollection as ColumnCollection