Commits

Author Commit Message Labels Comments Date
Mike Bayer
- The Session class is now present in sqlalchemy.orm.*. We're moving away from the usage of create_session(), which has non-standard defaults, for those situations where a one-step Session constructor is desired. Most users should stick with sessionmaker() for general use, however.
Mike Bayer
- Oracle reflection of indexes has been tuned so that indexes which include some or all primary key columns, but not the same set of columns as that of the primary key, are reflected. Indexes which contain the identical columns as that of the primary key are skipped within reflection, as the index in that case is assumed to be the auto-generated primary key index. Previously, any index with PK columns present would be skipped. Thanks to Kent Bower for the patch. [ticket:1867] - Oracle now reflects the names of primary key constraints - also thanks to Kent Bower. [ticket:1868]
Mike Bayer
docstring for query.correlate, [ticket:1889]
Mike Bayer
- Added ROWID type to the Oracle dialect, for those cases where an explicit CAST might be needed. [ticket:1879]
Mike Bayer
- put a link to the wiki table config example
Mike Bayer
- An object that's been deleted now gets a flag 'deleted', which prohibits the object from being re-add()ed to the session, as previously the object would live in the identity map silently until its attributes were accessed. The make_transient() function now resets this flag along with the "key" flag. - make_transient() can be safely called on an already transient instance.
Mike Bayer
- remove repr() from exception assertion, so that py3k's different repr(type(str)) format passes
Mike Bayer
- replaced all self.__connection.is_valid with "safe" self._connection_is_valid. - Fixed bug in Connection whereby if a "disconnect" event occurred in the "initialize" phase of the first connection pool connect, an AttributeError would be raised when the Connection would attempt to invalidate the DBAPI connection. [ticket:1894] - Connection.invalidate() can be called more than once and subsequent calls do nothing.
Mike Bayer
merge changes from alternate branch
Mike Bayer
add a note
Mike Bayer
merge tip
Mike Bayer
some doc updates
Mike Bayer
- the history_meta versioning recipe sets "unique=False" when copying columns, so that the versioning table handles multiple rows with repeating values. [ticket:1887]
Mike Bayer
- Similarly, for relationship(), foreign_keys, remote_side, order_by - all column-based expressions are enforced - lists of strings are explicitly disallowed since this is a very common error
Mike Bayer
- object_session() raises the proper UnmappedInstanceError when presented with an unmapped instance. [ticket:1881]
Mike Bayer
- 79 chars for expression - fix typo in test
Mike Bayer
- Another pass through the series of error messages 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 mappi…
Mike Bayer
- Added basic math expression coercion for Numeric->Integer, so that resulting type is Numeric regardless of the direction of the expression.
Mike Bayer
- added much more verbiage about transactions and expire_all
Mike Bayer
spelling arg
Mike Bayer
- a warning is emitted in mapper() if the polymorphic_on column is not present either in direct or derived form in the mapped selectable or in the with_polymorphic selectable, instead of silently ignoring it. Look for this to become an exception in 0.7.
Mike Bayer
- Fixed the psycopg2 dialect to use its set_isolation_level() method instead of relying upon the base "SET SESSION ISOLATION" command, as psycopg2 resets the isolation level on each new transaction otherwise.
Mike Bayer
get slightly better about deprecations in docstrings, tho this is kind of an uphill climb
Mike Bayer
- modernizing examples
Mike Bayer
modernized the directed graph example
Mike Bayer
- add a check that prevents redundant AttributeImpls from being generated and discarded.
Mike Bayer
- some of the refinements from the sa_synonyms branch which will allow the hybrid extension to work, but doesn't re-implement synonym, comparable_property,concreteinheritedproperty - mapper.get_property() and _entity_descriptor use plain getattr() to get at descriptors in all cases, thereby placing more trust in the ultimate class-bound attribute to provide mapped properties
Mike Bayer
introductions
Mike Bayer
mark this as intermittent crashes on the buildbot - reason for failures not clear
Mike Bayer
- the _Label construct, i.e. the one that is produced whenever you say somecol.label(), now counts itself in its "proxy_set" unioned with that of it's contained column's proxy set, instead of directly returning that of the contained column. This allows column correspondence operations which depend on the identity of the _Labels themselves to return the correct result - fixes ORM bug [ticket:1852].
  1. Prev
  2. Next