Commit Graph

413 Commits

Author SHA1 Message Date
Mike Bayer 180d374199 reorganizing classnames a bit, flagging "private" classes in the sql package,
getting the generated docs to look a little nicer.
fixes to extensions, sqlsoup etc. to be compatible with recent API tweaks
2006-10-17 02:03:00 +00:00
Mike Bayer a81bd92d6e - specifying joins in the from_obj argument of query.select() will
replace the main table of the query, if the table is somewhere within
the given from_obj.  this makes it possible to produce custom joins and
outerjoins in queries without the main table getting added twice.
[ticket:315]
- added join_to and outerjoin_to transformative methods to SelectResults,
to build up join/outerjoin conditions based on property names. also
added select_from to explicitly set from_obj parameter.
- factored "results" arrays from the mapper test suite and into the
"tables" mapper
- added "viewonly" param to docs
2006-09-27 07:08:26 +00:00
Mike Bayer 8f41fed5a2 - moved selectresults test from orm to ext package
- renamed objectstore test suite to unitofwork
- added additional "eagerdegrade" tests to mapper, to test fixes from #308
2006-09-22 00:33:44 +00:00
Mike Bayer 4b73f0859f added an objectstore clear 2006-08-09 23:56:29 +00:00
Mike Bayer af59af2359 added start of a many-to-many test 2006-08-07 05:10:59 +00:00
Jonathan Ellis 6fed7d0166 fix doctest integration 2006-07-21 16:44:01 +00:00
Mike Bayer 70469bf260 added count/count_by to assignmapper, plus a test in activemapper to try it out 2006-07-13 16:36:31 +00:00
Mike Bayer 7d91bebccc sqlite detects version and disables CAST if version < 3.2.3
fixes to unittests, mapper extension to work better with setting/unsetting extensions
objectstore objects get 'session' attribute
2006-07-11 00:36:32 +00:00
Mike Bayer 5c7993080a some refactorings to activemapper, made relationship() class have some polymorphic behavior for initializing its real relation, added support + unittest for self-referential relationship 2006-07-09 19:48:02 +00:00
Jonathan LaCour 4e3aa8829a There were two significant changes in this commit:
* 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.
2006-06-29 23:29:37 +00:00
Mike Bayer b3927fbb88 inserting './lib/' into sys.path since PYTHONPATH no longer straightforward with latest setuptools 2006-06-29 00:28:55 +00:00
Jonathan LaCour 70b2dec19a Updated ActiveMapper to support order_by parameters on all relationships.
Thanks to Charles Duffy for this patch!
2006-06-28 17:26:48 +00:00
Mike Bayer 120dcee5a7 reorganized unit tests into subdirectories 2006-06-05 17:25:51 +00:00