summaryrefslogtreecommitdiff
path: root/test/objectstore.py
Commit message (Collapse)AuthorAgeFilesLines
* reorganized unit tests into subdirectoriesMike Bayer2006-06-051-1161/+0
|
* improvements/fixes to session cascade iteration,Mike Bayer2006-06-051-0/+2
| | | | fixes to entity_name propigation
* - got rudimental "mapping to multiple tables" functionality cleaned up,Mike Bayer2006-06-021-4/+40
| | | | more correctly documented
* merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1Mike Bayer2006-05-251-325/+187
|
* added 'supports', 'unsupports' decorators to unittests so that they can all ↵Mike Bayer2006-04-291-2/+6
| | | | pass on all DBs
* mapper's querying facilities migrated to new query.Query() object, which can ↵Mike Bayer2006-04-061-0/+2
| | | | | | | | | receive session-specific context via the mapper.using() statement. reuslting object instances will be bound to this session, but query execution still handled by the SQLEngines implicit in the mapper's Table objects. session now propigates to the unitofwork UOWTransaction object, as well as mapper's save_obj/delete_obj via the UOWTransaction it receives. UOWTransaction explicitly calls the Session for the engine corresponding to each Mapper in the flush operation, although the Session does not yet affect the choice of engines used, and mapper save/delete is still using the Table's implicit SQLEngine. changed internal unitofwork commit() method to be called flush(). removed all references to 'engine' from mapper module, including adding insert/update specific SQLEngine methods such as last_inserted_ids, last_inserted_params, etc. to the returned ResultProxy so that Mapper need not know which SQLEngine was used for the execute. changes to unit tests, SelectResults to support the new Query object.
* added a unit test for the "version_id" keyword argument, which passes based ↵Mike Bayer2006-04-031-0/+54
| | | | on previous changes to Mapper
* attributes overhaul #2 - attribute manager now tracks class-level ↵Mike Bayer2006-04-031-2/+1
| | | | initializers strictly through the SmartPropery instances attached to the class, so that attributes retain their natural polymorphic behavior. naming conventions migrating to "managed_attribute", simplifying codepaths.
* second assertionMike Bayer2006-03-311-1/+2
|
* added unit test for the old commit that was in [changeset:1186]. modified ↵Mike Bayer2006-03-311-0/+73
| | | | its behavior a bit to not delete private relationships unless they were already marked as deleted at the attribute manipulation level. got "switching" behavior from one private relationship to another to work, added a unit test for that.
* added "nest_on" option for Session, so nested transactions can occur mostly ↵Mike Bayer2006-03-221-1/+30
| | | | | | at the Session level, fixes [ticket:113]
* fixed attributes bug where if an object is committed, its lazy-loaded list gotMike Bayer2006-03-141-0/+20
| | | | blown away if it hadnt been loaded
* oracle is requiring dictionary params to be in a clean dict, added conversionMike Bayer2006-03-131-1/+1
| | | | some fixes to unit tests
* refactor to Compiled.get_params() to return new ClauseParameters object, a ↵Mike Bayer2006-03-131-1/+23
| | | | | | | | | | | more intelligent bind parameter dictionary that does type conversions late and preserves the unconverted value; used to fix mappers not comparing correct value in post-fetch [ticket:110] removed pre_exec assertion from oracle/firebird regarding "check for sequence/primary key value" fix to Unicode type to check for null, fixes [ticket:109] create_engine() now uses genericized parameters; host/hostname, db/dbname/database, password/passwd, etc. for all engine connections fix to select([func(column)]) so that it creates a FROM clause to the column's table, fixes [ticket:111] doc updates for column defaults, indexes, connection pooling, engine params unit tests for the above bugfixes
* added unittest for orm-persisted insert without a postfetch, tweak to engine ↵Mike Bayer2006-03-051-2/+14
| | | | to only signal postfetch if the passivedefault columns received None/NULL for their parameter (since they dont exec otherwise)
* got mapper to receive the onupdates after updating an instance (also ↵Mike Bayer2006-03-051-2/+14
| | | | properly receives defaults on inserts)...
* merged sql_rearrangement branch , refactors sql package to work standalone withMike Bayer2006-02-251-0/+3
| | | | | clause elements including tables and columns, schema package deals with "physical" representations
* exception package added, support throughoutMike Bayer2006-02-191-1/+0
|
* added new style of begin/commit which returns a tranactional objectMike Bayer2006-02-181-7/+36
|
* bind params upon insert are totally column "name" based, so in ↵Mike Bayer2006-02-171-1/+1
| | | | process_defaults set newly acquired parameter by name also
* Modified objectstore to look for primary key param values by column name not ↵Robert Leftwich2006-02-171-0/+21
| | | | key name. Added test for same.
* tweak to get tables to show upMike Bayer2006-02-171-8/+10
|
* added another multi-pk testMike Bayer2006-02-171-1/+17
|
* oracle likes to use VARCHAR isntead of CLOB so put limits on StringMike Bayer2006-02-141-2/+2
|
* latest reorgnanization of the objectstore, the Session is a simpler object ↵Mike Bayer2006-02-141-0/+41
| | | | that just maintains begin/commit state
* some tweaks to options, use_alias, live removedMike Bayer2006-02-121-3/+1
|
* more hammering of defaults. ORM will properly execute defaults and ↵Mike Bayer2006-02-111-0/+50
| | | | post-fetch rows that contain passive defaults
* somewhat of an overhaul, got alltests to work againMike Bayer2006-02-091-1/+3
|
* more Sequences needed for oracleMike Bayer2006-02-051-1/+1
|
* ordering of queries can be different based on platform dictionary orderingMike Bayer2006-02-051-12/+12
|
* needed optional sequence for oracle supportMike Bayer2006-02-051-2/+2
|
* beginnings of a "multilple relations to the same table" testMike Bayer2006-02-041-0/+20
|
* deprecated relation(class, table)Mike Bayer2006-02-021-16/+17
| | | | changed unit tests/examples to not do it
* RowProxy changes - added keys(), used keys() to add more dictionary-like ↵Robert Leftwich2006-01-281-14/+14
| | | | behaviour (values(), iteritems(), iterkeys(), etc). Made parent and row private. Modified tests that used RowProxy.row to use values().
* test for inheritance, tests objectstore post_exec works fullyMike Bayer2006-01-261-2/+24
|
* small adjust after mapper/sql overhaulMike Bayer2006-01-081-0/+2
|
* testing backref/lazyload uses mapper.get()Mike Bayer2006-01-051-2/+4
|
* postgres oids say byebye by default, putting hooks in for engines to ↵Mike Bayer2006-01-011-4/+56
| | | | determine column defaults externally to it having a 'default' property, beefed up unittests to support inserts with/without defaults (will fix oracle unit tests too)
* catching up oracle to current, some tweaks to unittests to work better with ↵Mike Bayer2005-12-301-7/+6
| | | | | | | oracle, allow different ordering of expected statements. unittests still dont work completely with oracle due to sequence columns in INSERT statements
* the 'column' function is optional to point a property to a column when ↵Mike Bayer2005-12-241-2/+2
| | | | | | | constructing a mapper can also be specified as a list to indicate overlap mapper columns come from its table, no need to add from given columns
* ColumnProperty -> columnMike Bayer2005-12-241-2/+2
|
* mapper, when updating, only SET's those columns that have changed.Mike Bayer2005-12-231-13/+15
| | | | | this also allows "deferred" column properties to remain untouched by a save operation if they werent affected.
* refactor/cleanup to mapper options methodology to allow for incoming ↵Mike Bayer2005-12-231-4/+3
| | | | | | | | | | | | | | defer/undefer options mapper/relations are stricter about class attributes and primary mapper - is_primary flag on relations fixed (wasnt working before). new primary mappers clear off old class attributes, secondary mappers insure that their property was set up by the primary; otherwise secondary mappers can add behavior to properties that are unmanaged by the primary mapper added "group" option to deferred loaders so a group of properties can be loaded at once mapper adds the "oid" column to the select list if "distinct" is set to true and its using the default "order by oid" ordering (mysql benefits from ansisql fix to only print out unique columns in the select list since its oid is the same as the pk column) fixed unittests to comply with stricter primary mapper rules
* build in 'backref' property argumentMike Bayer2005-12-091-2/+2
|
* working the backref attributes thing. many-to-many unittest works now...Mike Bayer2005-12-061-0/+21
|
* math operatorsMike Bayer2005-12-041-1/+1
| | | | | | &|~ boolean operators added 'literal' keyword working on column clauses being more flexible
* many-to-many mechanism changed the ordering of the three queries involvedMike Bayer2005-12-031-4/+4
|
* migrated __ALL__ to __all__, oops, and reworked moduleMike Bayer2005-11-301-2/+1
| | | | import scheme
* some cleanup to tests, adjustments to support mysql quirksMike Bayer2005-11-271-51/+64
|
* cleaning up more with command-line argsMike Bayer2005-11-261-1/+8
|