| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
: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.
|
|
|
|
|
|
| |
case of sharing state such as engines and connections on the outside
with a series of Alembic API calls; also added a new cookbook section
to describe this simple but pretty important use case.
|
|
|
|
| |
than line length
|
|
|
|
|
|
|
| |
so that --sql mode gets access to naming conventions also.
existing environments need to add target_metadata to the offline migration
context manually.
fixes #189
|
| |
|
| |
|
|
|
|
| |
in migrations
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
connection.close() to better support
programmatic usage of commands; use
NullPool in conjunction with create_engine()
as well so that no connection resources
remain afterwards. [#25]
|
|
|
|
|
|
|
|
|
| |
begin/commit pair regardless of context.
- add dialect support for BEGIN/COMMIT working corresponding
to backend. Add implementation for SQL server.
- add tests for BEGIN/COMMIT , #11
- rework SQL server test suite for more classes of test
- fix test suite to clean up after a prior failed suite
|
|
|
|
|
|
|
| |
autogenerate_sqlalchemy_prefix
to sqlalchemy_module_prefix
- add create_check_constraint() directive
|
| |
|
|
|
|
|
|
| |
- move "offline" tranasctional markers to env.py script
- move online/offline sections into separate functions in env.py scripts
- move context initial logging to the __init__ method
|
|
|
|
|
|
|
| |
- more docs
- get env.py to work in --sql mode even without the DBAPI installed,
using just the URL
- add get_section_option()
|
| |
|
|
|
|
|
|
| |
- more environment functions
- clean up start:end system
- docs
|
|
|
|
|
|
|
|
|
| |
- overhaul context + env so that --sql mode truly does
not make any SQL connections of any kind. The env.py
scripts create the engine and use it as the source of
a "dialect" - the "dialect" is now passed straight to the context.
- more power to env - can set output buffer, transactional ddl flag,
execute SQL via context instead of needing to import op
|
| |
|
|
|