summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/activemapper.py
Commit message (Collapse)AuthorAgeFilesLines
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-298/+0
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - parent transactions weren't started on the connection when adding a ↵Ants Aasma2008-01-201-1/+1
| | | | | | | | | | | connection to a nested session transaction. - session.transaction now always refers to the innermost active transaction, even when commit/rollback are called directly on the session transaction object. - when preparing a two-phase transaction fails on one connection all the connections are rolled back. - two phase transactions can now be prepared. - session.close() didn't close all transactions when nested transactions were used. - rollback() previously erroneously set the current transaction directly to the parent of the transaction that could be rolled back to. - autoflush for commit() wasn't flushing for simple subtransactions.
* cut down a good deal of Join construction overheadMike Bayer2007-11-181-2/+2
|
* Make ActiveMapper support viewonly propertyPaul Johnston2007-10-171-11/+10
|
* Assorted unused imports from pyflakes, docstring tweaks, formatting.Jason Kirtland2007-10-131-1/+0
|
* Make ActiveMapper use scoped_session instead of SessionContextPaul Johnston2007-10-121-19/+6
|
* Small change in ActiveMapper to make it work with Python 2.3Paul Johnston2007-09-041-1/+2
|
* update activemapper backrefs for r3340Jason Kirtland2007-08-171-1/+2
|
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-6/+5
| | | | maintenance branch in branches/rel_0_3.
* - Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData insteadJason Kirtland2007-07-061-2/+2
| | | | | - Deprecated BoundMetaData- use MetaData instead - Removed DMD and BMD from documentation
* correct typo-equivalent mistakes in some comments/docstringsGaëtan de Menten2007-04-271-1/+1
|
* - implemented foreign_keys argument on relation() [ticket:385]Mike Bayer2007-02-101-1/+1
| | | | | | | - PropertyLoader figures out accurate remote_side collection based on foreign_keys, legacy foreignkey, primary/secondaryjoin/polymorphic - reworked lazyloader, sync to work straight off foreign_keys/ remote_side collections
* - added optional __table_opts__ dictionary to ActiveMapper, will send kw ↵Mike Bayer2007-02-071-2/+6
| | | | | | options to Table objects [ticket:462]
* - docstring on polymorphic_mappingMike Bayer2006-10-211-4/+13
| | | | - applied Simon Wittber's ActiveMapper version_id_col patch for [ticket:348]
* ActiveMapper now supports autoloading of column definitions if you supplyJonathan LaCour2006-07-141-4/+32
| | | | | a __autoload__ = True attribute in your inner mapping class. It does not currently support autoloading relationships.
* sqlite detects version and disables CAST if version < 3.2.3Mike Bayer2006-07-111-0/+1
| | | | | fixes to unittests, mapper extension to work better with setting/unsetting extensions objectstore objects get 'session' attribute
* activemapper will use threadlocal mod's objectstore if its installedMike Bayer2006-07-101-14/+13
| | | | both objectstores no longer subclass SessionContext, get at it via .context attribute instead
* works without backrefs too....Mike Bayer2006-07-101-0/+4
|
* some refactorings to activemapper, made relationship() class have some ↵Mike Bayer2006-07-091-44/+54
| | | | polymorphic behavior for initializing its real relation, added support + unittest for self-referential relationship
* small fix to relation compilationMike Bayer2006-07-091-1/+0
|
* some adjustments to activemapper's objectstore to be composed against ↵Mike Bayer2006-07-011-7/+9
| | | | | | SessionContext DynamicMetaData checks first for _engine before returning
* Put back in the foreign-key checking code in process_relationships forJonathan LaCour2006-06-301-6/+0
| | | | | ActiveMapper. It looks like it is required by at least one person, so for now the code will stay in!
* There were two significant changes in this commit:Jonathan LaCour2006-06-291-2/+19
| | | | | | | | | | | | * Added implicit primary keys to ActiveMapper. Now, if you do not speicfy a primary key on your objects when declaring them, an Integer primary key called `id` will automatically be added to your objects for you. * Commented out a large chunk of the process_relationships function that should no longer be necessary thanks to some of the deferred mapper compilation that was added in SQLAlchemy 0.2.3. I left it in the code, but commented it out just in case this change causes a problem in someone's else's code and I can put it back in if needed.
* Updated ActiveMapper to support order_by parameters on all relationships.Jonathan LaCour2006-06-281-8/+18
| | | | Thanks to Charles Duffy for this patch!
* removed non py2.3ish parenthesisMike Bayer2006-06-221-3/+3
|
* Further improved the process_relationships function to handle the ordering ofJonathan LaCour2006-06-061-22/+72
| | | | | | | class definitions better. The function was only looking at relationships, not foreign keys, and was making some improper assumptions. The unit tests all still pass, and now some of my own code actually works, regardless of the order that I define the classes in.' 'lib/sqlalchemy/ext/activemapper.py
* fix to backref when its none for one-to-oneMike Bayer2006-06-061-1/+3
|
* HashSet is gone, uses set() for most sets in py2.4 or sets.Set.Mike Bayer2006-06-051-2/+2
| | | | ordered set functionality supplied by a subclass of sets.Set
* merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1Mike Bayer2006-05-251-71/+61
|
* Got the unit tests running again, apart from the two that were not working inJonathan LaCour2006-04-231-37/+36
| | | | | | | | | | | | | | | | the first place. The changes to process_relationships and to sqlachemy itself were causing a double 'assign_mapper' call to cause issues. Now, we basically defer calling assign_mapper until process_relationships in cases where there are defined relationships. Also, I moved ActiveMapper to always use the default engine, as there were a lot of hacks inside ActiveMapper to allow for engine swapping. The use of the default engine and the "global_connect" functionality significantly improves the usability of ActiveMapper. ActiveMapper will be getting a bit of a refactor/cleanup at some point in the nearish future, as it has drifted a bit to complexity with the addition of some features. For now, this should do the trick!
* Updates to ActiveMapper contributed by Gabriel Jacobo. The main purpose of theJonathan LaCour2006-04-201-21/+50
| | | | | | changes is to ensure that relationships are properly detected and built in the proper order. This should fix some problems that people were having with ActiveMapper requiring classes to be declared in a specific order.
* Added preliminary support for inheritance.jeff2006-04-081-9/+9
|
* rudimentary support for many-to-many relation. Still requires a separately ↵jeff2006-03-031-10/+17
| | | | defined intermediate table.
* Added code to make foreignkey on ActiveMapper accept a string and create the ↵jeff2006-02-271-9/+25
| | | | ForeignKey object on the fly. Also added ability to pass args and kwargs to Column constructor. ActiveMapper columns can have keyword args indexed and unique which will automatically create a index or a unique index. dburi in AutoConnectEngine can be a callable.
* integrating Jonathan LaCour's declarative layerMike Bayer2006-02-111-0/+142