Commit Graph

7527 Commits

Author SHA1 Message Date
Mike Bayer 7790425a99 - add full docs for like()/ilike() 2013-01-28 13:58:01 -05:00
Mike Bayer b3cf6c44e1 add any/all to __all__ 2013-01-28 13:57:48 -05:00
Mike Bayer 1c82e1cff7 - documentation for any()/all() 2013-01-28 13:49:18 -05:00
Audrius Kažukauskas dbdf4f25e2 Add ANY/ALL construct support for PostgreSQL's ARRAY type 2013-01-28 19:58:06 +02:00
Mike Bayer 684d8d4c81 - use SQL constructs here for databases that need to escape names like "data" 2013-01-27 17:15:25 -05:00
Mike Bayer e26b28224d Fixed bug where :meth:.Table.tometadata would fail if a
:class:`.Column` had both a foreign key as well as an
alternate ".key" name for the column.   Also in 0.7.10.
[ticket:2643]
2013-01-27 11:23:59 -05:00
Taavi Burns 8ca42e38b3 Fixing a code block in the PostgreSQL base dialect docstring. 2013-01-25 22:48:34 -05:00
Mike Bayer 2cf83604c6 #2629
insert().returning() raises an informative CompileError if attempted
to compile on a dialect that doesn't support RETURNING.
2013-01-25 12:57:59 -05:00
Mike Bayer a477f8a61e the consideration of a pending object as
an "orphan" has been modified to more closely match the
behavior as that of persistent objects, which is that the object
is expunged from the :class:`.Session` as soon as it is
de-associated from any of its orphan-enabled parents.  Previously,
the pending object would be expunged only if de-associated
from all of its orphan-enabled parents.  The new flag ``legacy_is_orphan``
is added to :func:`.orm.mapper` which re-establishes the
legacy behavior. [ticket:2655]
2013-01-24 21:31:23 -05:00
Mike Bayer b1df6fab53 Fixed the (most likely never used) "@collection.link" collection
method, which fires off each time the collection is associated
or de-associated with a mapped object - the decorator
was not tested or functional.  The decorator method
is now named :meth:`.collection.linker` though the name "link"
remains for backwards compatibility.  Courtesy Luca Wehrstedt.
[ticket:2653]
2013-01-21 18:17:10 -05:00
Mike Bayer d455a4196d Merged in lerks/sqlalchemy (pull request #36)
Fix the collection.link decorator
2013-01-21 17:59:14 -05:00
Mike Bayer 2c425c9680 - Made some fixes to the system of producing custom instrumented
collections, mainly that the usage of the @collection decorators
will now honor the __mro__ of the given class, applying the
logic of the sub-most classes' version of a particular collection
method.   Previously, it wasn't predictable when subclassing
an existing instrumented class such as :class:`.MappedCollection`
whether or not custom methods would resolve correctly.
[ticket:2654]

- The undocumented (and hopefully unused) system of producing
custom collections using an ``__instrumentation__`` datastructure
associated with the collection has been removed, as this was a complex
and untested feature which was also essentially redundant versus the
decorator approach.   Other internal simplifcations to the
orm.collections module have been made as well.
2013-01-21 17:57:24 -05:00
Mike Bayer 5af97bee84 clean all pep8 warnings 2013-01-21 16:16:57 -05:00
Mike Bayer b1a01a6256 - replace mssql_ordering with generalized #695 solution
- documentation for mssql index options plus changelog and fixes
2013-01-20 12:43:39 -05:00
Mike Bayer bc75bbd62d Merged in dharland/sqlalchemy (pull request #35)
Add extra mssql dialect options to Index
2013-01-20 12:23:39 -05:00
Taavi Burns cfb037cfb1 Removes an errant space character that caused a newline break in the sphinx output. 2013-01-17 17:31:07 -05:00
Mike Bayer 6e8395c842 fix incorrect quoting in mysql indexes 2013-01-17 10:19:54 -05:00
Mike Bayer 44576792ab - fix a format issue in the create index 2013-01-17 10:13:08 -05:00
Audrius Kažukauskas df7075ca04 MutableDict.__delitem__ should require only 'key' argument 2013-01-17 12:35:51 +02:00
Mike Bayer 2244c3febe - "postgres_where" has been removed 2013-01-16 23:53:00 -05:00
Mike Bayer 7fedf99586 :class:.Index now supports arbitrary SQL expressions and/or
functions, in addition to straight columns.   Common modifiers
include using ``somecolumn.desc()`` for a descending index and
``func.lower(somecolumn)`` for a case-insensitive index, depending on the
capabilities of the target backend.
[ticket:695]
2013-01-16 21:04:32 -05:00
Mike Bayer 8700264340 - preparing for #695, modernize constraint/index tests 2013-01-16 20:10:55 -05:00
Luca Wehrstedt 2e627a62ea Fix the collection.link decorator 2013-01-16 16:26:15 +01:00
Derek Harland f5a5a6bf43 Add mssql_include option for mssql dialect 2013-01-14 17:03:38 +13:00
Derek Harland 38f7650072 Add mssql_ordering option for mssql dialect 2013-01-14 17:02:20 +13:00
Derek Harland 7198abb13e Add mssql_clustered option for mssql dialect 2013-01-14 17:00:37 +13:00
Mike Bayer 46a9209cde Added a py3K conditional around unnecessary .decode()
call in mssql information schema, fixes reflection
in Py3K. Also in 0.7.10. [ticket:2638]
2013-01-12 19:51:13 -05:00
Mike Bayer 84260339dd remove all specifics from the "supported features" section as this
is not maintainable
2013-01-12 17:43:12 -05:00
Mike Bayer e6f29c7394 - update some profiling stats due to the #2650 change 2013-01-12 17:36:07 -05:00
Mike Bayer 576224edd0 - add workaround for sqlite memusage tests, so no longer need to count to 220/skip tests
- Fixed potential memory leak which could occur if an
arbitrary number of :class:`.sessionmaker` objects
were created.   The anonymous subclass created by
the sessionmaker, when dereferenced, would not be garbage
collected due to remaining class-level references from the
event package.  This issue also applies to any custom system
that made use of ad-hoc subclasses in conjunction with
an event dispatcher.  Also in 0.7.10. [ticket:2650]
2013-01-12 17:21:35 -05:00
Mike Bayer 56b1f4c884 - changelog for pullreq 32
- Fixed a regression whereby the "collation" parameter
of the character types CHAR, NCHAR, etc. stopped working,
as "collation" is now supported by the base string types.
The TEXT, NCHAR, CHAR, VARCHAR types within the
MSSQL dialect are now synonyms for the base types.
- move out the type rendering tests into DB-agnostic tests
and remove some of the old "create" statements.  tests here
are still very disorganized.
2013-01-12 12:14:15 -05:00
Mike Bayer 17c300eb07 Merged in dharland/sqlalchemy (pull request #32: Allow the MSSQL dialect to support identity columns that are not part of the primary key) 2013-01-12 11:43:36 -05:00
Mike Bayer 274fec2460 note the change needed to the beaker example also 2013-01-08 11:05:13 -05:00
Mike Bayer 7f3cefeba8 Fixed a regression in the examples/dogpile_caching example
which was due to the change in #2614.
2013-01-08 10:59:26 -05:00
Mike Bayer 06ddce3215 :meth:.Query.merge_result can now load rows from an outer join
where an entity may be ``None`` without throwing an error.
[ticket:2640]
2013-01-08 10:55:46 -05:00
Mike Bayer ac1ee45fcc Tweaked the "REQUIRED" symbol used by the compiler to identify
INSERT/UPDATE bound parameters that need to be passed, so that
it's more easily identifiable when writing custom bind-handling
code. [ticket:2648]
2013-01-08 10:04:55 -05:00
Mike Bayer 0755114f75 - remove the test against bindparam('x') for the bind/result SQL expressions
- apply a consistent approach to the "see if method X is implemented" conditionals
2013-01-02 11:37:20 -05:00
Mike Bayer a94f2f81af Fixed bug in :func:.postgresql.array construct whereby using it
inside of an :func:`.expression.insert` construct would produce an
error regarding a parameter issue in the ``self_group()`` method.
2013-01-02 11:26:37 -05:00
Diana Clarke 14528afd6f happy new year (see #2645) 2013-01-01 19:31:00 -05:00
Diana Clarke 24c238ac32 happy new year (see #2645) 2013-01-01 19:08:19 -05:00
Diana Clarke 5db55c999f happy new year (see #2645) 2013-01-01 13:46:21 -05:00
Taavi Burns 59f78fbcdc Removes garbage from the end of an example SQL query line. 2012-12-31 00:32:01 -05:00
Taavi Burns 3657f21224 Adjusts example code so it can be successfully pasted into a REPL. 2012-12-31 00:31:43 -05:00
Taavi Burns 9a8711c360 Fixes grammar in docstring. 2012-12-31 00:21:05 -05:00
Mike Bayer b30ef87d27 Extended the :doc:/core/inspection system so that all Python descriptors
associated with the ORM or its extensions can be retrieved.
This fulfills the common request of being able to inspect
all :class:`.QueryableAttribute` descriptors in addition to
extension types such as :class:`.hybrid_property` and
:class:`.AssociationProxy`.  See :attr:`.Mapper.all_orm_descriptors`.
2012-12-29 19:31:28 -05:00
Mike Bayer 559b83312c changelog for pullreq 33 2012-12-28 20:45:39 -05:00
Owen Nelson 16ab0d61ef Fixes issue where GAE error handling can cause AttributeError: 'NoneType' object has no attribute 'group' 2012-12-28 20:20:23 -05:00
Owen Nelson 989f11b4fc GAE dialect now supports the use of credentials 2012-12-28 20:18:20 -05:00
Diana Clarke 6691e1a022 fixing typos in the types docs (see #2639) 2012-12-23 18:15:12 -05:00
Diana Clarke 49ff85bfd8 typo in joined table inheritance docs see #2641 2012-12-23 16:13:59 -05:00