diff options
author | Diana Clarke <diana.joan.clarke@gmail.com> | 2012-11-19 12:52:23 -0500 |
---|---|---|
committer | Diana Clarke <diana.joan.clarke@gmail.com> | 2012-11-19 12:52:23 -0500 |
commit | 34b8b22659999eae459ca33baa3ca479f8eb5bf1 (patch) | |
tree | 8612f22499c0bf4ec556dcdd31c2c3e276e83bc8 /lib/sqlalchemy/engine/interfaces.py | |
parent | 0ac15d61f7a4b4b68cc4f1a63763823ee3c42d30 (diff) | |
download | sqlalchemy-34b8b22659999eae459ca33baa3ca479f8eb5bf1.tar.gz |
just a pep8 pass of lib/sqlalchemy/engine/
Diffstat (limited to 'lib/sqlalchemy/engine/interfaces.py')
-rw-r--r-- | lib/sqlalchemy/engine/interfaces.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/lib/sqlalchemy/engine/interfaces.py b/lib/sqlalchemy/engine/interfaces.py index 6d0b1cb61..66856a00e 100644 --- a/lib/sqlalchemy/engine/interfaces.py +++ b/lib/sqlalchemy/engine/interfaces.py @@ -8,6 +8,7 @@ from .. import util, event, events + class Dialect(object): """Define the behavior of a specific database and DB-API combination. @@ -485,7 +486,8 @@ class Dialect(object): raise NotImplementedError() - def do_execute_no_params(self, cursor, statement, parameters, context=None): + def do_execute_no_params(self, cursor, statement, parameters, + context=None): """Provide an implementation of ``cursor.execute(statement)``. The parameter collection should not be sent. @@ -767,8 +769,8 @@ class TypeCompiler(object): class Connectable(object): """Interface for an object which supports execution of SQL constructs. - The two implementations of :class:`.Connectable` are :class:`.Connection` and - :class:`.Engine`. + The two implementations of :class:`.Connectable` are + :class:`.Connection` and :class:`.Engine`. Connectable must also implement the 'dialect' member which references a :class:`.Dialect` instance. @@ -777,7 +779,6 @@ class Connectable(object): dispatch = event.dispatcher(events.ConnectionEvents) - def connect(self, **kwargs): """Return a :class:`.Connection` object. @@ -801,17 +802,19 @@ class Connectable(object): raise NotImplementedError() - @util.deprecated("0.7", "Use the create() method on the given schema " - "object directly, i.e. :meth:`.Table.create`, " - ":meth:`.Index.create`, :meth:`.MetaData.create_all`") + @util.deprecated("0.7", + "Use the create() method on the given schema " + "object directly, i.e. :meth:`.Table.create`, " + ":meth:`.Index.create`, :meth:`.MetaData.create_all`") def create(self, entity, **kwargs): """Emit CREATE statements for the given schema entity.""" raise NotImplementedError() - @util.deprecated("0.7", "Use the drop() method on the given schema " - "object directly, i.e. :meth:`.Table.drop`, " - ":meth:`.Index.drop`, :meth:`.MetaData.drop_all`") + @util.deprecated("0.7", + "Use the drop() method on the given schema " + "object directly, i.e. :meth:`.Table.drop`, " + ":meth:`.Index.drop`, :meth:`.MetaData.drop_all`") def drop(self, entity, **kwargs): """Emit DROP statements for the given schema entity.""" @@ -834,4 +837,3 @@ class Connectable(object): def _execute_clauseelement(self, elem, multiparams=None, params=None): raise NotImplementedError() - |