Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer bddf55fef6 - reflection of unique constraints backported to 0.8.4 [ticket:1443] 2013-12-03 15:01:34 -05:00
Mike Bayer 36e1aa0afd - The :class:.DeferredReflection class has been enhanced to provide
automatic reflection support for the "secondary" table referred
to by a :func:`.relationship`.   "secondary", when specified
either as a string table name, or as a :class:`.Table` object with
only a name and :class:`.MetaData` object will also be included
in the reflection process when :meth:`.DeferredReflection.prepare`
is called. [ticket:2865]
- clsregistry._resolver() now uses a stateful _class_resolver()
class in order to handle the work of mapping strings to
objects.   This is to provide for simpler extensibility, namely
a ._resolvers collection of ad-hoc name resolution functions;
the DeferredReflection class adds its own resolver here in order
to handle relationship(secondary) names which generate new
Table objects.
2013-12-03 13:46:41 -05:00
Mike Bayer 21feea9c1d - Added ORA-02396 "maximum idle time" error code to list of
"is disconnect" codes with cx_oracle. [ticket:2864]
2013-12-03 13:18:40 -05:00
Mike Bayer 50e3847f09 - Added new argument `include_backrefs=True` to the
:func:`.validates` function; when set to False, a validation event
will not be triggered if the event was initated as a backref to
an attribute operation from the other side. [ticket:1535]
- break out validation tests into an updated module test_validators
2013-12-02 12:40:50 -05:00
Mike Bayer d80ee72aaa - the pronoun removal commit. there was only one instance of a
standalone gendered pronoun with a gender-neutral subject, but also
have replaced all occurences of "his/her", "his or her", etc.  The docs have always
strived to account for both genders in any non-specific singular pronoun,
however recent controversy in the community suggests
that a zero-gendered-pronoun policy is probably best going forward.
2013-11-30 17:31:00 -05:00
Mike Bayer 31886aff29 remove whitespace 2013-11-30 17:26:28 -05:00
Mike Bayer 604df86190 make sure thread.join() is used completely here 2013-11-30 16:54:44 -05:00
Mike Bayer 94f0541ebd .tox 2013-11-30 16:45:53 -05:00
mike bayer 7d0cefb418 Merge pull request #49 from msabramo/add_note_to_README_unittests_about_tox
README.unittests.rst: Add blurb about tox
2013-11-30 13:44:12 -08:00
Mike Bayer 404b47a50c - changelog
- put list.clear() instrumentation under "if not py2k"
2013-11-30 16:26:55 -05:00
Mike Bayer 12b05adbb1 Merge branch 'orm-collections-list-clear' of github.com:schettino72/sqlalchemy into list_clear 2013-11-30 16:17:27 -05:00
Mike Bayer 92d8baeb95 not new anymore... 2013-11-30 16:15:58 -05:00
Mike Bayer d52db834a5 - move additional enum compilation tests to postgresql/test_compiler.py 2013-11-30 16:12:20 -05:00
Mike Bayer ea1095d1da - selected documentation issues
- add glossary terms
2013-11-30 16:07:14 -05:00
Mike Bayer 2688fce67f - re-document synonyms and remove warnings about "superseded"; synonyms
are still useful, just include notes that for more complex descriptor operations,
hybrids are probably preferable
2013-11-30 15:30:24 -05:00
Mike Bayer 66773a8801 - Fixed bug where values within an ENUM weren't escaped for single
quote signs.   Note that this is backwards-incompatible for existing
workarounds that manually escape the single quotes. [ticket:2878]
2013-11-30 13:53:26 -05:00
Mike Bayer 53e93d50ca forgot to add this, oopsie 2013-11-30 10:34:09 -05:00
Mike Bayer 1714e0d6ef simplify this 2013-11-30 10:26:11 -05:00
Mike Bayer 347e89044c convert to a list here for py3k 2013-11-29 19:35:44 -05:00
Mike Bayer 207fafe7e3 - add support for bindparam() called from AsFromText
- get PG dialect to work around "no nonexistent binds" rule for now,
though we might want to reconsider this behavior
2013-11-29 19:06:33 -05:00
Mike Bayer 58fab1be98 - start reworking examples to include more code from the wiki.
- add the other versioning examples from the wiki
- modernize the dictlike examples
2013-11-29 18:53:53 -05:00
Mike Bayer c368034ca0 remove this 2013-11-29 18:53:37 -05:00
Mike Bayer e6f67f4805 Fixed bug where in Py2K a unicode literal would not be accepted
as the string name of a class or other argument within
declarative using :func:`.relationship`.
2013-11-29 18:15:52 -05:00
Mike Bayer 1e7bb35fd2 - reduce verbiage in mutation.py regarding legacy style, place under versionadded 2013-11-29 16:32:24 -05:00
Hyunjun Kim e860dcb912 Fixed a syntax error in example code. 2013-11-29 16:16:33 -05:00
mike bayer 08c30e3867 Merge pull request #45 from timka/patch-1
Fix sessionmaker.__repr__
2013-11-29 13:12:17 -08:00
mike bayer c6ba175d20 Merge pull request #46 from vrajmohan/master
More fixes for cross references and reducing warnings (3rd wave)
2013-11-29 13:11:27 -08:00
Mike Bayer 92133bc3d8 more fix 2013-11-29 15:26:00 -05:00
Mike Bayer c056d73cb9 fix 2013-11-29 15:23:33 -05:00
Mike Bayer 3745fb0036 make generativeselect available 2013-11-29 15:22:12 -05:00
Mike Bayer 6c83ef761b - New improvements to the :func:.text construct, including
more flexible ways to set up bound parameters and return types;
in particular, a :func:`.text` can now be turned into a full
FROM-object, embeddable in other statements as an alias or CTE
using the new method :meth:`.TextClause.columns`.
[ticket:2877]
2013-11-29 15:05:19 -05:00
Mike Bayer 4340a87f07 - changelog, migration 2013-11-28 23:44:11 -05:00
Mike Bayer 248c4ef797 - repair the "lockmode" functionality of load_on_ident(). slightly problematic
here is that "lockmode" is also public in Session.refresh().
2013-11-28 23:31:17 -05:00
Mike Bayer 31cecebd48 - add support for specifying tables or entities for "of"
- implement Query with_for_update()
- rework docs and tests
2013-11-28 23:23:27 -05:00
Mike Bayer 4aaf3753d7 - fix up rendering of "of"
- move out tests, dialect specific out of compiler, compiler tests use new API,
legacy API tests in test_selecatble
- add support for adaptation of ForUpdateArg, alias support in compilers
2013-11-28 22:25:09 -05:00
Mike Bayer bb60a8ad94 - work in progress, will squash 2013-11-28 12:37:15 -05:00
Mike Bayer 106e793d05 Merge branch 'for_update_of' of github.com:mlassnig/sqlalchemy into for_update_of 2013-11-28 11:52:50 -05:00
Mario Lassnig e9aaf8eb66 added LockmodeArgs 2013-11-28 14:50:41 +01:00
Mike Bayer 33e77c3077 - add more explicit docs for relationship mixin, [ticket:2876] 2013-11-27 11:18:55 -05:00
Mike Bayer 30a50cc46a - the wrapped memoized_property here was not working, as the attribute name
didn't match.  use straight memoized_props here for now, add a perf test to check it
2013-11-26 23:24:13 -05:00
Mike Bayer 6029496bd3 - adjustment, the spec says: "Within the user and password field, any ":",
"@", or "/" must be encoded." - so re-apply encoding to both password
and username, don't encode spaces as plus signs, don't encode any chars
outside of :, @, / on stringification - but we still parse for any
%XX character (is that right?)
2013-11-25 14:46:58 -05:00
Marc Abramowitz dceadfca51 README.unittests.rst: Add blurb about tox 2013-11-25 10:18:24 -08:00
schettino72 8fc91105a0 orm.collection, list.clear(). remove 'before_delete()', added unit-test. 2013-11-25 14:18:34 +13:00
Mike Bayer 2800e34710 - The :func:.create_engine routine and the related
:func:`.make_url` function **no longer URL encode the password**.
Database passwords that include characters like spaces, plus signs
and anything else should now represent these characters directly,
without any URL escaping. [ticket:2873]
2013-11-24 18:11:37 -05:00
Mike Bayer 579f09974b pg8000 fix for decimal return scale 2013-11-23 19:17:22 -05:00
Mike Bayer 54b8969be1 -be more agnostic of quotes here 2013-11-23 17:22:56 -05:00
Mike Bayer 4acfce6c4c - evaulate decimal_return_scale statelessly. Don't re-assign to self.decimal_return_scale
so that __repr__() is maintained (for alembic tests)
2013-11-23 17:19:43 -05:00
Mike Bayer 50634fcb2d clean up imports 2013-11-23 17:12:54 -05:00
Mike Bayer 69b9f62afc - this test only for mysql 2013-11-23 17:05:45 -05:00
Mike Bayer ae4629e6a0 - Some refinements to the :class:.AliasedClass construct with regards
to descriptors, like hybrids, synonyms, composites, user-defined
descriptors, etc.  The attribute
adaptation which goes on has been made more robust, such that if a descriptor
returns another instrumented attribute, rather than a compound SQL
expression element, the operation will still proceed.
Addtionally, the "adapted" operator will retain its class; previously,
a change in class from ``InstrumentedAttribute`` to ``QueryableAttribute``
(a superclass) would interact with Python's operator system such that
an expression like ``aliased(MyClass.x) > MyClass.x`` would reverse itself
to read ``myclass.x < myclass_1.x``.   The adapted attribute will also
refer to the new :class:`.AliasedClass` as its parent which was not
always the case before. [ticket:2872]
2013-11-23 17:03:48 -05:00