Commit Graph

7548 Commits

Author SHA1 Message Date
Mike Bayer a0ef9edc19 - adding in requirements
- get test_naturalpks to be more generalized
2013-02-06 19:06:09 -05:00
Mike Bayer 47858b85ec - add support for pulling in an external requirements file
- start filling in default versions of remaining requirements that are still only in test/
2013-02-06 17:50:11 -05:00
Mike Bayer 4ad4e9fccb - cleanup HasSequence and move it to test_sequences 2013-02-06 16:36:35 -05:00
Mike Bayer 827b936bc0 - add an explicit test for sequences "optional" 2013-02-06 16:24:38 -05:00
Mike Bayer 2121c1690a - add an "empty_inserts" requirement target plus a suite test
- add suite tests for basic explicit Sequence support, result-row column access (tests that name_normalize is set correctly among many other things)
2013-02-06 15:49:32 -05:00
Mike Bayer 17790c9896 - revert mistaken checkin 2013-02-06 15:00:44 -05:00
Mike Bayer d21f4d8925 - need autoincrement here 2013-02-06 12:52:37 -05:00
Mike Bayer 89ddc328c5 changelog 2013-02-02 21:04:08 -05:00
Mike Bayer f4f3c56cd3 Fixed the consideration of the `between()` operator
so that it works correctly with the new relationship local/remote
system.
[ticket:1768]
2013-02-02 20:48:53 -05:00
Mike Bayer af44efe26e Fixed a bug regarding column annotations which in particular
could impact some usages of the new :func:`.orm.remote` and
:func:`.orm.local` annotation functions, where annotations
could be lost when the column were used in a subsequent
expression.
[ticket:2660]
2013-02-02 20:06:31 -05:00
Mike Bayer eea0ca9fb4 cleanup and pep8 2013-02-02 19:57:45 -05:00
Mike Bayer acb9ded7c8 more egregious long lines 2013-02-02 18:59:19 -05:00
Mike Bayer d7e4a85290 whack more long lines in very old docstrings 2013-02-02 18:54:54 -05:00
Mike Bayer db756a5911 formatting 2013-02-02 18:49:33 -05:00
Mike Bayer a6697a83e5 Added a conditional import to the `gaerdbms` dialect which attempts
to import rdbms_apiproxy vs. rdbms_googleapi to work
on both dev and production platforms.  Also now honors the
``instance`` attribute.  Courtesy Sean Lynch.
[ticket:2649]
2013-02-02 18:40:56 -05:00
Mike Bayer 681a0b1d67 changelog for 0.7 2013-02-02 17:00:54 -05:00
Mike Bayer 55f24aaf6e clean up ordering list docs, [ticket:2557] 2013-02-02 16:46:12 -05:00
Mike Bayer e3f71d92f4 fix markup 2013-02-02 16:20:30 -05:00
Mike Bayer cb19f227f3 The :meth:.ColumnOperators.in_ operator will now coerce
values of ``None`` to :func:`.null`.
[ticket:2496]
2013-02-02 16:17:58 -05:00
Mike Bayer da3d817f36 Added a new argument to :class:.Enum and its base
:class:`.SchemaType` ``inherit_schema``.  When set to ``True``,
the type will set its ``schema`` attribute of that of the
:class:`.Table` to which it is associated.  This also occurs
during a :meth:`.Table.tometadata` operation; the :class:`.SchemaType`
is now copied in all cases when :meth:`.Table.tometadata` happens,
and if ``inherit_schema=True``, the type will take on the new
schema name passed to the method.   The ``schema`` is important
when used with the Postgresql backend, as the type results in
a ``CREATE TYPE`` statement. [ticket:2657]
2013-02-01 20:47:02 -05:00
Mike Bayer 096a9cec14 version bump 2013-02-01 20:45:29 -05:00
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