diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-01-11 10:12:12 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-01-13 10:57:41 -0500 |
| commit | fa6dd376bb24845724287d980a98ea50eb1cfab1 (patch) | |
| tree | 91e536c76f4b76b8997b02f5cd5a41de29dc90ef /lib/sqlalchemy/sql/schema.py | |
| parent | c703b9ce89483b6f44b97d1fbf56f8df8b14305a (diff) | |
| download | sqlalchemy-fa6dd376bb24845724287d980a98ea50eb1cfab1.tar.gz | |
Support python3.6
Corrects some warnings and adds tox config. Adds DeprecationWarning
to the error category. Large sweep for string literals w/ backslashes
as this is common in docstrings
Co-authored-by: Andrii Soldatenko
Fixes: #3886
Change-Id: Ia7c838dfbbe70b262622ed0803d581edc736e085
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/337
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
| -rw-r--r-- | lib/sqlalchemy/sql/schema.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index edf939a24..793750f1c 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -116,7 +116,7 @@ class SchemaItem(SchemaEventTarget, visitors.Visitable): class Table(DialectKWArgs, SchemaItem, TableClause): - """Represent a table in a database. + r"""Represent a table in a database. e.g.:: @@ -893,7 +893,7 @@ class Column(SchemaItem, ColumnClause): __visit_name__ = 'column' def __init__(self, *args, **kwargs): - """ + r""" Construct a new ``Column`` object. :param name: The name of this column as represented in the database. @@ -1512,7 +1512,7 @@ class ForeignKey(DialectKWArgs, SchemaItem): initially=None, link_to_name=False, match=None, info=None, **dialect_kw): - """ + r""" Construct a column-level FOREIGN KEY. The :class:`.ForeignKey` object when constructed generates a @@ -2417,7 +2417,7 @@ class Constraint(DialectKWArgs, SchemaItem): def __init__(self, name=None, deferrable=None, initially=None, _create_rule=None, info=None, _type_bound=False, **dialect_kw): - """Create a SQL constraint. + r"""Create a SQL constraint. :param name: Optional, the in-database name of this ``Constraint``. @@ -2604,7 +2604,7 @@ class ColumnCollectionConstraint(ColumnCollectionMixin, Constraint): """A constraint that proxies a ColumnCollection.""" def __init__(self, *columns, **kw): - """ + r""" :param \*columns: A sequence of column names or Column objects. @@ -2671,7 +2671,7 @@ class CheckConstraint(ColumnCollectionConstraint): def __init__(self, sqltext, name=None, deferrable=None, initially=None, table=None, info=None, _create_rule=None, _autoattach=True, _type_bound=False): - """Construct a CHECK constraint. + r"""Construct a CHECK constraint. :param sqltext: A string containing the constraint definition, which will be used @@ -2759,7 +2759,7 @@ class ForeignKeyConstraint(ColumnCollectionConstraint): ondelete=None, deferrable=None, initially=None, use_alter=False, link_to_name=False, match=None, table=None, info=None, **dialect_kw): - """Construct a composite-capable FOREIGN KEY. + r"""Construct a composite-capable FOREIGN KEY. :param columns: A sequence of local column names. The named columns must be defined and present in the parent Table. The names should @@ -3278,7 +3278,7 @@ class Index(DialectKWArgs, ColumnCollectionMixin, SchemaItem): __visit_name__ = 'index' def __init__(self, name, *expressions, **kw): - """Construct an index object. + r"""Construct an index object. :param name: The name of the index @@ -3704,7 +3704,7 @@ class MetaData(SchemaItem): extend_existing=False, autoload_replace=True, **dialect_kwargs): - """Load all available table definitions from the database. + r"""Load all available table definitions from the database. Automatically creates ``Table`` entries in this ``MetaData`` for any table available in the database but not yet present in the |
