summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into ticket_3150ticket_3150Mike Bayer2014-09-251-0/+13
|\
| * - convert to spacesMike Bayer2014-09-251-191/+191
| |
| * - clarify documentation on exists() that it is preferred to be in theMike Bayer2014-09-241-0/+13
| | | | | | | | WHERE clause. fixes #3212
* | - changelog + migration, fixes #2670, fixes #3150, fixes #3149Mike Bayer2014-09-256-200/+368
| |
* | - refactor - split out _as_declarative into functionsMike Bayer2014-09-252-324/+371
| | | | | | | | - fully factor everything into MapperConfig
* | - lets create column copies first and fix this problem completely.Mike Bayer2014-09-254-60/+59
| | | | | | | | now we don't need after_mapping at all.
* | - try to simplify. do away with after_mapping.Mike Bayer2014-09-255-80/+137
| |
* | - clean up importsMike Bayer2014-09-241-3/+2
| |
* | - simplify. make the base declared_attr memoized.Mike Bayer2014-09-247-98/+68
| |
* | - we've come up with a different way to do #2670, which was the originalMike Bayer2014-09-245-70/+453
| | | | | | | | | | | | | | | | | | | | "hard" way, seems to be working. - try to get docs and tests going for the new declared_attr stuff. A little concerned that the number of variations is going out of control, need to get the docs into shape in a big way. Probably are not going to stress the new modifiers that much, as they really aren't needed in the vast majority of cases. Maybe we want to make memoization the default for declared_attr across the board, though.
* | - add the patch, start adding testsMike Bayer2014-09-234-8/+156
|/
* - flake8 all of test/ext/declarativeMike Bayer2014-09-235-427/+543
|
* - The :mod:`sqlalchemy.ext.automap` extension will now setMike Bayer2014-09-223-7/+123
| | | | | | | | | | | | | | ``cascade="all, delete-orphan"`` automatically on a one-to-many relationship/backref where the foreign key is detected as containing one or more non-nullable columns. This argument is present in the keywords passed to :func:`.automap.generate_relationship` in this case and can still be overridden. Additionally, if the :class:`.ForeignKeyConstraint` specifies ``ondelete="CASCADE"`` for a non-nullable or ``ondelete="SET NULL"`` for a nullable set of columns, the argument ``passive_deletes=True`` is also added to the relationship. Note that not all backends support reflection of ondelete, but backends that do include Postgresql and MySQL. fixes #3210
* pep8/flake8Mike Bayer2014-09-221-42/+59
|
* - these tests don't test anything in SQLAlchemy - from our perpsective,Mike Bayer2014-09-191-133/+0
| | | | | | | we need to be in transactions (tested elsewhere) and we need to emit the correct FOR UPDATE strings (tested elsewhere). There's nothing in SQLA to be tested as far as validating that for update causes exceptions or not, and these tests frequently fail as they are timing sensitive.
* - Fixed bug that affected generally the same classes of eventMike Bayer2014-09-188-31/+231
| | | | | | | | | | as that of :ticket:`3199`, when the ``named=True`` parameter would be used. Some events would fail to register, and others would not invoke the event arguments correctly, generally in the case of when an event was "wrapped" for adaption in some other way. The "named" mechanics have been rearranged to not interfere with the argument signature expected by internal wrapper functions. fixes #3197
* fix testMike Bayer2014-09-181-0/+2
|
* - Fixed an unlikely race condition observed in some exotic end-userMike Bayer2014-09-182-1/+17
| | | | | | | | setups, where the attempt to check for "duplicate class name" in declarative would hit upon a not-totally-cleaned-up weak reference related to some other class being removed; the check here now ensures the weakref still references an object before calling upon it further. fixes #3208
* - Fixed bug that affected many classes of event, particularlyMike Bayer2014-09-184-15/+90
| | | | | | | | | | | ORM events but also engine events, where the usual logic of "de duplicating" a redundant call to :func:`.event.listen` with the same arguments would fail, for those events where the listener function is wrapped. An assertion would be hit within registry.py. This assertion has now been integrated into the deduplication check, with the added bonus of a simpler means of checking deduplication across the board. fixes #3199
* - Added new method :meth:`.Select.with_statement_hint` and ORMMike Bayer2014-09-186-6/+118
| | | | | | method :meth:`.Query.with_statement_hint` to support statement-level hints that are not specific to a table. fixes #3206
* - Added support for the Oracle table option ON COMMIT. This is beingMike Bayer2014-09-176-14/+90
| | | | | | | | | kept separate from Postgresql's ON COMMIT for now even though ON COMMIT is in the SQL standard; the option is still very specific to temp tables and we eventually would provide a more first class temporary table feature. - oracle can apparently do get_temp_table_names() too, so implement that, fix its get_table_names(), and add it to #3204. fixes #3204 again.
* - not sure what this is testing but remove the self.l that mightMike Bayer2014-09-171-2/+3
| | | | be contributing to pypy not cleaning up on this one
* - we can start checking these flake rulesMike Bayer2014-09-171-1/+1
|
* - changelog for #3203; fixes #3203Mike Bayer2014-09-171-0/+14
|
* Merge branch 'sqlite-temp-table-reflection' of ↵Mike Bayer2014-09-172-10/+36
|\ | | | | | | https://bitbucket.org/jerdfelt/sqlalchemy/branch/sqlite-temp-table-reflection into pr31
| * Handle sqlite get_unique_constraints() call for temporary tablesJohannes Erdfelt2014-09-172-10/+36
| | | | | | | | | | | | | | The sqlite get_unique_constraints() implementation did not do a union against the sqlite_temp_master table like other code does. This could result in an exception being raised if get_unique_constraints() was called against a temporary table.
* | - Added :meth:`.Inspector.get_temp_table_names` andMike Bayer2014-09-179-44/+205
| | | | | | | | | | | | | | | | | | | | | | | | :meth:`.Inspector.get_temp_view_names`; currently, only the SQLite dialect supports these methods. The return of temporary table and view names has been **removed** from SQLite's version of :meth:`.Inspector.get_table_names` and :meth:`.Inspector.get_view_names`; other database backends cannot support this information (such as MySQL), and the scope of operation is different in that the tables can be local to a session and typically aren't supported in remote schemas. fixes #3204
* | - move this to the correct locationMike Bayer2014-09-171-1/+1
| |
* | - comment this out (again)Mike Bayer2014-09-171-1/+1
| |
* | Merge branch 'pr128'Mike Bayer2014-09-176-4/+211
|\ \ | |/ |/|
| * - repair get_foreign_table_names() for PGInsp/dialect levelpr128Mike Bayer2014-09-176-23/+99
| | | | | | | | | | - repair get_view_names() - changelog + migration note
| * keep this off for the moment as jenkins isn't set up for this yetMike Bayer2014-09-171-1/+1
| |
| * - the actual round trip requires password authent set up for the user;Mike Bayer2014-09-171-25/+7
| | | | | | | | we don't actually need a round trip test here as we're only testing reflection.
| * - break out and fix tests for materialized view and foreign tables. foreign ↵Mike Bayer2014-09-161-72/+86
| | | | | | | | tables not working
| * Merge remote-tracking branch 'origin/pr/128' into pr128Mike Bayer2014-09-165-4/+139
| |\
| | * Added documentation. Changed my mind - added get_foreign_table_names() only ↵pr/128Rodrigo Menezes2014-09-056-41/+26
| | | | | | | | | | | | to PGInspect and not in the Dialect. Added tests for PGInspect and removed a bunch of the old test scaffolding.
| | * Added get_foreign_table_names to interface and put it in the test requirements.Rodrigo Menezes2014-09-054-2/+19
| | |
| | * Fixing some pep8s and adding get_foreign_tables.Rodrigo Menezes2014-09-034-9/+38
| | |
| | * Removed changes that are no longer necessary for postgresql_relkind. Also, ↵Rodrigo Menezes2014-08-262-3/+5
| | | | | | | | | | | | removed newline changes.
| | * Merge branch 'master' of https://github.com/zzzeek/sqlalchemy into ↵Rodrigo Menezes2014-08-2649-2013/+2538
| | |\ | | | | | | | | | | | | feature/postgres-relkind
| | * | Remove relkind from construct arguments.Rodrigo Menezes2014-08-261-2/+1
| | | |
| | * | Removed all mentions to postgresql_relkindRodrigo Menezes2014-08-262-51/+20
| | | |
| | * | Add a view synonym too for consistency.Rodrigo Menezes2014-08-141-1/+2
| | | |
| | * | Merge branch 'master' of https://github.com/rclmenezes/sqlalchemyRodrigo Menezes2014-08-1421-105/+415
| | |\ \
| | * | | Added support for postgres_relkind.Rodrigo Menezes2014-08-145-16/+149
| | | | |
* | | | | - Fixed the version string detection in the pymssql dialect toMike Bayer2014-09-163-1/+30
|/ / / / | | | | | | | | | | | | | | | | | | | | work with Microsoft SQL Azure, which changes the word "SQL Server" to "SQL Azure". fixes #3151
* | | | - raise from cause here to preserve stack traceMike Bayer2014-09-161-1/+1
| | | |
* | | | Merge pull request #138 from BY-jk/mastermike bayer2014-09-161-0/+1
|\ \ \ \ | | | | | | | | | | Added EXASolution dialect to documentation
| * | | | Added EXASolution dialect to documentationpr/138Jan2014-09-161-0/+1
| | | | |
* | | | | - cant do xargs in tox.ini as it doesnt run outside of postgresql/mysqlMike Bayer2014-09-151-1/+1
| | | | |