Mike Bayer
1e6a2096e3
- Adjusted dictlike-polymorphic.py example
...
to apply the CAST such that it works on
PG, other databases. [ticket:2266]
2011-09-26 17:22:52 -04:00
Mike Bayer
c9ebe3b723
- rename hybrid.property_, hybrid.method to hybrid_property, hybrid_method. more typing
...
on the import but this is just clearer.
- adapt dictlike-polymorphic.py to use hybrid.
2011-01-12 15:35:20 -05:00
Mike Bayer
350aed3fdb
- whitespace removal bonanza
2011-01-02 14:23:42 -05:00
Mike Bayer
bfc0977063
- remove remaining create_session() calls from examples, replace with Session
...
- replace all flush()/expunge_all() with commit()
2010-10-24 12:42:47 -04:00
Mike Bayer
065fcbd9d2
- The official name for the relation() function is now
...
relationship(), to eliminate confusion over the relational
algebra term. relation() however will remain available
in equal capacity for the foreseeable future. [ticket:1740]
2010-03-17 17:48:29 -04:00
Mike Bayer
40f8aadd58
- mega example cleanup
...
- added READMEs to all examples in each __init__.py and added to sphinx documentation
- added versioning example
- removed vertical/vertical.py, the dictlikes are more straightforward
2010-01-19 00:53:12 +00:00
Michael Trier
34aaabf7ea
Added in Examples into the test suite so they get exercised regularly. Cleaned up some deprecation warnings in the examples.
2009-07-27 02:12:15 +00:00
Michael Trier
6010afb28f
Lots of fixes to the code examples to specify imports explicitly.
...
Explicit imports make it easier for users to understand the examples.
Additionally a lot of the examples were fixed to work with the changes in the
0.5.x code base. One small correction to the Case expression. Thanks a bunch
to Adam Lowry! Fixes #717 .
2009-03-31 22:31:08 +00:00
Mike Bayer
8755dc3d66
- fixed up vertical.py
...
- Fixed query.join() when used in conjunction with a
columns-only clause and an SQL-expression
ON clause in the join.
2008-06-28 15:23:08 +00:00
Jason Kirtland
c37ed5cbb3
- Added comparable_property(), adds query Comparator behavior to regular, unmanaged Python properties
...
- Some aspects of MapperProperty initialization are streteched pretty thin now
and need a refactor; will proceed with these on the user_defined_state branch
2008-03-17 22:06:49 +00:00
Jason Kirtland
adc929c0f1
- Added two new vertical dict mapping examples.
2008-02-12 01:44:20 +00:00
Mike Bayer
9629838f7d
- fixed wrong varname in session exception throw
...
- fixed vertical example to just use a scoped session
2007-12-05 20:55:33 +00:00
Mike Bayer
ed4fc64bb0
merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to maintenance branch in branches/rel_0_3.
2007-07-27 04:08:53 +00:00
Jason Kirtland
177d30cc01
- Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData instead
...
- Deprecated BoundMetaData- use MetaData instead
- Removed DMD and BMD from documentation
2007-07-06 00:58:09 +00:00
Mike Bayer
bee542f9f7
added proper cascade for deletes
2007-06-30 01:16:39 +00:00
Mike Bayer
695f65db85
- added an assertion within the "cascade" step of ORM relationships to check
...
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
2006-11-03 01:17:28 +00:00
Mike Bayer
431149d542
tweak for Table.create() not having a return value
2006-10-21 22:38:40 +00:00
Mike Bayer
6f1eb443a3
- "custom list classes" is now implemented via the "collection_class"
...
keyword argument to relation(). the old way still works but is
deprecated [ticket:212]
2006-10-03 23:38:48 +00:00
Mike Bayer
8005c15159
late compilation of mappers. now you can create mappers in any order, and 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.
2006-06-08 16:58:14 +00:00
Mike Bayer
bb79e2e871
merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1
2006-05-25 14:20:23 +00:00
Mike Bayer
69246aec95
a cool example that illustrates vertical table storage, and objects that automatically configure themselves for this type of storage
2006-03-26 06:30:21 +00:00