Commit Graph

2307 Commits

Author SHA1 Message Date
Mike Bayer 393b294776 - [feature] Added support for .info dictionary argument to
column_property(), relationship(), composite().
All MapperProperty classes have an auto-creating .info
dict available overall.
2012-08-24 18:48:42 -04:00
Mike Bayer 477dd0f774 this is already in an automodule... 2012-08-22 14:23:13 -04:00
Mike Bayer 0e9ad80760 - [feature] Enhanced GenericFunction and func.*
to allow for user-defined GenericFunction
    subclasses to be available via the func.*
    namespace automatically by classname,
    optionally using a package name as well.
2012-08-22 13:54:13 -04:00
Mike Bayer aef0c7a903 - [feature] The Core oeprator system now includes
the `getitem` operator, i.e. the bracket
operator in Python.  This is used at first
to provide index and slice behavior to the
Postgresql ARRAY type, and also provides a hook
for end-user definition of custom __getitem__
schemes which can be applied at the type
level as well as within ORM-level custom
operator schemes.

Note that this change has the effect that
descriptor-based __getitem__ schemes used by
the ORM in conjunction with synonym() or other
"descriptor-wrapped" schemes will need
to start using a custom comparator in order
to maintain this behavior.

- [feature] postgresql.ARRAY now supports
indexing and slicing.  The Python [] operator
is available on all SQL expressions that are
of type ARRAY; integer or simple slices can be
passed.  The slices can also be used on the
assignment side in the SET clause of an UPDATE
statement by passing them into Update.values();
see the docs for examples.

- [feature] Added new "array literal" construct
postgresql.array().  Basically a "tuple" that
renders as ARRAY[1,2,3].
2012-08-20 17:04:25 -04:00
Mike Bayer 099c9d39eb - expand out all the methods on insert/update/delete/select for now
- remove deprecation test
2012-08-19 22:04:33 -04:00
Mike Bayer 223af5b116 - [feature] The prefix_with() method is now available
on each of select(), insert(), update(), delete(),
    all with the same API, accepting multiple
    prefix calls, as well as a "dialect name" so that
    the prefix can be limited to one kind of dialect.
    [ticket:2431]
2012-08-19 21:15:40 -04:00
Mike Bayer b47c185fc4 tighten this up 2012-08-18 10:41:17 -04:00
Mike Bayer 24a071921c versionadded 2012-08-18 01:12:55 -04:00
Mike Bayer 515811eb58 - fix the labeled column with column_expression() issue, finishes [ticket:1534]
- epic documentation sweep for new operator system, making ORM links consistent
and complete, full documentation and examples for type/SQL expression feature
- type_coerce() explicitly accepts BindParamClause objects
- change UserDefinedType to coerce the other side to itself by default as this
is much more likely what's desired
- make coerce_compared_type() fully public on all types
- have profiling run the test no matter what so that the test_zoomarks don't fail
when callcounts are missing
2012-08-18 00:54:00 -04:00
Mike Bayer a180239d8e docs for custom ops... 2012-08-16 12:36:13 -04:00
Mike Bayer d212f7e554 merge tip. 2012-08-13 17:54:47 -04:00
Mike Bayer 51417b942f docs 2012-08-13 17:53:35 -04:00
Mike Bayer 8c7914e181 - update engine docstrings due to move
- struggle with Operators class autodoc
2012-08-13 17:35:27 -04:00
Mike Bayer 965496dd8e - continue editing the merge docs 2012-08-08 11:54:28 -04:00
Mike Bayer d93fb56d86 - modernize some merge docs a bit 2012-08-07 20:07:58 -04:00
Mike Bayer b5c310c279 - [bug] An error is emitted when uselist=False
is combined with a "dynamic" loader.
    This is a warning in 0.7.9.
