summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/schema.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2019-01-12 23:22:47 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2019-01-12 23:22:47 +0000
commit8138e70d63216381b9b3cb7a64750a3add154ec6 (patch)
treeee798a4a4851af4431d738bce0c1b99b6b8267c7 /lib/sqlalchemy/sql/schema.py
parent55f930ef3d4e60bed02a2dad16e331fe42cfd12b (diff)
parenta6094d6682c956ce8a77fbec2a2700f901f3e75e (diff)
downloadsqlalchemy-8138e70d63216381b9b3cb7a64750a3add154ec6.tar.gz
Merge "use ..deprecated directive w/ version in all cases"
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
-rw-r--r--lib/sqlalchemy/sql/schema.py29
1 files changed, 22 insertions, 7 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index 6e6bb1d61..918f2b949 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -113,7 +113,12 @@ class SchemaItem(SchemaEventTarget, visitors.Visitable):
return util.generic_repr(self, omit_kwarg=["info"])
@property
- @util.deprecated("0.9", "Use ``<obj>.name.quote``")
+ @util.deprecated(
+ "0.9",
+ "The :attr:`.SchemaItem.quote` attribute is deprecated and will be "
+ "removed in a future release. Use the :attr:`.quoted_name.quote` "
+ "attribute on the ``name`` field of the target schema item to retrieve"
+ "quoted status.")
def quote(self):
"""Return the value of the ``quote`` flag passed
to this schema object, for those schema items which
@@ -471,7 +476,12 @@ class Table(DialectKWArgs, SchemaItem, TableClause):
metadata._remove_table(name, schema)
@property
- @util.deprecated("0.9", "Use ``table.schema.quote``")
+ @util.deprecated(
+ "0.9",
+ "The :meth:`.SchemaItem.quote` method is deprecated and will be "
+ "removed in a future release. Use the :attr:`.quoted_name.quote` "
+ "attribute on the ``schema`` field of the target schema item to "
+ "retrieve quoted status.")
def quote_schema(self):
"""Return the value of the ``quote_schema`` flag passed
to this :class:`.Table`.
@@ -2587,14 +2597,16 @@ class PassiveDefault(DefaultClause):
"""A DDL-specified DEFAULT column value.
.. deprecated:: 0.6
- :class:`.PassiveDefault` is deprecated.
- Use :class:`.DefaultClause`.
+
+ The :class:`.PassiveDefault` class is deprecated and will be removed
+ in a future release. Please use :class:`.DefaultClause`.
+
"""
@util.deprecated(
"0.6",
- ":class:`.PassiveDefault` is deprecated. "
- "Use :class:`.DefaultClause`.",
+ ":class:`.PassiveDefault` is deprecated and will be removed in a "
+ "future release. Use :class:`.DefaultClause`.",
False,
)
def __init__(self, *arg, **kw):
@@ -3736,7 +3748,10 @@ class MetaData(SchemaItem):
Defaults to False. ``bind`` is required when this option is set.
.. deprecated:: 0.8
- Please use the :meth:`.MetaData.reflect` method.
+
+ The :paramref:`.MetaData.reflect` flag is deprecated and will
+ be removed in a future release. Please use the
+ :meth:`.MetaData.reflect` method.
:param schema:
The default schema to use for the :class:`.Table`,