Commit Graph

2307 Commits

Author SHA1 Message Date
Mike Bayer ae000fb550 - added "alias" argument to contains_eager(). use it to specify the string name
or Alias instance of an alias used in the query for the eagerly loaded child items.
    easier to use than "decorator"
2007-02-20 01:04:07 +00:00
Mike Bayer 07c12d6738 - documented foreign_keys argument
- 0.3.5 markers
2007-02-19 04:46:08 +00:00
Mike Bayer 8cc35f6d65 - added support for py2.5 "with" statement with SessionTransaction [ticket:468] 2007-02-10 23:45:08 +00:00
Mike Bayer 7a429e2bb6 added types to genned docs 2007-01-31 00:48:38 +00:00
Mike Bayer 067261c2b5 clarification to detached state 2007-01-31 00:41:16 +00:00
Mike Bayer e6bd0c0f32 doc 2007-01-30 00:00:34 +00:00
Mike Bayer 9cab6b3cf0 updated docs for delete() 2007-01-29 23:50:50 +00:00
Mike Bayer 7a1a746d7a fixed "eager=True" 2007-01-28 22:53:07 +00:00
Jonathan Ellis 56f2c0dd98 pool_size was there already of course :-| 2007-01-25 21:50:23 +00:00
Jonathan Ellis 51a9d9d24a add pool_size to "list of all standard options" 2007-01-25 19:25:23 +00:00
Jonathan Ellis 4e9aaff50f note support for LIMIT in firebird and mssql 2007-01-24 00:13:45 +00:00
Mike Bayer 2f2f0a604f 0.3.4 2007-01-23 19:19:48 +00:00
Jonathan Ellis dd694c44f4 selectby -> select_by 2007-01-21 16:57:00 +00:00
Mike Bayer 99924c8645 docs: [ticket:345], [ticket:356], [ticket:48], [ticket:403], [ticket:394],
cleanup/completion of keyword arg documentation for create_engine(), mapper(), and
relation()
2007-01-21 00:09:25 +00:00
Mike Bayer 5f858e16b0 tweaks 2007-01-17 21:51:07 +00:00
Mike Bayer 614e5e31eb updates, verbiage 2007-01-17 21:44:54 +00:00
Mike Bayer 92a3da15b2 verbiage updates, this is a work-in-progress (WIP) 2007-01-16 03:29:26 +00:00
Mike Bayer ca92a81191 - added optional constructor to sql.ColumnCollection
- mapper sets its "primary_key" attribute to be the ultimately decided primary_key column collection post-compilation
- added compare() method to MapperProperty, defines a comparison operation of the columns represented by the property to some value
- all the above combines into today's controversial feature: saying query.select_by(somerelationname=someinstance) will create the join of the primary key columns represented by "somerelationname"'s mapper to the actual primary key in "someinstance".
- docs for the above
2007-01-15 21:54:16 +00:00
Mike Bayer 6584e033a9 [ticket:398] 2007-01-14 21:21:02 +00:00
Jonathan Ellis c691513dc8 brief mention of defer, undefer 2007-01-07 20:52:32 +00:00
Mike Bayer 3d10187bd3 - global "insure"->"ensure" change. in US english "insure" is actually
largely interchangeable with "ensure" (so says the dictionary), so I'm not
completely illiterate, but its definitely sub-optimal to "ensure" which is
non-ambiguous.
2007-01-01 00:10:37 +00:00
Mike Bayer f5b5696afd fixed the raise for mysql to re-raise the error 2006-12-15 07:43:42 +00:00
Mike Bayer 51ece86c13 - fixes to passive_deletes flag, lazy=None (noload) flag
- added example/docs for dealing with large collections
- added object_session() method to sqlalchemy namespace
2006-12-12 19:22:28 +00:00
Mike Bayer ae3f1bc240 added style for page control 2006-12-10 18:05:10 +00:00
Mike Bayer 013aa0ea23 moved page control links 2006-12-10 18:04:11 +00:00
Mike Bayer 203853eddc would help to have the files all checked in.... 2006-12-10 17:50:18 +00:00
Mike Bayer 0dff7f4ed2 removing references to 0.2 series from docs
upgrade version number to 0.3.2
2006-12-10 17:42:31 +00:00
Mike Bayer 9fa58e7c30 clarify docs for query.instances() [ticket:386] 2006-12-09 04:16:15 +00:00
Mike Bayer 3d45d2195b - identity map in Session is by default *no longer weak referencing*.
to have it be weak referencing, use create_session(weak_identity_map=True)
- some fixes to OrderedProperties
2006-12-09 01:08:25 +00:00
Mike Bayer 6d5786c1c2 docs/examples/unittests for remote_side 2006-12-08 20:50:48 +00:00
Mike Bayer 309c332f1f got a rudimentary one-page display going 2006-12-05 21:42:31 +00:00
Mike Bayer 34b3f9ba0d doc adjust for "dirty" list behavior 2006-12-05 18:21:27 +00:00
Mike Bayer cb8737e6f8 its that time 2006-11-13 00:42:54 +00:00
Mike Bayer 0c9d783b80 tweaks to get module functions links to work 2006-11-13 00:17:43 +00:00
Mike Bayer a81787851f edits 2006-11-13 00:03:38 +00:00
Mike Bayer 1f3ce258ec edits 2006-11-12 23:22:13 +00:00
Mike Bayer 4cbbf7725a - "delete-orphan" for a certain type can be set on more than one parent class;
the instance is an "orphan" only if its not attached to *any* of those parents
- better check for endless recursion in eagerloader.process_row
2006-11-10 00:46:57 +00:00
Mike Bayer 48a4d9a7eb create_args->connect_args 2006-11-08 02:22:24 +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
Jonathan Ellis fcedb47e90 link to SqlSoup docs on the wiki 2006-11-01 05:28:43 +00:00
Mike Bayer b7d1d6deab - SingletonConnectionPool must use the "threadlocal" pooling behavior
- the "delete" cascade will load in all child objects, if they were not
loaded already.  this can be turned off (i.e. the old behavior) by setting
passive_deletes=True on a relation().
2006-10-24 22:19:31 +00:00
Mike Bayer 6e565f7231 - some new Pool utility classes, updated docs
- "use_threadlocal" on Pool defaults to False (same as create_engine)
2006-10-24 21:32:13 +00:00
Mike Bayer 6f385aaf39 fixed the example, because my brain goes blank when i work on that page,
and fixed exceptions raised in sync.py
2006-10-23 23:04:55 +00:00
Mike Bayer 0c572b6e6b association mappings are now simpler, updated docs 2006-10-23 22:55:41 +00:00
Mike Bayer a4537015b6 "circular mapping" is out, SA figures that stuff out for you 2006-10-22 21:21:57 +00:00
Mike Bayer 7aa1c3461f docstring 2006-10-22 03:07:01 +00:00
Mike Bayer 49539ae4b8 . 2006-10-22 02:06:43 +00:00
Mike Bayer 015b86b148 more on non-threadsafeness 2006-10-22 02:05:14 +00:00
Mike Bayer 5db45df9cb docs about objects not being threadsafe 2006-10-22 01:44:11 +00:00
Mike Bayer bc240be3f8 - attributes module and test suite moves underneath 'orm' package
- 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]
2006-10-22 00:24:26 +00:00