summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext
Commit message (Collapse)AuthorAgeFilesLines
* Add some `Sphinx` paragraph level versions informations markups,Mike Bayer2012-06-082-14/+25
| | | | such as ``.. versionadded::``, ``.. versionchanged::`` and ``.. deprecated::``.
* copyrightMike Bayer2012-05-058-8/+8
|
* fix .. note::/ ..warning:: directives which no longer consistentlyMike Bayer2011-12-252-2/+6
| | | | support inline formatting in docutils 0.8
* - mapper() will ignore non-configured foreign keysMike Bayer2011-05-071-8/+0
| | | | | | | to unrelated tables when determining inherit condition between parent and child class. This is equivalent to behavior already applied to declarative. [ticket:2153]
* - The horizontal_shard ShardedSession class accepts the commonMike Bayer2011-03-161-51/+50
| | | | | | | | Session argument "query_cls" as a constructor argument, to enable further subclassing of ShardedQuery. [ticket:2090] - The Beaker caching example allows a "query_cls" argument to the query_callable() function. [ticket:2090]
* - Arguments in __mapper_args__ that aren't "hashable"Mike Bayer2011-03-141-3/+5
| | | | | aren't mistaken for always-hashable, possibly-column arguments. [ticket:2091]
* - Fix error message referencing old @classpropertyMike Bayer2011-02-191-2/+2
| | | | name to reference @declared_attr [ticket:2061]
* - Added an explicit check for the case that the nameMike Bayer2011-02-121-14/+20
| | | | | 'metadata' is used for a column attribute on a declarative class. [ticket:2050]
* - sorry, I really don't want metaclass recipes in the main documentation. ↵Mike Bayer2011-01-041-74/+0
| | | | | | | Don't want people using them, thinking they're needed in the general case, confused, etc. The two sections here are moved to the wiki for now.
* -whitespace removal bonanzaMike Bayer2011-01-027-180/+180
|
* - clean up copyright, update for 2011, stamp every file withMike Bayer2011-01-028-2/+43
| | | | | a consistent tag - AUTHORS file
* this is newMike Bayer2010-11-241-0/+2
|
* - SqlSoup overhaulMike Bayer2010-11-241-133/+359
| | | | | | | | | | | | | - Added "map_to()" method to SqlSoup, which is a "master" method which accepts explicit arguments for each aspect of the selectable and mapping, including a base class per mapping. [ticket:1975] - Mapped selectables used with the map(), with_labels(), join() methods no longer put the given argument into the internal "cache" dictionary. Particularly since the join() and select() objects are created in the method itself this was pretty much a pure memory leaking behavior.
* - An error is raised if __table_args__ is not in tupleMike Bayer2010-11-171-0/+4
| | | | or dict format, and is not None. [ticket:1972]
* - A mixin can now specify a column that overridesMike Bayer2010-10-211-1/+1
| | | | | a column of the same name associated with a superclass. Thanks to Oystein Haaland.
* editMike Bayer2010-10-171-2/+3
|
* warn when two classes with the same name end up in the declarative registryChris Withers2010-10-061-0/+7
|
* document creating indexes for columns in mixinsChris Withers2010-10-041-0/+75
|
* - add additional logic that duplicates mapper's prop.copy(); ↵Mike Bayer2010-10-011-5/+20
| | | | | | | | | prop.columns.append(col) logic when columns are present in a joined subclass with an attribute name different than the column name itself [ticket:1931] - add coverage to verify that we need to check (obj.name or name) when deciding if a Column from a mixin should be added to the mapped table
* - Fixed bug whereby columns on a mixin wouldn't propagateMike Bayer2010-09-281-3/+6
| | | | | | | correctly to a single-table inheritance scheme where the attribute name is different than that of the column. [ticket:1930]. Note [ticket:1931] which is the same issue for joined inh, not yet resolved.
* @mapperproperty -> @declared_attrMike Bayer2010-09-271-31/+31
|
* - @classproperty 's official name/location for usageMike Bayer2010-09-251-36/+85
| | | | | | | with declarative is sqlalchemy.ext.declarative.mapperproperty. Same thing, but moving there since it is more of a "marker" that's specific to declararative, not just an attribute technique. [ticket:1915]
* make less ficticious ;-)Chris Withers2010-09-241-2/+2
|
* - @classproperty (soon/now @mapperproperty) takes effect forMike Bayer2010-09-201-43/+55
| | | | | | __mapper_args__, __table_args__, __tablename__ on a base class that is not a mixin, as well as mixins. [ticket:1922]
* - fix test_single test to use default dialectMike Bayer2010-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | - The exception raised by Session when it is used subsequent to a subtransaction rollback (which is what happens when a flush fails in autocommit=False mode) has now been reworded (this is the "inactive due to a rollback in a subtransaction" message). In particular, if the rollback was due to an exception during flush(), the message states this is the case, and reiterates the string form of the original exception that occurred during flush. If the session is closed due to explicit usage of subtransactions (not very common), the message just states this is the case. - The exception raised by Mapper when repeated requests to its initialization are made after initialization already failed no longer assumes the "hasattr" case, since there's other scenarios in which this message gets emitted, and the message also does not compound onto itself multiple times - you get the same message for each attempt at usage. The misnomer "compiles" is being traded out for "initialize".
* almost through.Mike Bayer2010-09-042-1/+11
|
* continued...Mike Bayer2010-09-041-0/+2
|
* - a large hill to climb. Added declarative examples to all theMike Bayer2010-08-301-1/+2
| | | | | | | | | | | | | | "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 ?!
* - put a link to the wiki table config exampleMike Bayer2010-08-271-1/+3
|
* - Another pass through the series of error messagesMike Bayer2010-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | emitted when relationship() is configured with ambiguous arguments. The "foreign_keys" setting is no longer mentioned, as it is almost never needed and it is preferable users set up correct ForeignKey metadata, which is now the recommendation. If 'foreign_keys' is used and is incorrect, the message suggests the attribute is probably unnecessary. Docs for the attribute are beefed up. This because all confused relationship() users on the ML appear to be attempting to use foreign_keys due to the message, which only confuses them further since Table metadata is much clearer. - If the "secondary" table has no ForeignKey metadata and no foreign_keys is set, even though the user is passing screwed up information, it is assumed that primary/secondaryjoin expressions should consider only and all cols in "secondary" to be foreign. It's not possible with "secondary" for the foreign keys to be elsewhere in any case. A warning is now emitted instead of an error, and the mapping succeeds. [ticket:1877] - fixed incorrect "Alternate Collection Mappings" reference in the docs, not sure if someone wants to reference "Rows that Point to Themselves" function - "Collection Mapping" is "Advanced Collection Mapping", this section is troublesome since nobody really needs it but it is public API
* - dont like this noteMike Bayer2010-08-031-15/+15
| | | | | - rewrite this section, also don't talk about extensions anymore since they will be replaced
* fixes, clarifications, removal of misleading statementsMike Bayer2010-08-031-38/+44
|
* - dont like that example, its too much for a section that otherwise isn't soMike Bayer2010-08-031-116/+31
| | | | in depth
* - add an example of declarative with hybrid, including why thisMike Bayer2010-08-021-0/+115
| | | | | is a different use case (i.e. formalized apps vs. quickstart). - solidified docstrings for ForeignKey
* - Fixed bug where "Can't add additional column" messageMike Bayer2010-08-021-1/+2
| | | | would display the wrong name.
* - if @classproperty is used with a regular class-boundMike Bayer2010-08-021-16/+81
| | | | | | | | | | | | | | mapper property attribute, it will be called to get the actual attribute value during initialization. Currently, there's no advantage to using @classproperty on a column or relationship attribute of a declarative class that isn't a mixin - evaluation is at the same time as if @classproperty weren't used. But here we at least allow it to function as expected. - docs for column_property() with declarative - mixin docs in declarative made more clear - mixins are optional - each subsection starts with, "in *declarative mixins*", to reduce confusion
* - worked through about 25% of mappers.rst to implementMike Bayer2010-08-011-0/+2
| | | | | up to date and clear explanations of things, including as much context and description as possible
* - pull out type() ahead of time to cut down on fn calls.Mike Bayer2010-07-131-2/+3
| | | | | | Would replace this with set(dir(self)) but not sure if some class schemes may have issues with dir() (also for low numbers of args, not using the set() probably faster).
* - doc fixes regarding __tablename__ mixinMike Bayer2010-07-101-58/+78
| | | | - 78 chars
* transfer docstrings from @classproperty to propsMike Bayer2010-07-041-1/+5
|
* - Added support for @classproperty to provideMike Bayer2010-07-031-56/+220
| | | | | | | | | | | | any kind of schema/mapping construct from a declarative mixin, including columns with foreign keys, relationships, column_property, deferred. This solves all such issues on declarative mixins. An error is raised if any MapperProperty subclass is specified on a mixin without using @classproperty. [ticket:1751] [ticket:1796] [ticket:1805] - un-anglicized the declarative docs
* - The 'default' compiler is automatically copied overMike Bayer2010-07-021-1/+6
| | | | | | | | when overriding the compilation of a built in clause construct, so no KeyError is raised if the user-defined compiler is specific to certain backends and compilation for a different backend is invoked. [ticket:1838]
* keep ordering of columns with mixins constantChris Withers2010-07-021-1/+2
|
* - a mixin class can now define a column that matchesMike Bayer2010-06-191-2/+4
| | | | | | | one which is present on a __table__ defined on a subclass. It cannot, however, define one that is not present in the __table__, and the error message here now works. [ticket:1821]
* - the SqlSoup constructor accepts a `base` argument which specifiesMike Bayer2010-05-081-5/+8
| | | | | the base class to use for mapped classes, the default being `object`. [ticket:1783]
* docs for new mixin class control abilitiesChris Withers2010-04-131-0/+96
|
* helper method for spotting inherited tablesChris Withers2010-04-131-1/+10
|
* I think I'm about to have a When Harry Met Sally momentChris Withers2010-04-131-6/+15
|
* close, but still no cigarChris Withers2010-04-131-24/+23
|
* remove tortologyChris Withers2010-04-131-2/+2
|