Mike Bayer
e4d9679ccf
- Fixed the attribute shard example to check
...
for bind param callable correctly in 0.7
style.
2011-06-26 13:00:58 -04:00
Mike Bayer
3be8746527
add example usage for shard_id in context feature [ticket:2031]
2011-01-23 17:08:57 -05:00
Mike Bayer
350aed3fdb
- whitespace removal bonanza
2011-01-02 14:23:42 -05:00
Mike Bayer
1c67cf5caf
- gently push users towards entity name for simple cases
2010-12-07 23:11:47 -05:00
Mike Bayer
61840abbce
- NullPool is now used by default for SQLite file-
...
based databases. :memory: databases will continue
to select SingletonThreadPool by default.
[ticket:1921]
2010-11-28 12:00:01 -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
df1b86bc17
- Updated attribute_shard.py example to use a more robust
...
method of searching a Query for binary expressions which
compare columns against literal values.
2010-04-02 13:10:55 -04:00
Mike Bayer
51fd344737
- The sqlalchemy.orm.shard module now becomes an extension,
...
sqlalchemy.ext.horizontal_shard. The old import
works with a deprecation warning.
2010-03-28 13:12:38 -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
Mike Bayer
ed83a844bb
- Fixed a slight inaccuracy in the sharding example.
...
Comparing equivalence of columns in the ORM is best
accomplished using col1.shares_lineage(col2).
[ticket:1491]
2009-10-25 01:40:23 +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
b5ad47271e
Cleaned up the deprecation problems with the examples.
2009-04-13 03:23:19 +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
fc753a0647
- fixes to ShardedSession to work with deferred columns [ticket:771].
...
- user-defined shard_chooser() function must accept "clause=None"
argument; this is the ClauseElement passed to session.execute(statement)
and can be used to determine correct shard id (since execute() doesn't
take an instance)
2007-09-08 19:51:35 +00:00
Mike Bayer
820346549b
- modified SQL operator functions to be module-level operators, allowing
...
SQL expressions to be pickleable [ticket:735]
- small adjustment to mapper class.__init__ to allow for Py2.6 object.__init__()
behavior
2007-08-18 01:00:44 +00:00
Mike Bayer
b01c63280e
#725 add query arg to id_chooser()
2007-08-10 21:18:01 +00:00
Mike Bayer
d3971e8a3a
- added hooks for alternate session classes into sessionmaker
...
- moved shard example/unittest over to sessionmaker
2007-08-03 19:54:16 +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