summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/events.py
Commit message (Collapse)AuthorAgeFilesLines
...
* happy new year (see #2645)Diana Clarke2013-01-011-1/+1
|
* - recognize that do_rollback() and do_commit() work with a DBAPI connection,Mike Bayer2012-11-221-2/+50
| | | | | | | | | | | | | | | | | | whereas the other do_rollback_twophase(), savepoint etc. work with :class:`.Connection`. the context on these are different as twophase/savepoint are available at the :class:`.Connection` level, whereas commit/rollback are needed at a lower level as well. Rename the argument to "dbapi_connection" when the conneciton is in fact the DBAPI interface. - start thinking about being able to track "autocommit" vs. "commit", but not sure we have a need for this yet. - have Pool call out to a Dialect for all rollback/commit/close operations now. Pool no longer calls DBAPI methods directly. May use this for a workaround for [ticket:2611] - add a new Pool event reset() to allow the pool's reset of the connection to be intercepted. - remove methods in Informix dialect which appear to be hardcoding some isolation settings on new Transaction only; the isolation API should be implemented for Informix. also removed "flag" for transaction commit/rollback being not available; this should be based on server/DBAPI version and we will need someone with test access in order to help determine how this should work
* just a pep8 pass of lib/sqlalchemy/Diana Clarke2012-11-191-1/+3
|
* - [feature] The before_cursor_execute eventMike Bayer2012-08-231-20/+209
| | | | | | | | | fires off for so-called "_cursor_execute" events, which are usually special-case executions of primary-key bound sequences and default-generation SQL phrases that invoke separately when RETURNING is not used with INSERT. [ticket:2459]
* - [feature] Connection event listeners canMike Bayer2012-07-181-68/+80
| | | | | | now be associated with individual Connection objects, not just Engine objects. [ticket:2511]
* absolute imports in core, sqlMike Bayer2012-06-231-1/+1
|
* Add some `Sphinx` paragraph level versions informations markups,Mike Bayer2012-06-081-1/+1
| | | | such as ``.. versionadded::``, ``.. versionchanged::`` and ``.. deprecated::``.
* - [feature] The column_reflect event nowMike Bayer2012-04-241-3/+3
| | | | | | | | | accepts the Inspector object as the first argument, preceding "table". Code which uses the 0.7 version of this very new event will need modification to add the "inspector" object as the first argument. [ticket:2418]
* - [feature] Added new connection eventMike Bayer2012-04-101-0/+30
| | | | | | | dbapi_error(). Is called for all DBAPI-level errors passing the original DBAPI exception before SQLAlchemy modifies the state of the cursor.
* happy new yearMike Bayer2012-01-041-1/+1
|
* fix typo, [ticket:2232]Mike Bayer2011-12-061-2/+2
|
* marathon doc updating session including a rewrite of unicode paragraphsMike Bayer2011-12-041-1/+1
|
* - [bug] Postgresql dialect memoizes that an ENUM of aMike Bayer2011-10-291-16/+20
| | | | | | | | | particular name was processed during a create/drop sequence. This allows a create/drop sequence to work without any calls to "checkfirst", and also means with "checkfirst" turned on it only needs to check for the ENUM once. [ticket:2311]
* remove inline imports from core events tooMike Bayer2011-09-221-8/+8
|
* double quote theseMike Bayer2011-03-161-2/+2
|
* initial work on column reflectMike Bayer2011-03-141-0/+50
|
* - rename EngineEvents to ConnectionEventsMike Bayer2011-02-171-8/+3
| | | | | | | | - simplify connection event model to be inline inside Connection, don't use ad-hoc subclasses (technically would leak memory for the app that keeps creating engines and adding events) - not doing listen-per-connection yet. this is closer. overall things are much simpler now (until we put listen-per-connection in...)
* docuemnt args for before_parent_attach, after_parent_attachMike Bayer2011-02-011-0/+20
|
* - SchemaItem, SchemaType now descend from common typeMike Bayer2011-01-301-6/+45
| | | | | | | | | | | | | | | | | | SchemaEventTarget, which supplies dispatch - the dispatch now provides before_parent_attach(), after_parent_attach(), events which generally bound the _set_parent() event. [ticket:2037] - the _on_table_attach mechanism now usually uses the event dispatch - fixed class-level event dispatch to propagate to all subclasses, not just immediate subclasses - fixed class-level event unpickling to handle more involved inheritance hierarchies, needed by the new schema event dispatch. - ForeignKeyConstraint doesn't re-call the column attach event on ForeignKey objects that are already associated with the correct Column - we still need that ImportError on mysqldb CLIENT FLAGS to support mock DBAPIs
* - whitespace removal bonanzaMike Bayer2011-01-021-56/+56
|
* - clean up copyright, update for 2011, stamp every file withMike Bayer2011-01-021-0/+6
| | | | | a consistent tag - AUTHORS file
* - removes the "on_" prefix.Mike Bayer2010-12-301-36/+36
|
* - they don't want "on_". First step, change the naming convention on EventsMike Bayer2010-12-301-3/+3
| | | | so that non-events are just _name.
* new calling style: event.listen(target, identifier, fn)Mike Bayer2010-12-011-8/+8
|
* - event documentation bonanzaMike Bayer2010-11-141-4/+52
|
* more docsMike Bayer2010-11-101-0/+37
|
* - move deprecated interfaces down to bottom of TOC, update verbiageMike Bayer2010-11-101-7/+60
| | | | | | | | | | | | | - more docs for engine, pool, DDL events - update DDL sequences documentation to use events - update DDL() docstring to refer to execute_if() - document parameters for DDLElement.execute_if() - add retval=True flag to Engine.on_before_execute(), on_before_cursor_execute(). wrap the function if retval=False, check for appropriate usage of the flag, add tests. - remove ScopedSession.mapper and tests entirely - remove ExtensionCarrier and tests - change remaining tests that use MapperExtension to use MapperEvents
* - basic docsMike Bayer2010-11-091-4/+25
| | | | - poolevent accepts Engine as a target
* - reorganizationMike Bayer2010-09-141-0/+160
- attrbutes.py splits into attribtes.py and instrumentation.py - all the various Event subclasses go into events.py modules - some ideas for orm events - move *Extension out to deprecated_interfaces