summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* - Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData insteadJason Kirtland2007-07-0614-16/+16
| | | | | - Deprecated BoundMetaData- use MetaData instead - Removed DMD and BMD from documentation
* added proper cascade for deletesMike Bayer2007-06-301-1/+5
|
* fix to "populate_existing"Mike Bayer2007-06-271-1/+1
|
* documented eager load fixMike Bayer2007-06-081-1/+1
|
* - eager loader calls select_mapper so that poly rulesets get picked upMike Bayer2007-06-081-10/+3
| | | | - changed polymorph example to use a single set of outerjoins
* some updatesMike Bayer2007-05-293-11/+161
|
* fix to the backref primary join conditionMike Bayer2007-05-291-7/+11
|
* added "polymorphic assocaition" example, illustrates how to emulateMike Bayer2007-05-282-0/+300
| | | | Rails' polymorphic associaiton functionality
* docs/examples for new with_parent() featureMike Bayer2007-04-171-4/+3
|
* - Query has add_entity() and add_column() generative methods. theseMike Bayer2007-03-101-2/+2
| | | | | | | | | will add the given mapper/class or ColumnElement to the query at compile time, and apply them to the instances method. the user is responsible for constructing reasonable join conditions (otherwise you can get full cartesian products). result set is the list of tuples, non-uniqued. - fixed multi-mapper instances() to pad out shorter results with None so zip() gets everything
* docs: [ticket:345], [ticket:356], [ticket:48], [ticket:403], [ticket:394],Mike Bayer2007-01-211-2/+4
| | | | | cleanup/completion of keyword arg documentation for create_engine(), mapper(), and relation()
* new collections exampleMike Bayer2006-12-121-0/+84
|
* pickle example for dmillerMike Bayer2006-12-091-0/+82
|
* docs/examples/unittests for remote_sideMike Bayer2006-12-083-3/+3
|
* patched **kwargs enhancement for [ticket:361]Mike Bayer2006-11-101-1/+8
|
* - added an assertion within the "cascade" step of ORM relationships to checkMike Bayer2006-11-034-7/+217
| | | | | | | | that the class of object attached to a parent object is appropriate (i.e. if A.items stores B objects, raise an error if a C is appended to A.items) - new extension sqlalchemy.ext.associationproxy, provides transparent "association object" mappings. new example examples/association/proxied_association.py illustrates. - some example cleanup
* some example cleanupMike Bayer2006-11-012-16/+13
|
* added graphing exampleMike Bayer2006-11-011-0/+85
|
* - attributes module and test suite moves underneath 'orm' packageMike Bayer2006-10-221-3/+2
| | | | | | | | | | | | | - fixed table comparison example in metadata.txt - docstrings all over the place - renamed mapper _getattrbycolumn/_setattrbycolumn to get_attr_by_column,set_attr_by_column - removed frommapper parameter from populate_instance(). the two operations can be performed separately - fix to examples/adjacencytree/byroot_tree.py to fire off lazy loaders upon load, to reduce query calling - added get(), get_by(), load() to MapperExtension - re-implemented ExtensionOption (called by extension() function) - redid _ExtensionCarrier to function dynamically based on __getattribute__ - added logging to attributes package, indicating the execution of a lazy callable - going to close [ticket:329]
* tweak for Table.create() not having a return valueMike Bayer2006-10-211-3/+5
|
* - "custom list classes" is now implemented via the "collection_class"Mike Bayer2006-10-032-7/+7
| | | | | keyword argument to relation(). the old way still works but is deprecated [ticket:212]
* - internal refactoring to mapper instances() method to use aMike Bayer2006-09-301-3/+4
| | | | | | | | SelectionContext object to track state during the operation. SLIGHT API BREAKAGE: the append_result() and populate_instances() methods on MapperExtension have a slightly different method signature now as a result of the change; hoping that these methods are not in widespread use as of yet.
* - unit-of-work does a better check for "orphaned" objects that areMike Bayer2006-08-182-2/+2
| | | | | | | | | | part of a "delete-orphan" cascade, for certain conditions where the parent isnt available to cascade from. - it is now invalid to declare a self-referential relationship with "delete-orphan" (as the abovementioned check would make them impossible to save) - improved the check for objects being part of a session when the unit of work seeks to flush() them as part of a relationship..
* echo=TrueMike Bayer2006-07-181-1/+1
|
* late compilation of mappers. now you can create mappers in any order, and ↵Mike Bayer2006-06-082-1/+5
| | | | they will compile their internal state when first used in a query or flush operation (or their props or 'c'/'columns' attributes are used). includes various cleanups and fixes in support of the change, including some unit test changes, additional unit tests.
* improvements/fixes to session cascade iteration,Mike Bayer2006-06-051-0/+1
| | | | fixes to entity_name propigation
* merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1Mike Bayer2006-05-258-350/+320
|
* added explicit "session" argument to get(), select_whereclause in mapper, as ↵Mike Bayer2006-04-062-3/+4
| | | | well as throughout the call-chain for those. lazy loader honors the "session" of the parent object, + added simple unit test
* put proper return typeMike Bayer2006-04-031-1/+1
|
* improved translation of rows when proxying rows from one mapper to another.Mike Bayer2006-03-261-3/+4
|
* a cool example that illustrates vertical table storage, and objects that ↵Mike Bayer2006-03-261-0/+164
| | | | automatically configure themselves for this type of storage
* got some support for mapping to a select that only selects some of the ↵Mike Bayer2006-03-251-2/+0
| | | | columns of an underlying table
* some more tweaks to get more advanced polymorphic stuff to workMike Bayer2006-03-242-7/+146
|
* a few tweaks and the polymorph example can also use eager loadingMike Bayer2006-03-201-2/+2
|
* got dilbert to be properly modified....Mike Bayer2006-03-191-1/+1
|
* added 'noninherited table' prop to mapper indicating the "lead" table, in ↵Mike Bayer2006-03-091-2/+2
| | | | | | | | the case of inheritance. relations now create priamry/secondary joins against that lead table. if you want to create it against an inherited table, use explicit join conditions. added 'correlate' argument to CompoundSelect to get polymorph example working again.
* added backref() function, allows the creation of a backref where you also ↵Mike Bayer2006-03-071-0/+41
| | | | send keyword arguments that will be placed on the relation
* a mapper with inheritance will place itself as "dependent" on the inherited ↵Mike Bayer2006-03-061-15/+27
| | | | mapper; even though this is not usually needed, it allows certain exotic combinations of mapper setups to work (i.e. the one in the polymorph example)
* added new 'polymorphic' example. still trying to understand it :) .Mike Bayer2006-03-061-0/+131
| | | | | fixes to relation to enable it to locate "direction" more consistently with inheritance relationships more tweaks to parenthesizing subqueries, unions, etc.
* deprecated relation(class, table)Mike Bayer2006-02-021-1/+1
| | | | changed unit tests/examples to not do it
* moved tables into examples so basic_tree could be simplifiedMike Bayer2006-01-033-51/+68
|
* column.label is now a function; fix byroot example, add 'default_label' ↵Mike Bayer2006-01-021-1/+1
| | | | accessor to columnimpl
* updates for assignmapper, inherit_condition not requiredMike Bayer2005-12-291-1/+1
|
* added 'deferred' keyword, allowing deferred loading of a particular columnMike Bayer2005-12-211-1/+1
|
* fixed tree examples import scheme, tweak to properties importMike Bayer2005-12-033-9/+4
|
* mysql engine comment..Mike Bayer2005-11-271-0/+1
|
* new calling style for sqlite engineMike Bayer2005-11-121-1/+1
|
* (no commit message)Mike Bayer2005-10-301-4/+4
|
* (no commit message)Mike Bayer2005-10-231-2/+2
|
* (no commit message)Mike Bayer2005-10-231-4/+4
|