2012-08-05 22:53:56 -04:00
Mike Bayer 22ba1c43b7 -whitespace bonanza, contd 2012-07-28 17:05:50 -04:00
Mike Bayer 27913554a8 trailing whitespace bonanza 2012-07-28 15:50:05 -04:00
Mike Bayer ee0f80b4f0 add context to column_property docs illustrating the use of correlate_except()
to keep the non-correlated table from being correlated.  part of
[ticket:2530] but also mentioned in [ticket:2245] for some reason.
2012-07-23 10:28:52 -04:00
Mike Bayer 3e55ed778b - [feature] Connection event listeners can
now be associated with individual
Connection objects, not just Engine
objects.  [ticket:2511]
2012-07-18 20:23:01 -04:00
Mike Bayer e8ff3047c6 a lot of docs 2012-07-18 19:08:31 -04:00
Mike Bayer dff7c2ad2c - document the inspection system 2012-07-18 14:13:18 -04:00
Mike Bayer de115ae406 - a big renaming of all the _Underscore classes to have
plain names.  The old names are still defined for
backwards compatibility.
- _BindParamClause renamed to BindParameter
2012-07-17 20:04:22 -04:00
Mike Bayer 1dc09bf6ed genindex is 100% valid 2012-07-16 11:07:54 -04:00
Mike Bayer 838c4eca94 add section on replacing result_processor()/bind_processor() 2012-07-03 19:59:37 -04:00
Mike Bayer 6ff2d2969e except the example was wrong. 2012-07-02 13:56:28 -04:00
Mike Bayer 503592a0d8 - add a nice example about begin_nested as context manager. 2012-07-02 13:08:09 -04:00
Mike Bayer 45007b9c2e add a section on many-to-many deletes 2012-06-25 16:42:39 -04:00
Mike Bayer 319aa982a1 - [moved] The InstrumentationManager interface
and the entire related system of alternate
class implementation is now moved out
to sqlalchemy.ext.instrumentation.   This is
a seldom used system that adds significant
complexity and overhead to the mechanics of
class instrumentation.  The new architecture
allows it to remain unused until
InstrumentationManager is actually imported,
at which point it is bootstrapped into
the core.
2012-06-24 02:06:10 -04:00
Mike Bayer 3dd536ac06 - [feature] The of_type() construct on attributes
now accepts aliased() class constructs as well
as with_polymorphic constructs, and works with
query.join(), any(), has(), and also
eager loaders subqueryload(), joinedload(),
contains_eager()
[ticket:2438] [ticket:1106]
- a rewrite of the query path system to use an
object based approach for more succinct usage.  the system
has been designed carefully to not add an excessive method overhead.
- [feature] select() features a correlate_except()
method, auto correlates all selectables except those
passed.   Is needed here for the updated any()/has()
functionality.
- remove some old cruft from LoaderStrategy, init(),debug_callable()
- use a namedtuple for _extended_entity_info.  This method should
become standard within the orm internals
- some tweaks to the memory profile tests, number of runs can
be customized to work around pysqlite's very annoying behavior
- try to simplify PropertyOption._get_paths(), rename to _process_paths(),
returns a single list now.  overall works more completely as was needed
for of_type() functionality
2012-06-20 19:28:29 -04:00
Mike Bayer 924819da79 doc fixes 2012-06-16 20:56:32 -04:00
Mike Bayer d8d080a769 Add some Sphinx related version informations paragraph-level markups,
such as ``.. versionaddedd::``, ``.. versionchanged::`` and ``.. deprecated::``.
2012-06-08 15:56:58 -04:00
Mike Bayer 97e97324d6 Add some basic CSS styles for version informations paragraph markups. 2012-06-08 15:55:02 -04:00
Mike Bayer ad62e3ff5e - upgrade DBAPI index to have links to all dialect toplevel pages
- add line for google DBAPI
2012-05-26 13:11:26 -04:00
Mike Bayer 2925167550 - [feature] The "deferred declarative
reflection" system has been moved into the
declarative extension itself, using the
new DeferredReflection class.  This
class is now tested with both single
and joined table inheritance use cases.
[ticket:2485]
- [bug] The autoload_replace flag on Table,
when False, will cause any reflected foreign key
constraints which refer to already-declared
columns to be skipped, assuming that the
in-Python declared column will take over
the task of specifying in-Python ForeignKey
or ForeignKeyConstraint declarations.
2012-05-17 11:45:05 -04:00
Franck Cuny 89c513656a Fix a typo in the documentation
s/Attrbutes/Attributes/
2012-04-27 15:21:02 -07:00
Mike Bayer 65862c5e2e document the remote/foreign/remote_foreign functions 2012-04-24 22:11:15 -04:00
Mike Bayer 5f10d0d0e4 top level version-specific links 2012-04-24 19:32:30 -04:00
Mike Bayer cb15295850 - remove sqlsoup [ticket:2262]
- remove sqlalchemy.exceptions [ticket:2433]
2012-04-24 13:14:08 -04:00
Mike Bayer d4bf75c7f6 update doc version 2012-04-24 13:07:56 -04:00
Mike Bayer 71c0011574 - [feature] Added a new system
for registration of new dialects in-process
without using an entrypoint.  See the
docs for "Registering New Dialects".
[ticket:2462]
2012-04-24 13:00:30 -04:00
Mike Bayer cb3913a186 - [feature] New standalone function with_polymorphic()
provides the functionality of query.with_polymorphic()
in a standalone form.   It can be applied to any
entity within a query, including as the target
of a join in place of the "of_type()" modifier.
[ticket:2333]
- redo a large portion of the inheritance docs in terms
of declarative, new with_polymorphic() function
- upgrade examples/inheritance/polymorph, rename to "joined"
2012-04-23 22:17:25 -04:00
Diana Clarke 879e6bc462 Fixing link to python's logging module (see #2456). Thanks astrochase! 2012-04-03 17:40:51 -04:00
Mike Bayer bd85bcc0cf 0.7.6 release 2012-03-14 21:23:09 -07:00
Mike Bayer 0b393b4469 revert this, the instrumentation here is conditional 2012-03-13 21:14:39 -07:00
Mike Bayer bc3ea419b6 add most of Brad Allen's doc updates, [ticket:2434] 2012-03-13 21:07:09 -07:00
Mike Bayer 4d2c1e2f17 - [feature] Added support for MSSQL INSERT,
UPDATE, and DELETE table hints, using
new with_hint() method on UpdateBase.
[ticket:2430]
2012-03-13 14:00:05 -07:00
Mike Bayer 1607b74f85 - [feature] Added cte() method to Query,
invokes common table expression support
from the Core (see below). [ticket:1859]

- [feature] Added support for SQL standard
common table expressions (CTE), allowing
SELECT objects as the CTE source (DML
not yet supported).  This is invoked via
the cte() method on any select() construct.
[ticket:1859]
2012-03-03 13:00:44 -05:00
Mike Bayer 0933ed93ce mysql connector python 3k is dev status 2012-02-16 10:04:07 -05:00
Mike Bayer ae5625f3d9 update the search to call searchindex.js in the latest way
sphinx decides we should be, [ticket:2408]
2012-02-14 10:16:16 -05:00