summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* added missing **kwargsMike Bayer2008-08-081-1/+1
|
* even better...Mike Bayer2008-08-081-1/+2
|
* - Fixed @on_reconsitute hook for subclassesMike Bayer2008-08-084-4/+31
| | | | | which inherit from a base class. [ticket:1129]
* - Improved the determination of the FROM clauseMike Bayer2008-08-064-4/+49
| | | | | | | when placing SQL expressions in the query() list of entities. In particular scalar subqueries should not "leak" their inner FROM objects out into the enclosing query.
* - Temporarily rolled back the "ORDER BY" enhancementMike Bayer2008-08-0611-68/+14
| | | | | from [ticket:1068]. This feature is on hold pending further development.
* - The RowTuple object returned by Query(*cols) nowMike Bayer2008-08-056-3/+45
| | | | | | | | | | | features keynames which prefer mapped attribute names over column keys, column keys over column names, i.e. Query(Class.foo, Class.bar) will have names "foo" and "bar" even if those are not the names of the underlying Column objects. Direct Column objects such as Query(table.c.col) will return the "key" attribute of the Column.
* slightly more user-friendly repr method for CascadeOptionsGaëtan de Menten2008-08-051-1/+1
|
* Corrected problem in docstring.rel_0_5beta3Michael Trier2008-08-041-0/+7
|
* - fixed endless loop bug which could occurMike Bayer2008-08-049-26/+120
| | | | | | | | | | | | within a mapper's deferred load of inherited attributes. - declarative initialization of Columns adjusted so that non-renamed columns initialize in the same way as a non declarative mapper. This allows an inheriting mapper to set up its same-named "id" columns in particular such that the parent "id" column is favored over the child column, reducing database round trips when this value is requested.
* TypoLele Gaifax2008-08-041-1/+1
|
* some doc stuffMike Bayer2008-08-044-9/+47
|
* removed redundant check to _enable_transaction_accountingMike Bayer2008-08-031-3/+2
|
* - compiler visit_label() checks a flag "within_order_by" and will render its ↵Mike Bayer2008-08-0313-20/+124
| | | | | | | | | | | | | | | | | | | own name and not its contained expression, if the dialect reports true for supports_simple_order_by_label. the flag is not propagated forwards, meant to closely mimic the syntax Postgres expects which is that only a simple name can be in the ORDER BY, not a more complex expression or function call with the label name embedded (mysql and sqlite support more complex expressions). This further sets the standard for propigation of **kwargs within compiler, that we can't just send **kwargs along blindly to each XXX.process() call; whenever a **kwarg needs to propagate through, most methods will have to be aware of it and know when they should send it on forward and when not. This was actually already the case with result_map as well. The supports_simple_order_by dialect flag defaults to True but is conservatively explicitly set to False on all dialects except SQLite/MySQL/Postgres to start. [ticket:1068]
* descriptive error message raised when string-based relation() expressions ↵Mike Bayer2008-08-032-2/+12
| | | | inadvertently mistake a PropertyLoader for a ColumnLoader property
* - renamed autoexpire to expire_on_commitMike Bayer2008-08-037-38/+135
| | | | | - renamed SessionTransaction autoflush to reentrant_flush to more clearly state its purpose - added _enable_transaction_accounting, flag for Mike Bernson which disables the whole 0.5 transaction state management; the system depends on expiry on rollback in order to function.
* a correction to the recent should_exclude change. should_exclude is a ↵Mike Bayer2008-08-031-2/+4
| | | | | | | | little mixed up as to when it honors "column_prefix" and when it doesn't, depending on whether or not the prop is coming from a column name or from an inherited class. Will need more testing to uncover potential issues here.
* - The "entity_name" feature of SQLAlchemy mappersMike Bayer2008-08-0226-588/+162
| | | | | has been removed. For rationale, see http://groups.google.com/group/sqlalchemy/browse_thread/thread/9e23a0641a88b96d?hl=en
* - Refactored declarative_base() as a thin wrapper over type()Jason Kirtland2008-08-021-27/+54
| | | | | | - The supplied __init__ is now optional - The name of the generated class can be specified - Accepts multiple bases
* - declarative.declarative_base():Jason Kirtland2008-08-022-6/+40
| | | | | | takes a 'metaclass' arg, defaulting to DeclarativeMeta renamed 'engine' arg to 'bind', backward compat documented
* make ProxyImpl a top-level class (this makes it importable by FormAlchemy, ↵Jonathan Ellis2008-08-011-7/+7
| | | | making reverse-engineering synonyms a bit easier)
* further refinement to the inheritance "descriptor" detection such thatMike Bayer2008-08-012-33/+56
| | | | local columns will still override superclass descriptors.
* test case to disprove [ticket:1126]Mike Bayer2008-08-011-0/+34
|
* added MutableType, Concatenable to __all__Mike Bayer2008-07-311-1/+1
|
* - Fixed bug whereby the "unsaved, pending instance"Mike Bayer2008-07-313-3/+45
| | | | | | FlushError raised for a pending orphan would not take superclass mappers into account when generating the list of relations responsible for the error.
* relation.order_by requires _literal_as_column conversion as wellMike Bayer2008-07-295-5/+40
|
* typoGaëtan de Menten2008-07-291-1/+1
|
* Corrects reflecttable in firebird database. Closes #1119.Michael Trier2008-07-291-1/+1
|
* Raised an error when sqlite version does not support default values. ↵Michael Trier2008-07-295-12/+19
| | | | Addresses #909 in a purposeful way.
* added dummy column to correct results on sqliteMike Bayer2008-07-261-1/+2
|
* - func.count() with no argument emits COUNT(*)Jason Kirtland2008-07-243-2/+25
|
* Corrected problem with detecting closed connections. Fixed issues in ↵Michael Trier2008-07-232-4/+9
| | | | reflecttable for reflecting the mssql tables. Removed unicode reflection test from mssql. Need to investigate this further.
* allow SQLA-defaults on table columns that are excluded in the mapperMike Bayer2008-07-222-2/+20
|
* - more accurate changelog messageMike Bayer2008-07-203-8/+35
| | | | - generalized the descriptor detection to any object with a __get__ attribute
* - An inheriting class can now override an attributeMike Bayer2008-07-206-15/+79
| | | | | | inherited from the base class with a plain descriptor, or exclude an inherited attribute via the include_properties/exclude_properties collections.
* - A critical fix to dynamic relations allows theMike Bayer2008-07-193-27/+49
| | | | | "modified" history to be properly cleared after a flush().
* - Some improvements to the _CompileOnAttr mechanism whichMike Bayer2008-07-193-6/+21
| | | | | | should reduce the probability of "Attribute x was not replaced during compile" warnings. (this generally applies to SQLA hackers, like Elixir devs).
* - Class-bound attributes sent as arguments toMike Bayer2008-07-193-4/+35
| | | | | relation()'s remote_side and foreign_keys parameters are now accepted, allowing them to be used with declarative.
* - reverted r4955, that was wrong. The backref responsible for the operation ↵Mike Bayer2008-07-196-59/+54
| | | | | | | is the one where the "cascade" option should take effect. - can use None as a value for cascade. - documented cascade options in docstring, [ticket:1064]
* Corrected a couple of lingering transactional=True statements in the docs.Michael Trier2008-07-193-3/+3
|
* zoomarks have gone up as a result of r4936, possibly others. not clear whyMike Bayer2008-07-182-5/+5
|
* - save-update and delete-orphan cascade event handlerMike Bayer2008-07-184-10/+110
| | | | | | now considers the cascade rules of the event initiator only, not the local attribute. This way the cascade of the initiator controls the behavior regardless of backref events.
* - Fixed a series of potential race conditions inMike Bayer2008-07-183-3/+95
| | | | | | | Session whereby asynchronous GC could remove unmodified, no longer referenced items from the session as they were present in a list of items to be processed, typically during session.expunge_all() and dependent methods.
* - MapperProperty gets its .key attribute assigned early, in _compile_property.Mike Bayer2008-07-164-13/+34
| | | | | | | | | | | | | MapperProperty compilation is detected using a "_compiled" flag. - A mapper which inherits from another, when inheriting the columns of its inherited mapper, will use any reassigned property names specified in that inheriting mapper. Previously, if "Base" had reassigned "base_id" to the name "id", "SubBase(Base)" would still get an attribute called "base_id". This could be worked around by explicitly stating the column in each submapper as well but this is fairly unworkable and also impossible when using declarative [ticket:1111].
* added a new test illustrating a particular inheritance bug. will add ticketMike Bayer2008-07-161-5/+133
|
* - mysql.MSEnum value literals now automatically quoted when used in a CREATE.Jason Kirtland2008-07-164-36/+102
| | | | | The change is backward compatible. Slight expansion of patch from catlee. Thanks! [ticket:1110]
* - Spiffed up the deprecated decorators & @flipped 'em up topJason Kirtland2008-07-168-27/+32
|
* Removed deprecated get_version_info, use server_version_infoJason Kirtland2008-07-161-13/+0
|
* - Overhauled _generative and starargs decorators and flipped to 2.4 @syntaxJason Kirtland2008-07-163-127/+177
|
* - Fixed some over-long ReST lines & general formatting touchupsJason Kirtland2008-07-151-212/+211
|
* Completed engine_descriptors() removal (started in r4900)Jason Kirtland2008-07-151-20/+19
|