summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
Commit message (Collapse)AuthorAgeFilesLines
* - hstore adjustmentsMike Bayer2012-11-175-77/+162
|
* Merged in audriusk/sqlalchemy_pg_hstore (pull request #26). will adjust ↵Mike Bayer2012-11-173-5/+340
|\ | | | | | | some aspects of it, including replace userdefinedtype with typeengine, and move mutationdict to be part of sqlalchemy.ext.mutable
| * Register HStore adapter and typecaster in psycopg2 dialectAudrius Kažukauskas2012-11-151-0/+26
| |
| * Add PostgreSQL HStore type supportAudrius Kažukauskas2012-11-132-5/+314
| |
* | initializing _labels to an empty list so that the other methods don't throw ↵Diana Clarke2012-11-171-0/+1
| | | | | | | | exceptions in the None labels case, but rather return (), [], or {}. this is not backwards compatible, but doubt anyone is relying on those exceptions #2601
* | adding _fields, _asdict() to KeyedTuple #2601Diana Clarke2012-11-171-0/+7
| |
* | - merge ben's patch with updatesMike Bayer2012-11-172-50/+414
|\ \
| * | Removed caching from SybaseDialect.get_table_idBenjamin Trofatter2012-11-031-1/+0
| | |
| * | Updated sybase testing requirementsBenjamin Trofatter2012-10-312-3/+5
| | |
| * | Added sybase requirements to testing and improved view reflection.Benjamin Trofatter2012-10-301-33/+17
| | |
| * | Added reflection to sqlalchemy.dialects.sybaseBenjamin Trofatter2012-10-301-45/+424
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added missing types supported by Sybase to ischema_names mapping Created a SybaseInspector similar to the PGInspector, with a cached table_id lookup, and added it to the SybaseDialect as the default inspector. Added the following methods to SybaseDialect: get_table_id get_columns _get_column_info : support method for get_columns get_foreign_keys get_indexes get_pk_constraint get_schema_names get_view_definition get_view_names Rewrote the following methods to conform to the style of the rest: get_table_names has_table Reordered colspec builder to put default clause after "NULL/NOT NULL", instead of before. This fixed a syntax error.
* | | The :meth:`.Connection.connect` and :meth:`.Connection.contextual_connect`Mike Bayer2012-11-142-61/+48
| | | | | | | | | | | | | | | | | | | | | methods now return a "branched" version so that the :meth:`.Connection.close` method can be called on the returned connection without affecting the original. Allows symmetry when using :class:`.Engine` and :class:`.Connection` objects as context managers.
* | | Fixed :meth:`.MetaData.reflect` to correctly useMike Bayer2012-11-141-8/+17
| | | | | | | | | | | | | | | | | | the given :class:`.Connection`, if given, without opening a second connection from that connection's :class:`.Engine`. [ticket:2604]
* | | Fixed bug whereby using "key" with ColumnMike Bayer2012-11-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | in conjunction with "schema" for the owning Table would fail to locate result rows due to the MSSQL dialect's "schema rendering" logic's failure to take .key into account. Also in 0.7.10. [ticket:2607]
* | | __sub__ was declared twice, just increasing test coverage before I change ↵Diana Clarke2012-11-131-3/+0
| |/ |/| | | | | anything
* | add docs regarding fetchedvalue with primary keys, [ticket:2598]Mike Bayer2012-11-121-0/+4
| |
* | Fixed bug in type_coerce() whereby typing informationMike Bayer2012-11-123-3/+5
| | | | | | | | | | | | | | | | could be lost if the statement were used as a subquery inside of another statement, as well as other similar situations. Among other things, would cause typing information to be lost when the Oracle/mssql dialects would apply limit/offset wrappings. [ticket:2603]
* | fix some oracle-related tests, but still need to fix unhashable_types testMike Bayer2012-11-121-2/+2
| |
* | - support "fails_if" requirements as __requires__; so far this just skips, ↵Mike Bayer2012-11-123-3/+166
| | | | | | | | | | | | | | | | | | | | doesn't actually run the test - add requirements for date/datetime/time capabilities - remove test/sql/test_types->DateTest and create new tests in suite/test_types - move the StringTest with the "no length create" test to the suite, though this is a weird test
* | added test of synchronize_session='fetch' on rows which are not already in ↵Scott Torborg2012-11-101-0/+1
| | | | | | | | the session, and patch to fix failure
* | Support for reflection of the "name" of primary keyMike Bayer2012-11-101-2/+5
| | | | | | | | constraints added, courtesy Dave Moore. mssql [ticket:2600]
* | Fixed bug whereby the ".key" of a Column wasn't beingMike Bayer2012-10-313-4/+6
| | | | | | | | | | | | | | used when producing a "proxy" of the column against a selectable. This probably didn't occur in 0.7 since 0.7 doesn't respect the ".key" in a wider range of scenarios. [ticket:2597]
* | update the introMike Bayer2012-10-311-2/+2
| |
* | improve some autodoc linksMike Bayer2012-10-313-11/+11
| |
* | - do a straight __subclasses__ traversal here, so that we aren'tMike Bayer2012-10-282-10/+17
| | | | | | | | | | | | iterating through all mappers in memory when a new event is tacked onto an unmapped superclass, also removes the strong ref that was breaking some GC teardown tests
* | - remove remote_foreign annotationMike Bayer2012-10-284-66/+57
|/ | | | - support annotations on Column where name isn't immediately present
* - store only MultipleClassMarkers inside of ModuleMarker, thenMike Bayer2012-10-282-26/+71
| | | | | | store ModuleMarkers for multiple roots, one for each token in a module path. this allows partial path resolution. - docs to this effect
* - cover additional cases for [ticket:2585], where events are applied to base ↵Mike Bayer2012-10-281-1/+12
| | | | | | class after subclasses are already mapped
* - more docsMike Bayer2012-10-267-16/+20
| | | | - it appears we can get rid of all those "XYZ_toplevel" names and use :doc:.
* - add class_ to AliasedInspMike Bayer2012-10-265-16/+46
| | | | | | - redefine inspect(Class.attrname).parent to be always an inspectable target; either Mapper or AliasedInsp - add most major features to 08 migration, document, link
* - some naming changes on PropComparator, Comparator:Mike Bayer2012-10-255-21/+55
| | | | | | | | | | | | | 1. all Comparators now have "parent" which is always the parent mapper or AliasedClass instance 2. only RelationshipProperty.Comparator has "mapper" now, which is the target mapper 3. The names "parententity" and "parentmapper" are underscored also improved the message with the "neither comparator nor instruentedattribute...." to include the classname + attribute name
* versionaddedMike Bayer2012-10-251-2/+4
|
* The long-deprecated and non-functional ``assert_unicode`` flag onMike Bayer2012-10-253-34/+2
| | | | :func:`.create_engine` as well as :class:`.String` is removed.
* Added :meth:`.ColumnOperators.notin_`,Mike Bayer2012-10-242-3/+51
| | | | | | :meth:`.ColumnOperators.notlike`, :meth:`.ColumnOperators.notilike` to :class:`.ColumnOperators`. [ticket:2580]
* version noteMike Bayer2012-10-241-0/+3
|
* Fixed bug where keyword arguments passed toMike Bayer2012-10-242-5/+17
| | | | | | | | :meth:`.Compiler.process` wouldn't get propagated to the column expressions present in the columns clause of a SELECT statement. In particular this would come up when used by custom compilation schemes that relied upon special flags. [ticket:2593]
* - move most/all operator specific tests into test_operator, convert fully to TOTMike Bayer2012-10-242-1/+2
|
* - get 100% lint/pep8 happening for test_compiler; next we will beginMike Bayer2012-10-241-3/+4
| | | | | | cutting up tests and removing old ones - move test_in() to test_operators - slice up migrated operator tests into TOT
* aaaarrrggMike Bayer2012-10-231-1/+1
|
* tweaksMike Bayer2012-10-231-1/+1
|
* Added a new method :meth:`.Engine.execution_options`Mike Bayer2012-10-231-16/+114
| | | | | | | | | | | to :class:`.Engine`. This method works similarly to :class:`.Connection.execution_options` in that it creates a copy of the parent object which will refer to the new set of options. The method can be used to build sharding schemes where each engine shares the same underlying pool of connections. The method has been tested against the horizontal shard recipe in the ORM as well.
* - fix regression from 0.7 where calling get_history with passiveMike Bayer2012-10-221-0/+4
| | | | | | | on a never-set collection would fail; made this act just like scalars for now and added tests. I would think that HISTORY_BLANK would be more appropriate here but it's too late in the game to mess with that.
* The auto-correlation feature of :func:`.select`, andMike Bayer2012-10-221-1/+6
| | | | | | | | | by proxy that of :class:`.orm.Query`, will not take effect for a SELECT statement that is being rendered directly in the FROM list of the enclosing SELECT. Correlation in SQL only applies to column expressions such as those in the WHERE, ORDER BY, columns clause. [ticket:2595]
* Merged in agilevic/sqlalchemy (pull request #23)Mike Bayer2012-10-211-0/+2
|\
| * it is sensible to add NCHAR and NVARCHAR as recognized data types for sqlite ↵Victor Olex2012-10-051-0/+2
| | | | | | | | dialect because they are widely used and because of the type affinity mechanism of sqlite
* | - rework the sphinx customizations into distinct modulesMike Bayer2012-10-1937-378/+220
| | | | | | | | | | | | | | - build a new Sphinx extension that allows dialect info to be entered as directives which is then rendered consistently throughout all dialect/dbapi sections - break out the "empty_strings" requirement for oracle test
* | - errant maxdbMike Bayer2012-10-193-7/+0
| | | | | | | | - errant pdbs
* | - move out maxdbMike Bayer2012-10-1826-1191/+127
| | | | | | | | | | | | - begin consolidating docs for dialects to be more self contained - add a separate section for "external" dialects - not sure how we're going to go with this yet.
* | - [bug] TypeDecorator now includes a generic repr()Mike Bayer2012-10-182-2/+7
| | | | | | | | | | | | | | | | | | that works in terms of the "impl" type by default. This is a behavioral change for those TypeDecorator classes that specify a custom __init__ method; those types will need to re-define __repr__() if they need __repr__() to provide a faithful constructor representation. [ticket:2594]
* | - [feature] The Query can now load entity/scalar-mixedMike Bayer2012-10-154-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "tuple" rows that contain types which aren't hashable, by setting the flag "hashable=False" on the corresponding TypeEngine object in use. Custom types that return unhashable types (typically lists) can set this flag to False. [ticket:2592] - [bug] Applying a column expression to a select statement using a label with or without other modifying constructs will no longer "target" that expression to the underlying Column; this affects ORM operations that rely upon Column targeting in order to retrieve results. That is, a query like query(User.id, User.id.label('foo')) will now track the value of each "User.id" expression separately instead of munging them together. It is not expected that any users will be impacted by this; however, a usage that uses select() in conjunction with query.from_statement() and attempts to load fully composed ORM entities may not function as expected if the select() named Column objects with arbitrary .label() names, as these will no longer target to the Column objects mapped by that entity. [ticket:2591]