~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/events.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    _dispatch_target = SchemaEventTarget
75
75
 
76
76
    def before_create(self, target, connection, **kw):
77
 
        """Called before CREATE statments are emitted.
 
77
        """Called before CREATE statements are emitted.
78
78
 
79
79
        :param target: the :class:`.MetaData` or :class:`.Table`
80
80
         object which is the target of the event.
90
90
        """
91
91
 
92
92
    def after_create(self, target, connection, **kw):
93
 
        """Called after CREATE statments are emitted.
 
93
        """Called after CREATE statements are emitted.
94
94
 
95
95
        :param target: the :class:`.MetaData` or :class:`.Table`
96
96
         object which is the target of the event.
106
106
        """
107
107
 
108
108
    def before_drop(self, target, connection, **kw):
109
 
        """Called before DROP statments are emitted.
 
109
        """Called before DROP statements are emitted.
110
110
 
111
111
        :param target: the :class:`.MetaData` or :class:`.Table`
112
112
         object which is the target of the event.
122
122
        """
123
123
 
124
124
    def after_drop(self, target, connection, **kw):
125
 
        """Called after DROP statments are emitted.
 
125
        """Called after DROP statements are emitted.
126
126
 
127
127
        :param target: the :class:`.MetaData` or :class:`.Table`
128
128
         object which is the target of the event.
348
348
 
349
349
 
350
350
        The :meth:`.PoolEvents.reset` event is usually followed by the
351
 
        the :meth:`.PoolEvents.checkin` event is called, except in those
 
351
        :meth:`.PoolEvents.checkin` event is called, except in those
352
352
        cases where the connection is discarded immediately after reset.
353
353
 
354
354
        :param dbapi_connection: a DBAPI connection.
611
611
 
612
612
        This event is called with the DBAPI exception instance
613
613
        received from the DBAPI itself, *before* SQLAlchemy wraps the
614
 
        exception with it's own exception wrappers, and before any
 
614
        exception with its own exception wrappers, and before any
615
615
        other operations are performed on the DBAPI cursor; the
616
616
        existing transaction remains in effect as well as any state
617
617
        on the cursor.