Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer 8582bbc5ec - repair drop_all_tables 2015-01-02 10:08:21 -05:00
Mike Bayer 21f47124ab - restate sort_tables in terms of a more fine grained
sort_tables_and_constraints function.
- The DDL generation system of :meth:`.MetaData.create_all`
and :meth:`.Metadata.drop_all` has been enhanced to in most
cases automatically handle the case of mutually dependent
foreign key constraints; the need for the
:paramref:`.ForeignKeyConstraint.use_alter` flag is greatly
reduced.  The system also works for constraints which aren't given
a name up front; only in the case of DROP is a name required for
at least one of the constraints involved in the cycle.
fixes #3282
2015-01-01 20:17:06 -05:00
Mike Bayer 8f5e4acbf6 - Added a new accessor :attr:.Table.foreign_key_constraints
to complement the :attr:`.Table.foreign_keys` collection,
as well as :attr:`.ForeignKeyConstraint.referred_table`.
2015-01-01 13:39:42 -05:00
Mike Bayer da1aa25908 - remove the "edges" from the message here. It's illegible 2015-01-01 13:14:05 -05:00
Mike Bayer 87a1af4efe - fix some RST whitespace syntactical issues in toctrees
- have the topmost toctree only include page names
- add glossary to toctree, remove search by itself
2014-12-29 20:01:21 -05:00
Mike Bayer 3a620a304e - see if we can get RTD to use this for now 2014-12-28 17:11:36 -05:00
Mike Bayer 1cb24b3742 bump 2014-12-28 11:06:47 -05:00
Mike Bayer 60368fdd9f bump 2014-12-28 10:43:39 -05:00
Mike Bayer 0bd632804e - fix links for loading, add a redirect page
bump

foo
2014-12-27 19:52:44 -05:00
Mike Bayer d11c7a197e - another bump 2014-12-27 17:56:40 -05:00
Mike Bayer 31e2fe75d9 - remove private superclasses from docs in favor of fixing
zzzeeksphinx to omit these from warning

Conflicts:
	doc/build/orm/internals.rst
