summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/declarative.py
Commit message (Collapse)AuthorAgeFilesLines
...
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-0/+4
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - factored out the logic used by Join to create its join conditionMike Bayer2008-05-021-1/+8
| | | | | | | - With declarative, joined table inheritance mappers use a slightly relaxed function to create the "inherit condition" to the parent table, so that other foreign keys to not-yet-declared Table objects don't trigger an error.
* more declarative doc updatesMike Bayer2008-04-281-12/+28
|
* fix docs for declarativeMike Bayer2008-04-271-3/+12
|
* - Assorted flakes.Jason Kirtland2008-04-021-2/+2
|
* - Added PendingDeprecationWarning supportJason Kirtland2008-03-291-3/+2
| | | | - Deprecation decorator is now a real decorator
* - declarative_base() takes optional kwarg "mapper", whichMike Bayer2008-03-291-5/+12
| | | | | | | is any callable/class/method that produces a mapper, such as declarative_base(mapper=scopedsession.mapper). This property can also be set on individual declarative classes using the "__mapper_cls__" property.
* added nicer error message to dependent class not foundMike Bayer2008-03-221-2/+5
|
* - inheritance in declarative can be disabled when sendingMike Bayer2008-03-221-4/+6
| | | | "inherits=None" to __mapper_args__.
* typoGaëtan de Menten2008-03-191-1/+1
|
* - added support for declarative deferred(Column(...))Mike Bayer2008-03-181-9/+14
| | | | - changed "instrument" argument on synonym() to "descriptor", for consistency with comparable_proeprty()
* - reST fixesJason Kirtland2008-03-181-2/+2
|
* - Start coverage for Class.prop = Column(), promote nameless ColumnsJason Kirtland2008-03-181-74/+92
|
* - Declarative will complete setup for Columns lacking names, allowsJason Kirtland2008-03-181-4/+12
| | | | | | | | a more DRY syntax. class Foo(Base): __tablename__ = 'foos' id = Column(Integer, primary_key=True)
* - Declarative gains @synonym_for and @comparable_using decoratorsJason Kirtland2008-03-171-3/+47
|
* Issue a warning when a declarative detects a likely trailing comma: foo = ↵Jason Kirtland2008-03-151-0/+6
| | | | Column(foo),
* - the "synonym" function is now directly usable withMike Bayer2008-03-151-28/+12
| | | | | | | "declarative". Pass in the decorated property using the "instrument" keyword argument, e.g.: somekey = synonym('_somekey', instrument=property(g, s)) - declared_synonym deprecated
* eh, that __autoload_with__ idea was half baked.Jason Kirtland2008-03-101-3/+1
|
* - Added __autoload__ = True for declarativeJason Kirtland2008-03-101-1/+11
| | | | - declarative Base.__init__ is pickier about its kwargs
* removed the "__main__" code from belowMike Bayer2008-03-101-82/+0
|
* - a new super-small "declarative" extension has been added,Mike Bayer2008-03-101-0/+321
which allows Table and mapper() configuration to take place inline underneath a class declaration. This extension differs from ActiveMapper and Elixir in that it does not redefine any SQLAlchemy semantics at all; literal Column, Table and relation() constructs are used to define the class behavior and table definition.