| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
fixes to entity_name propigation
|
| |
|
|
| |
more correctly documented
|
| | |
|
| |
|
|
| |
pass on all DBs
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
on previous changes to Mapper
|
| |
|
|
| |
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.
|
| | |
|
| |
|
|
| |
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.
|
| |
|
|
|
|
| |
at the Session level,
fixes [ticket:113]
|
| |
|
|
| |
blown away if it hadnt been loaded
|
| |
|
|
| |
some fixes to unit tests
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
to only signal postfetch if the passivedefault columns received None/NULL for their parameter (since they dont exec otherwise)
|
| |
|
|
| |
properly receives defaults on inserts)...
|
| |
|
|
|
| |
clause elements including tables and columns, schema package deals with "physical"
representations
|
| | |
|
| | |
|
| |
|
|
| |
process_defaults set newly acquired parameter by name also
|
| |
|
|
| |
key name. Added test for same.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
that just maintains begin/commit state
|
| | |
|
| |
|
|
| |
post-fetch rows that contain passive defaults
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
changed unit tests/examples to not do it
|
| |
|
|
| |
behaviour (values(), iteritems(), iterkeys(), etc). Made parent and row private. Modified tests that used RowProxy.row to use values().
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
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)
|
| |
|
|
|
|
|
| |
oracle,
allow different ordering of expected statements.
unittests still dont work completely with oracle due to sequence columns in INSERT statements
|
| |
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
|
| |
this also allows "deferred" column properties to remain untouched by a save operation
if they werent affected.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| | |
|
| |
|
|
|
|
| |
&|~ boolean operators
added 'literal' keyword
working on column clauses being more flexible
|
| | |
|
| |
|
|
| |
import scheme
|
| | |
|
| | |
|