<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/alembic.git/tests/test_bulk_insert.py, branch ticket_306</title>
<subtitle>github.com: sqlalchemy/alembic.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/'/>
<entry>
<title>- Added a new option</title>
<updated>2015-04-07T16:41:46+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2015-04-07T16:36:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=0e1c0989894f13b29a00c9504b887568a40d6648'/>
<id>0e1c0989894f13b29a00c9504b887568a40d6648</id>
<content type='text'>
: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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
: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.
</pre>
</div>
</content>
</entry>
<entry>
<title>- The :class:`~sqlalchemy.schema.Table` object is now returned when</title>
<updated>2014-11-08T23:06:26+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2014-11-08T23:06:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=8272c85faadb234af25e5a4f029a8c24879ef67d'/>
<id>8272c85faadb234af25e5a4f029a8c24879ef67d</id>
<content type='text'>
the :meth:`.Operations.create_table` method is used.  This ``Table``
is suitable for use in subsequent SQL operations, in particular
the :meth:`.Operations.bulk_insert` operation.
fixes #205
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the :meth:`.Operations.create_table` method is used.  This ``Table``
is suitable for use in subsequent SQL operations, in particular
the :meth:`.Operations.bulk_insert` operation.
fixes #205
</pre>
</div>
</content>
</entry>
<entry>
<title>bulk insert</title>
<updated>2014-09-13T19:47:30+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2014-09-13T19:47:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=62885198acc056629df00e429ec513d9f86ae3c0'/>
<id>62885198acc056629df00e429ec513d9f86ae3c0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>- do an autopep8 pass for just about everything other</title>
<updated>2014-09-09T16:24:43+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2014-09-09T16:24:43+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=10d3556a5501563a4110733ecc9d9ba8eb172a99'/>
<id>10d3556a5501563a4110733ecc9d9ba8eb172a99</id>
<content type='text'>
than line length
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
than line length
</pre>
</div>
</content>
</entry>
<entry>
<title>- Fixed bug where :meth:`.Operations.bulk_insert` would not function</title>
<updated>2014-03-08T05:15:46+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2014-03-08T05:15:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=6cc9c976d6c101f03579e4e4821bd6277599191a'/>
<id>6cc9c976d6c101f03579e4e4821bd6277599191a</id>
<content type='text'>
properly when :meth:`.Operations.inline_literal` values were used,
either in --sql or non-sql mode.    The values will now render
directly in --sql mode.  For compatibility with "online" mode,
a new flag :paramref:`~.Operations.inline_literal.multiparams`
can be set to False which will cause each parameter set to be
compiled and executed with individual INSERT statements.
fixes #179
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
properly when :meth:`.Operations.inline_literal` values were used,
either in --sql or non-sql mode.    The values will now render
directly in --sql mode.  For compatibility with "online" mode,
a new flag :paramref:`~.Operations.inline_literal.multiparams`
can be set to False which will cause each parameter set to be
compiled and executed with individual INSERT statements.
fixes #179
</pre>
</div>
</content>
</entry>
<entry>
<title>- Calling :func:`.bulk_insert` with an empty list will not emit any</title>
<updated>2014-01-24T15:43:43+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2014-01-24T15:43:43+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=dccc55815315158546cf25eb6396721ace7d4885'/>
<id>dccc55815315158546cf25eb6396721ace7d4885</id>
<content type='text'>
commands on the current connection.  This was already the case with
``--sql`` mode, so is now the case with "online" mode.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commands on the current connection.  This was already the case with
``--sql`` mode, so is now the case with "online" mode.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use relative imports</title>
<updated>2013-04-10T20:34:07+00:00</updated>
<author>
<name>Hong Minhee</name>
<email>minhee@dahlia.kr</email>
</author>
<published>2013-04-10T20:34:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=3c780af24f0e69155edc946e114cbdd1839fb488'/>
<id>3c780af24f0e69155edc946e114cbdd1839fb488</id>
<content type='text'>
This change does not affect to any behaviors of it, but is just stylish
improvements to remove 2to3 dependency.

1. All old-style absolute imports e.g. `from alembic import util` are
   replaced by relative imports e.g. `from . import util`.

2. Use of proxy modules (`alembic.op` and `alembic.context`) are replaced
   by deferred import patterns, but these modules still exist.

3. Imports are grouped by 3 types of their origins (standard libraries,
   third party libraries, and local modules) and blank lines are put between
   each group of imports.  This style is from PEP 8:

   &lt;http://www.python.org/dev/peps/pep-0008/#imports&gt;

For stylish change, I can't do that much, because it was intentionally done
as it was by the author.  If the author will allow me to make it more closer
to PEP 8 style, I will do that as well.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change does not affect to any behaviors of it, but is just stylish
improvements to remove 2to3 dependency.

1. All old-style absolute imports e.g. `from alembic import util` are
   replaced by relative imports e.g. `from . import util`.

2. Use of proxy modules (`alembic.op` and `alembic.context`) are replaced
   by deferred import patterns, but these modules still exist.

3. Imports are grouped by 3 types of their origins (standard libraries,
   third party libraries, and local modules) and blank lines are put between
   each group of imports.  This style is from PEP 8:

   &lt;http://www.python.org/dev/peps/pep-0008/#imports&gt;

For stylish change, I can't do that much, because it was intentionally done
as it was by the author.  If the author will allow me to make it more closer
to PEP 8 style, I will do that as well.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused imports</title>
<updated>2013-03-30T19:49:50+00:00</updated>
<author>
<name>Hong Minhee</name>
<email>minhee@dahlia.kr</email>
</author>
<published>2013-03-30T19:49:50+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=0bdcf9d5fe1bfd999020bd803c232a4bd154e550'/>
<id>0bdcf9d5fe1bfd999020bd803c232a4bd154e550</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>whitespace removal</title>
<updated>2012-08-15T19:30:28+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2012-08-15T19:30:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=64a58cc4029f3459e2806be770d15c0d039c81eb'/>
<id>64a58cc4029f3459e2806be770d15c0d039c81eb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>- [bug] bulk_insert() fixes:</title>
<updated>2012-04-07T22:00:42+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2012-04-07T22:00:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/alembic.git/commit/?id=a7ada78d87aeb7383455b3935457950f1070d4b2'/>
<id>a7ada78d87aeb7383455b3935457950f1070d4b2</id>
<content type='text'>
    1. bulk_insert() operation was
       not working most likely since the 0.2 series
       when used with an engine. #41
    2. Repaired bulk_insert() to complete when
       used against a lower-case-t table and executing
       with only one set of parameters, working
       around SQLAlchemy bug #2461 in this regard.
    3. bulk_insert() uses "inline=True" so that phrases
       like RETURNING and such don't get invoked for
       single-row bulk inserts.
    4. bulk_insert() will check that you're passing
       a list of dictionaries in, raises TypeError
       if not detected.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    1. bulk_insert() operation was
       not working most likely since the 0.2 series
       when used with an engine. #41
    2. Repaired bulk_insert() to complete when
       used against a lower-case-t table and executing
       with only one set of parameters, working
       around SQLAlchemy bug #2461 in this regard.
    3. bulk_insert() uses "inline=True" so that phrases
       like RETURNING and such don't get invoked for
       single-row bulk inserts.
    4. bulk_insert() will check that you're passing
       a list of dictionaries in, raises TypeError
       if not detected.
</pre>
</div>
</content>
</entry>
</feed>