2014-12-27 17:46:55 -05:00
Mike Bayer 3ccae26789 remove pipe... 2014-12-27 17:17:05 -05:00
Mike Bayer 5343d24fee corrections 2014-12-27 16:54:32 -05:00
Mike Bayer 544e72bcb6 - corrections
- attempt to add a script to semi-automate the fixing of links
2014-12-27 16:22:41 -05:00
Mike Bayer ef6dc0cf2e - typo fixes #3269 2014-12-27 12:47:57 -05:00
Mike Bayer 5659ecb2e8 - ouch, this needs to be in dbapi, not module level! 2014-12-19 18:20:11 -05:00
Mike Bayer 182553b740 - make the google deprecation messages more specific, use full URL
format
- add an extra doc to MySQLdb
- changelog
2014-12-19 14:15:56 -05:00
Mike Bayer 4da5c7423d Merge branch 'update-gaerdbms-docs' of https://bitbucket.org/rob_b/sqlalchemy into pr39 2014-12-19 14:12:19 -05:00
Priit Laes 8ae47dc6e0 Maul the evaulate & friends typo 2014-12-19 19:32:27 +02:00
Mike Bayer d1ac6cb33a - Fixed bug where using a :class:.TypeDecorator that implemented
a type that was also a :class:`.TypeDecorator` would fail with
Python's "Cannot create a consistent method resolution order (MRO)"
error, when any kind of SQL comparison expression were used against
an object using this type.
2014-12-19 12:14:52 -05:00
Mike Bayer b92589e3a0 - create a new section on "custom load rules", to help with edge
cases like that of #3277.  fixes #3277
2014-12-19 11:55:10 -05:00
Rob Berry 0d15791a6e Update gaerdbms to highlight improved connection method 2014-12-18 13:17:11 +00:00
Mike Bayer 023067a0b7 - classical is really not the most important topic here 2014-12-17 19:20:06 -05:00
Mike Bayer 9561321d03 - squash-merge the improve_toc branch, which moves all the Sphinx styling
and extensions into an external library, and also reorganizes most large documentation
pages into many small areas to reduce scrolling and better present the context
into a more fine-grained hierarchy.
2014-12-17 17:24:23 -05:00
Mike Bayer 00aaaa4bd4 - Added a version check to the MySQLdb dialect surrounding the
check for 'utf8_bin' collation, as this fails on MySQL server < 5.0.
fixes #3274
2014-12-16 17:02:48 -05:00
Tony Locke c93706fa33 Make pg8000 version detection more robust
pg8000 uses Versioneer, which means that development versions have
version strings that don't fit into the dotted triple number format.
Released versions will always fit the triple format though.
2014-12-16 21:03:04 +00:00
Tony Locke 8038cfa077 pg8000 client_encoding in create_engine()
The pg8000 dialect now supports the setting of the PostgreSQL parameter
client_encoding from create_engine().
2014-12-16 20:55:55 +00:00
Mike Bayer d5f88ee9e5 - rework the migration doc sections
- small fixes in bulk docs
2014-12-14 17:10:44 -05:00
Mike Bayer 7cd4362924 - automap isn't new anymore 2014-12-14 16:21:40 -05:00
Mike Bayer 468db416db - rework sqlite FK and unique constraint system to combine both PRAGMA
and regexp parsing of SQL in order to form a complete picture of
constraints + their names.  fixes #3244 fixes #3261
- factor various PRAGMA work to be centralized into one call
2014-12-13 19:24:56 -05:00
Jon Nelson 5b146e1bab - add tentative 'changelog' documentation on #3244 2014-12-13 18:34:51 -05:00
Jon Nelson 85c04dd0bb - add test_get_unnamed_unique_constraints to SQLite reflection tests 2014-12-13 18:34:50 -05:00
Jon Nelson 91af733787 - fix unique constraint parsing for sqlite -- may return '' for name, however 2014-12-13 18:34:50 -05:00
Mike Bayer cf7981f60d - Added new method :meth:.Session.invalidate, functions similarly
to :meth:`.Session.close`, except also calls
:meth:`.Connection.invalidate`
on all connections, guaranteeing that they will not be returned to
the connection pool.  This is useful in situations e.g. dealing
with gevent timeouts when it is not safe to use the connection further,
even for rollbacks.
references #3258
2014-12-12 19:59:11 -05:00
Mike Bayer 08e02579e0 - update zoomark 2014-12-12 15:55:34 -05:00
Mike Bayer 3c70f60950 - fix up query update /delete documentation, make warnings
a lot clearer, partial fixes for #3252
2014-12-10 13:08:53 -05:00
Mike Bayer 347db81aea - keep working on fixing #3266, more cases, more tests 2014-12-10 12:15:14 -05:00
Mike Bayer eee617e08e - rework the handle error on connect tests from test_parsconnect where
they don't really belong into a new suite in test_execute
2014-12-10 12:11:59 -05:00
Mike Bayer 295092db54 Merge remote-tracking branch 'origin/pr/153' 2014-12-08 22:59:54 -05:00
Yuval Langer c86c593ec3 Removing unneeded space. 2014-12-09 04:19:18 +02:00
Mike Bayer 06738f665e - identify another spot where _handle_dbapi_error() needs to do something
differently for the case where it is called in an already-invalidated state;
don't call upon self.connection
2014-12-08 15:15:02 -05:00
Mike Bayer b7cf11b163 - simplify the "noconnection" error handling, setting
_handle_dbapi_exception_noconnection() to only invoke in the case
of raw_connection() in the constructor of Connection.   in all other
cases the Connection proceeds with _handle_dbapi_exception() including
revalidate.
2014-12-08 14:05:20 -05:00
Mike Bayer 8553c195c2 - autoinc here for oracle 2014-12-08 12:34:40 -05:00
Mike Bayer 6b9f62df10 - force the _has_events flag to True on engines, so that
profiling is more predictable
- restore the profiling from before this change
2014-12-08 11:18:38 -05:00
Mike Bayer 902c8d480b - some profile changes likely due to the change in event listening
on engines
2014-12-08 01:22:37 -05:00
Mike Bayer 3f1477e2ec - A new series of :class:.Session methods which provide hooks
directly into the unit of work's facility for emitting INSERT
and UPDATE statements has been created.  When used correctly,
this expert-oriented system can allow ORM-mappings to be used
to generate bulk insert and update statements batched into
executemany groups, allowing the statements to proceed at
speeds that rival direct use of the Core.
fixes #3100
2014-12-08 01:10:30 -05:00
Mike Bayer 5ed7a9672a start docs... 2014-12-07 21:08:14 -05:00
Mike Bayer 07cc9e054a - add an option for bulk_save -> update to not do history 2014-12-07 20:36:01 -05:00
Mike Bayer c42b8f8eb8 - fix inheritance persistence
- start writing docs
2014-12-07 20:21:20 -05:00
Mike Bayer e257ca6c52 - initial tests for bulk 2014-12-07 19:08:16 -05:00