summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/scoping.py
Commit message (Collapse)AuthorAgeFilesLines
* - copyright 2015Mike Bayer2015-03-101-1/+1
|
* - apply pep8 formatting to sqlalchemy/sql, sqlalchemy/util, sqlalchemy/dialects,Brian Jarrett2014-07-201-4/+4
| | | | sqlalchemy/orm, sqlalchemy/event, sqlalchemy/testing
* - break up the <authors> copyright comment as part of a passMike Bayer2014-07-091-1/+2
| | | | to get all flake8 passing
* - happy new yearMike Bayer2014-01-051-1/+1
|
* Added support for new :attr:`.Session.info` attribute toMike Bayer2013-11-191-1/+1
| | | | :class:`.scoped_session`.
* happy new year (see #2645)Diana Clarke2013-01-011-1/+1
|
* just a pep8 pass of lib/sqlalchemy/orm/Diana Clarke2012-11-191-3/+11
|
* - commit Priit Laes docstring fixesMike Bayer2012-09-301-2/+2
| | | | - don't even talk about metadata.bind in declarative
* updatesMike Bayer2012-09-101-7/+26
|
* - rework scoped_session and sessionmaker, [ticket:2500]Mike Bayer2012-09-101-18/+33
| | | | - rewrite tons of session docs
* -whitespace bonanza, contdMike Bayer2012-07-281-4/+4
|
* - move all of orm to use absolute importsMike Bayer2012-06-231-5/+4
| | | | | | | | - break out key mechanics of loading objects into new "orm.loading" module, removing implementation details from both mapper.py and query.py. is analogous to persistence.py - some other cleanup and old cruft removal
* plus add it to the scoping namespaceMike Bayer2012-02-251-5/+7
|
* happy new yearMike Bayer2012-01-041-1/+1
|
* - fix pypostgresql typo, [ticket:2185]Mike Bayer2011-07-041-6/+6
| | | | | | | | | | | | | | | | | | - rewrite "getting a session" docs to delineate all sessionmaker() use cases distinctly - rewrite "Managing Transactions" doc to spell out each specific step completely, [ticket:2204] - add to create_engine() and main "engine" doc an unambiguous statement that the create_engine() does not create a connection - other link fixes - rewrite "deleting" section so that "deleting from collections" is separate, well-described, [ticket:2202] - rephrase "autocommit mode" into its own section, move it down, put some bold text that you shouldn't be using it. - simplify the "subtransactions" section and make it local to "autocommit" since it is utterly unneeded by anybody. - oracle is not doing 2-phase anytime soon
* - remove some remaining sys.modules shenanigansrel_0_7b1Mike Bayer2011-02-121-1/+1
| | | | | | | | | - The "sqlalchemy.exceptions" alias in sys.modules has been removed. Base SQLA exceptions are available via "from sqlalchemy import exc". The "exceptions" alias for "exc" remains in "sqlalchemy" for now, it's just not patched into sys.modules.
* - whitespace removal bonanzaMike Bayer2011-01-021-5/+5
|
* - clean up copyright, update for 2011, stamp every file withMike Bayer2011-01-021-2/+2
| | | | | a consistent tag - AUTHORS file
* - move deprecated interfaces down to bottom of TOC, update verbiageMike Bayer2010-11-101-84/+2
| | | | | | | | | | | | | - 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
* - scoped_session emits a warning when configure() isMike Bayer2010-09-211-2/+9
| | | | | called if a Session is already present (checks only the current thread) [ticket:1924]
* doc updatesMike Bayer2010-09-061-2/+7
|
* get slightly better about deprecations in docstrings, tho this is kind of an ↵Mike Bayer2010-08-091-4/+2
| | | | uphill climb
* add docstring for remove [ticket:1715]Mike Bayer2010-02-261-0/+2
|
* add autoflush to the list of attributes exported on scoped_sessionMike Bayer2010-01-211-1/+1
|
* merged scopefunc patch from r6420 of 0.5 branchMike Bayer2009-10-201-2/+6
|
* removed obsolete code (closes #1559)Gaëtan de Menten2009-09-301-7/+2
|
* merge 0.6 series to trunk.Mike Bayer2009-08-061-1/+1
|
* Session.mapper is now *deprecated*.Mike Bayer2009-07-031-8/+10
| | | | | | | | | | | | | | Call session.add() if you'd like a free-standing object to be part of your session. Otherwise, a DIY version of Session.mapper is now documented at http://www.sqlalchemy.org/trac/wiki/UsageRecipes/SessionAwareMapper The method will remain deprecated throughout 0.6. M test/ext/test_declarative.py M test/orm/test_scoping.py M lib/sqlalchemy/orm/scoping.py M CHANGES
* - Added ScopedSession.is_active accessor. [ticket:976]Mike Bayer2008-12-271-1/+1
|
* - session.execute() will execute a Sequence object passed toMike Bayer2008-09-281-10/+12
| | | | | | | | | | | it (regression from 0.4). - Removed the "raiseerror" keyword argument from object_mapper() and class_mapper(). These functions raise in all cases if the given class/instance is not mapped. - Refined ExtensionCarrier to be itself a dict, removed 'methods' accessor - moved identity_key tests to test/orm/utils.py - some docstrings
* Tidy.Jason Kirtland2008-09-281-3/+2
|
* - Fixed shared state bug interfering with ScopedSession.mapper'sJason Kirtland2008-09-271-15/+12
| | | | | ability to apply default __init__ implementations on object subclasses.
* Added query_cls= override to scoped_session's query_propertyJason Kirtland2008-09-271-3/+16
|
* - The "entity_name" feature of SQLAlchemy mappersMike Bayer2008-08-021-2/+1
| | | | | has been removed. For rationale, see http://groups.google.com/group/sqlalchemy/browse_thread/thread/9e23a0641a88b96d?hl=en
* - Moved to 2.4+ import syntax (w/ some experimental merge-friendly formatting)Jason Kirtland2008-07-151-2/+4
|
* And thus ends support for Python 2.3.Jason Kirtland2008-07-151-3/+3
|
* - Fixed a couple lingering exceptions->exc usagesJason Kirtland2008-07-151-27/+21
| | | | - Some import tidying
* move the definition of sessions public methods closer to the sourceAnts Aasma2008-05-091-1/+1
|
* added "add", "add_all", "expire_all" to SSMike Bayer2008-05-091-1/+1
|
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-17/+39
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - added standalone "query" class attribute generatedMike Bayer2008-01-251-1/+25
| | | | | | | by a scoped_session. This provides MyClass.query without using Session.mapper. Use via: MyClass.query = Session.query_property()
* - mapped classes which extend "object" and do not provide anMike Bayer2007-12-291-2/+6
| | | | | | | __init__() method will now raise TypeError if non-empty *args or **kwargs are present at instance construction time (and are not consumed by any extensions such as the scoped_session mapper), consistent with the behavior of normal Python classes [ticket:908]
* dont call up new session unless save_on_initMike Bayer2007-10-311-1/+1
|
* - also added proxying of save_or_update to scoped sessions.Ants Aasma2007-10-311-1/+1
| | | | | - session.update() raises an error when updating an instance that is already in the session with a different identity - adjusted zoomarks lower limits so I can get a nice clean run
* Added proxying of __contains__ and __iter__ methods for scoped sessionsAnts Aasma2007-10-311-1/+1
|
* Converted errant generator expression.Jason Kirtland2007-10-131-1/+3
|
* - fix multiple consequent two phase transactions not working with postgres. ↵Ants Aasma2007-10-081-7/+14
| | | | | | For some reason implicit transactions are not enough. [ticket:810] - add an option to scoped session mapper extension to not automatically save new objects to session.
* - added session.is_modified(obj) method; performs the same "history" ↵Mike Bayer2007-09-241-1/+1
| | | | | | | | comparison operation as occurs within a flush operation; setting include_collections=False gives the same result as is used when the flush determines whether or not to issue an UPDATE for the instance's row.
* remove() should issue a close() on existing sessionMike Bayer2007-08-301-0/+2
|
* Fix for scoped_session's `mapper(extension=<scalar>)` [ticket:760]Jason Kirtland2007-08-291-1/+1
|