summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* - 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
| | | |
* | | | - 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
| | | | |
* | | | | - use compat.u for python3.2, fixes #3198Mike Bayer2014-09-151-2/+2
| | | | |
* | | | | - fix issue where nose Failure object comes into play hereMike Bayer2014-09-151-0/+2
| | | | |
* | | | | - remove some crufty old testing optionsMike Bayer2014-09-1411-97/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - reestablish the "bootstrap" system of loading the test runners in testing/plugin; using the updated approach we just came up with for alembic. Coverage should be fixed now when running either py.test or nose. fixes #3196 - upgrade tox.ini and start using a .coveragerc file
* | | | | Updated documenation for engines.rstpr/135Jim Hokanson2014-09-141-1/+6
| | | | | | | | | | | | | | | Clarified connecting to absolute path for sqlite using Windows.
* | | | | - Fixed warning that would emit when a complex self-referentialMike Bayer2014-09-113-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | primaryjoin contained functions, while at the same time remote_side was specified; the warning would suggest setting "remote side". It now only emits if remote_side isn't present. fixes #3194
* | | | | - Fixed bug in ordering list where the order of items would beMike Bayer2014-09-105-2/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thrown off during a collection replace event, if the reorder_on_append flag were set to True. The fix ensures that the ordering list only impacts the list that is explicitly associated with the object. fixes #3191
* | | | | - for whatever reason, Insert.values() with multi values wasn'tMike Bayer2014-09-092-0/+28
| | | | | | | | | | | | | | | | | | | | in the 0.8 migration, so let's just add that
* | | | | - add in all the method-chained methods to the parameter descriptionsMike Bayer2014-09-091-43/+131
| | | | | | | | | | | | | | | | | | | | | | | | | on select(). improve some descriptions and add more info for limit()/ offset(), including new 1.0 functionality.
* | | | | - rework the previous "order by" system in terms of the new one,Mike Bayer2014-09-086-46/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unify everything. - create a new layer of separation between the "from order bys" and "column order bys", so that an OVER doesn't ORDER BY a label in the same columns clause - identify another issue with polymorphic for ref #3148, match on label keys rather than the objects
* | | | | - check for None linker...Mike Bayer2014-09-081-1/+1
| | | | |
* | | | | - Added new event handlers :meth:`.AttributeEvents.init_collection`Mike Bayer2014-09-075-20/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and :meth:`.AttributeEvents.dispose_collection`, which track when a collection is first associated with an instance and when it is replaced. These handlers supersede the :meth:`.collection.linker` annotation. The old hook remains supported through an event adapter.
* | | | | - remove some old cruftMike Bayer2014-09-074-78/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - prop.compare() isn't needed; replace with prop._with_parent() for relationships - update docs in orm/interfaces
* | | | | - mako_layout isn't used, remove itMike Bayer2014-09-072-4/+4
| | | | | | | | | | | | | | | | | | | | - to check for epub look at "builder"
* | | | | Merge pull request #133 from hiaselhans/doc_epubmike bayer2014-09-072-1/+8
|\ \ \ \ \ | | | | | | | | | | | | Docs: use layout.mako only when mako_layout=='html'
| * | | | | Docs: use the base layout when mako_layout=='epub'pr/133hiaselhans2014-09-072-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - https://readthedocs.org/projects/sqlalchemy/downloads/epub/latest/ renders with the full template which is unreadable on e-readers - in the makefile the template-variable mako_layout is set for target: epub which makes mako use only the base layout. - this is the more elegant solution as proposed to #133
* | | | | | - changelog and migration for #3188, #3148.Mike Bayer2014-09-072-1/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #3188 fixes #3148
* | | | | | - rework ColumnAdapter and ORMAdapter to only provide the featuresticket_3148Mike Bayer2014-09-076-103/+521
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we're now using; rework them fully so that their behavioral contract is consistent regarding adapter.traverse() vs. adapter.columns[], add a full suite of tests including advanced wrapping scenarios previously only covered by test/orm/test_froms.py and test/orm/inheritance/test_relationships.py - identify several cases where label._order_by_label_clause would be corrupted, e.g. due to adaption or annotation separately - add full tests for #3148
* | | | | | - enhance ClauseAdapter / ColumnAdapter to have new behaviors with labels.Mike Bayer2014-09-078-35/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "anonymize label" logic is now generalized to ClauseAdapter, and takes place when the anonymize_labels flag is sent, taking effect for all .columns lookups as well as within traverse() calls against the label directly. - traverse() will also memoize what it gets in columns, so that calling upon traverse() / .columns against the same Label will produce the same anonymized label. This is so that AliasedClass produces the same anonymized label when it is accessed per-column (e.g. SomeAlias.some_column) as well as when it is applied to a Query, and within column loader strategies (e.g. query(SomeAlias)); the former uses traverse() while the latter uses .columns - AliasedClass now calls onto ColumnAdapter - Query also makes sure to use that same ColumnAdapter from the AliasedClass in all cases - update the logic from 0.9 in #1068 to make use of the same _label_resolve_dict we use for #2992, simplifying how that works and adding support for new scenarios that were pretty broken (see #3148, #3188)
* | | | | | wip for #3148Mike Bayer2014-09-069-17/+192
| | | | | |
* | | | | | - document all the varities of _label on the base ColumnElementMike Bayer2014-09-062-12/+56
|/ / / / / | | | | | | | | | | | | | | | | | | | | - replace out _columns_clause_label with a straight boolean flag to reduce the proliferation of labels
* | | | | - omit MySQL index flavor if its NoneMike Bayer2014-09-051-1/+2
| | | | |
* | | | | - MySQL boolean symbols "true", "false" work again. 0.9's changeMike Bayer2014-09-054-1/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in :ticket:`2682` disallowed the MySQL dialect from making use of the "true" and "false" symbols in the context of "IS" / "IS NOT", but MySQL supports this syntax even though it has no boolean type. MySQL remains "non native boolean", but the :func:`.true` and :func:`.false` symbols again produce the keywords "true" and "false", so that an expression like ``column.is_(true())`` again works on MySQL. fixes #3186
* | | | | - delete the file first here so this is deterministicMike Bayer2014-09-051-0/+3
| | | | |
* | | | | - tiny refactors #1-#5Mike Bayer2014-09-054-104/+175
| | | | |
* | | | | - ensure literal_binds works with LIMIT clause, FOR UPDATEMike Bayer2014-09-0310-29/+48
| | | | |
* | | | | - The hostname-based connection format for SQL Server when usingMike Bayer2014-09-035-64/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pyodbc will no longer specify a default "driver name", and a warning is emitted if this is missing. The optimal driver name for SQL Server changes frequently and is per-platform, so hostname based connections need to specify this. DSN-based connections are preferred. fixes #3182
* | | | | - default dialect, plus test against the default dialect...Mike Bayer2014-09-021-1/+1
| | | | |
* | | | | - An adjustment to table/index reflection such that if an indexMike Bayer2014-09-023-8/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reports a column that isn't found to be present in the table, a warning is emitted and the column is skipped. This can occur for some special system column situations as has been observed with Oracle. fixes #3180
* | | | | default dialectMike Bayer2014-09-021-0/+2
| | | | |
* | | | | - add logic to compiler such that if stack is empty, we justMike Bayer2014-09-025-3/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stringify a _label_reference() as is. - add .key to _label_reference(), so that when _make_proxy() is called, we don't call str() on it anyway. - add a test to exercise Query's behavior of adding all the order_by expressions to the columns list of the select, assert that things work out when we have a _label_reference there, that it gets sucked into the columns list and spit out on the other side, it's referred to appropriately, etc. _label_reference() could theoretically be resolved at the point we iterate _raw_columns() but it's better to just let things work as they already do (except nicer, since we get "tablename.colname" instead of just "somename" in the columns list) so that we aren't adding a ton of overhead to _columns_plus_names in the common case.
* | | | | - reorganizeMike Bayer2014-09-011-434/+436
| | | | |