diff options
author | Brian Jarrett <celttechie@gmail.com> | 2014-07-10 16:28:49 -0600 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-13 20:10:55 -0400 |
commit | 28dd15081db4b7e978fa7a187c3aef1c0e4ad4e3 (patch) | |
tree | af5aeebb0cece4afc8e12e3329d3f75715bf32a2 /lib/sqlalchemy/engine/interfaces.py | |
parent | 0190ede10767ed455255067cac2d309f070cf70c (diff) | |
download | sqlalchemy-28dd15081db4b7e978fa7a187c3aef1c0e4ad4e3.tar.gz |
PEP8 style fixes
Diffstat (limited to 'lib/sqlalchemy/engine/interfaces.py')
-rw-r--r-- | lib/sqlalchemy/engine/interfaces.py | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lib/sqlalchemy/engine/interfaces.py b/lib/sqlalchemy/engine/interfaces.py index e7f43d821..71df29cac 100644 --- a/lib/sqlalchemy/engine/interfaces.py +++ b/lib/sqlalchemy/engine/interfaces.py @@ -12,6 +12,7 @@ from .. import util, event # backwards compat from ..sql.compiler import Compiled, TypeCompiler + class Dialect(object): """Define the behavior of a specific database and DB-API combination. @@ -153,7 +154,6 @@ class Dialect(object): _has_events = False - def create_connect_args(self, url): """Build DB-API compatible connection arguments. @@ -197,7 +197,8 @@ class Dialect(object): pass - def reflecttable(self, connection, table, include_columns, exclude_columns): + def reflecttable( + self, connection, table, include_columns, exclude_columns): """Load table description from the database. Given a :class:`.Connection` and a @@ -254,7 +255,8 @@ class Dialect(object): Deprecated. This method is only called by the default implementation of :meth:`.Dialect.get_pk_constraint`. Dialects should - instead implement the :meth:`.Dialect.get_pk_constraint` method directly. + instead implement the :meth:`.Dialect.get_pk_constraint` method + directly. """ @@ -346,7 +348,8 @@ class Dialect(object): raise NotImplementedError() - def get_unique_constraints(self, connection, table_name, schema=None, **kw): + def get_unique_constraints( + self, connection, table_name, schema=None, **kw): """Return information about unique constraints in `table_name`. Given a string `table_name` and an optional string `schema`, return @@ -359,7 +362,8 @@ class Dialect(object): list of column names in order \**kw - other options passed to the dialect's get_unique_constraints() method. + other options passed to the dialect's get_unique_constraints() + method. .. versionadded:: 0.9.0 @@ -465,7 +469,6 @@ class Dialect(object): raise NotImplementedError() - def do_commit(self, dbapi_connection): """Provide an implementation of ``connection.commit()``, given a DB-API connection. @@ -551,7 +554,7 @@ class Dialect(object): raise NotImplementedError() def do_rollback_twophase(self, connection, xid, is_prepared=True, - recover=False): + recover=False): """Rollback a two phase transaction on the given connection. :param connection: a :class:`.Connection`. @@ -565,7 +568,7 @@ class Dialect(object): raise NotImplementedError() def do_commit_twophase(self, connection, xid, is_prepared=True, - recover=False): + recover=False): """Commit a two phase transaction on the given connection. @@ -742,7 +745,6 @@ class ExecutionContext(object): """ - def create_cursor(self): """Return a new cursor generated from this ExecutionContext's connection. @@ -878,12 +880,13 @@ class Connectable(object): raise NotImplementedError() def _run_visitor(self, visitorcallable, element, - **kwargs): + **kwargs): raise NotImplementedError() def _execute_clauseelement(self, elem, multiparams=None, params=None): raise NotImplementedError() + class ExceptionContext(object): """Encapsulate information about an error condition in progress. |