summaryrefslogtreecommitdiff
path: root/alembic/templates/pylons/env.py
Commit message (Collapse)AuthorAgeFilesLines
* - Added a new optionMike Bayer2015-04-071-1/+2
| | | | | | | | | | | | | | | | | | | :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.
* - Added a new feature :attr:`.Config.attributes`, to help with the useMike Bayer2015-01-231-13/+4
| | | | | | 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.
* - do an autopep8 pass for just about everything otherMike Bayer2014-09-091-4/+4
| | | | than line length
* - ensure that target_metadata is also present in the offline migration context,Mike Bayer2014-03-141-1/+1
| | | | | | | 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
* whitespace removalMike Bayer2012-08-151-3/+3
|
* fixed typoMarcin Kuzminski2012-02-091-1/+1
|
* show message for pylons template where to explicitly define engine for usage ↵Marcin Kuzminski2012-02-081-7/+11
| | | | in migrations
* try to get engine from Base if it's definedMarcin Kuzminski2012-02-081-1/+7
|
* fixed #30 and some other issues with pylons templateMarcin Kuzminski2012-02-081-7/+12
|
* - [bug] env.py templates callMike Bayer2012-01-261-2/+5
| | | | | | | | 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]
* - add begin_transaction() env.py helper. Emits the appropriateMike Bayer2011-11-291-8/+5
| | | | | | | | | 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
* - rename autogenerate_metadata to target_metadata, ↵Mike Bayer2011-11-281-3/+3
| | | | | | | autogenerate_sqlalchemy_prefix to sqlalchemy_module_prefix - add create_check_constraint() directive
* implement autogenerate featureMike Bayer2011-11-271-1/+10
|
* - requires_connection() -> is_offline_mode()Mike Bayer2011-11-161-3/+25
| | | | | | - 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
* - add argparse to install requiresMike Bayer2011-11-141-1/+2
| | | | | | | - more docs - get env.py to work in --sql mode even without the DBAPI installed, using just the URL - add get_section_option()
* get env to have all the arguments before and after context is set upMike Bayer2011-11-141-5/+5
|
* - make start/end arguments available to environmentsMike Bayer2011-11-141-1/+2
| | | | | | - more environment functions - clean up start:end system - docs
* - get the "stamp" command to work in as_sqlMike Bayer2011-11-111-8/+12
| | | | | | | | | - 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
* here's what im doing with pylons at the momentMike Bayer2011-04-191-4/+11
|
* do "find the templates" identically to how sphinx does itMike Bayer2011-04-191-0/+27