]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
- Added a new option
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Apr 2015 16:36:51 +0000 (12:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Apr 2015 16:41:46 +0000 (12:41 -0400)
commit0e1c0989894f13b29a00c9504b887568a40d6648
treee05ebe211e0c5f227840d1a2895288b77c62cbc0
parent54e4f58d1f5315a6bb4c579d1ac8cdb802e7439e
- Added a new option
:paramref:`.EnvironmentContext.configure.literal_binds`, which
will pass the ``literal_binds`` flag into the compilation of SQL
constructs when using "offline" mode.  This has the effect that
SQL objects like inserts, updates, deletes as well as textual
statements sent using ``text()`` will be compiled such that the dialect
will attempt to render literal values "inline" automatically.
Only a subset of types is typically supported; the
:meth:`.Operations.inline_literal` construct remains as the construct
used to force a specific literal representation of a value.
The :paramref:`.EnvironmentContext.configure.literal_binds` flag
is added to the "offline" section of the ``env.py`` files generated
in new environments.
fixes #255
- enhance the op_fixture as well as MigrationContext._stdout_connection()
 so that it uses the real DefaultImpl
and MigrationContext fully in tests.
12 files changed:
alembic/ddl/impl.py
alembic/environment.py
alembic/migration.py
alembic/operations.py
alembic/templates/generic/env.py
alembic/templates/multidb/env.py
alembic/templates/pylons/env.py
alembic/testing/fixtures.py
docs/build/changelog.rst
tests/test_bulk_insert.py
tests/test_mysql.py
tests/test_op.py