summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* - docs for mutable events exampleMike Bayer2010-12-261-2/+28
|
* - add a new "on mapper configured" event - handy !Mike Bayer2010-12-252-28/+62
|
* - restore declarative support for "composite"Mike Bayer2010-12-232-0/+152
| | | | - add an example of mutable scalars with events
* - fix beaker caching example to use new ".callable" param on bindMike Bayer2010-12-221-9/+14
|
* - merge versioning example fix from 0.6Mike Bayer2010-12-202-12/+73
|
* - gently push users towards entity name for simple casesMike Bayer2010-12-071-3/+13
|
* new calling style: event.listen(target, identifier, fn)Mike Bayer2010-12-011-4/+4
|
* - NullPool is now used by default for SQLite file-Mike Bayer2010-11-281-2/+5
| | | | | | based databases. :memory: databases will continue to select SingletonThreadPool by default. [ticket:1921]
* - merge mapper simpler compile branch, [ticket:1966]Mike Bayer2010-11-261-1/+1
|\
| * [ticket:1966] implementationMike Bayer2010-11-151-1/+1
| |
* | - merge hybrid attributes branch, [ticket:1903]Mike Bayer2010-11-202-178/+0
|\ \
| * \ merge tipMike Bayer2010-11-1410-94/+97
| |\ \ | | |/
| * | merge tipMike Bayer2010-09-142-4/+21
| |\ \
| * \ \ merge latest tipMike Bayer2010-09-031-0/+8
| |\ \ \
| * \ \ \ merge tipMike Bayer2010-08-271-0/+8
| |\ \ \ \
| * \ \ \ \ merge from tipMike Bayer2010-08-242-2/+25
| |\ \ \ \ \
| * \ \ \ \ \ merge tipMike Bayer2010-08-149-179/+246
| |\ \ \ \ \ \
| * | | | | | | - add hybrid extensionMike Bayer2010-08-062-134/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - mapper begins to lose awareness of SynonynmProperty, ComparableProperty
* | | | | | | | - merge tipMike Bayer2010-11-066-52/+54
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | |
| * | | | | | | - remove remaining create_session() calls from examples, replace with SessionMike Bayer2010-10-246-52/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - replace all flush()/expunge_all() with commit()
* | | | | | | | - add instrumentation eventsMike Bayer2010-10-021-33/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - simplify listen_for_events example with new system - add "propagate", "retval", "raw" flags to attribute events. this solves the "return value" issue as well as the "subclass" issue. - begin thinking about event removal. Each listen() method will have a corresponding remove(). Custom listen() methods will have to package all the info onto the event function that is needed to remove its state.
* | | | | | | | merge tipMike Bayer2010-10-024-42/+43
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | - optimized_al doesn't need mapper extensionMike Bayer2010-09-244-42/+43
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | - convert to non-bound metadata, Session, session.commit()
* | | | | | | - reorganizationMike Bayer2010-09-141-1/+2
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - attrbutes.py splits into attribtes.py and instrumentation.py - all the various Event subclasses go into events.py modules - some ideas for orm events - move *Extension out to deprecated_interfaces
* | | | | | - the versioning example works correctly nowMike Bayer2010-09-052-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if versioning on a col that was formerly NULL.
* | | | | | - mapper _get_col_to_prop private method usedMike Bayer2010-09-051-2/+4
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by the versioning example is deprecated; now use mapper.get_property_by_column() which will remain the public method for this. - turned TODO in the history example into an assertion with a descriptive reason
* | | | | - a large hill to climb. Added declarative examples to all theMike Bayer2010-08-302-44/+98
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "basic relationship" examples, cleaned up the examples and added some more explicitness. Also renamed "treenodes" to "nodes" and added self-referential declarative example. - Added info/examples on how to join tables directly when querying with joined table inheritance. - Starting to talk about hybrids in the main mapper docs some more. introducoed the idea that synonyms are on their way out. - SQL expressions as mapped attributes also gets better verbiage, alternative approaches to them, including hybrids. - modernized the hybrid example. - object_session() as a standalone function wasn't documented ?!
* | | | add a noteMike Bayer2010-08-251-0/+8
| |_|/ |/| |
* | | - the history_meta versioning recipe sets "unique=False"Mike Bayer2010-08-232-2/+25
| |/ |/| | | | | | | | | when copying columns, so that the versioning table handles multiple rows with repeating values. [ticket:1887]
* | - modernizing examplesMike Bayer2010-08-089-147/+211
| |
* | modernized the directed graph exampleMike Bayer2010-08-081-49/+50
|/
* etcMike Bayer2010-07-211-3/+6
|
* this would help, rightMike Bayer2010-07-211-0/+256
|
* - The beaker_caching example has been reorgnizedMike Bayer2010-07-219-280/+52
| | | | | | | | such that the Session, cache manager, declarative_base are part of environment, and custom cache code is portable and now within "caching_query.py". This allows the example to be easier to "drop in" to existing projects.
* Python-tidy test/engine and test/aaa_profiling, 80% auto + 20% manual ↵Mike Bayer2010-07-111-1/+2
| | | | intervention
* typoChris Withers2010-07-081-1/+1
|
* - Updated attribute_shard.py example to use a more robustMike Bayer2010-04-021-32/+107
| | | | | method of searching a Query for binary expressions which compare columns against literal values.
* - The sqlalchemy.orm.shard module now becomes an extension,Mike Bayer2010-03-281-1/+1
| | | | | sqlalchemy.ext.horizontal_shard. The old import works with a deprecation warning.
* fix some examplesMike Bayer2010-03-283-5/+5
|
* - converted all lazy=True|False|None to 'select'|'joined'|'noload'Mike Bayer2010-03-248-17/+17
| | | | | - converted all eager to joined in examples - fixed beaker/advanced.py to reference RelationshipCache
* - The official name for the relation() function is nowMike Bayer2010-03-1723-81/+81
| | | | | | relationship(), to eliminate confusion over the relational algebra term. relation() however will remain available in equal capacity for the foreseeable future. [ticket:1740]
* Cleaned up some long lines to test the commit hooks.Michael Trier2010-03-071-25/+28
|
* try to clarify intent some moreMike Bayer2010-02-142-73/+66
|
* - Changed the beaker cache example a bit to have a separateMike Bayer2010-02-124-50/+91
| | | | | | | RelationCache option for lazyload caching. This object does a lookup among any number of potential attributes more efficiently by grouping several into a common structure. Both FromCache and RelationCache are simpler individually.
* use issubclass here, allows lazy loads from a subclass to hit a loader that ↵Mike Bayer2010-01-211-1/+1
| | | | was configured on base
* - mega example cleanupMike Bayer2010-01-1942-426/+817
| | | | | | - 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
* some cleanupMike Bayer2010-01-181-20/+33
|
* sorry, this example is just ridiculousMike Bayer2010-01-182-91/+0
|
* modernized "adjacencytree" exampleMike Bayer2010-01-183-129/+139
|
* updated the large_collection example to modern SQLA.Mike Bayer2010-01-184-95/+100
|