From: Mike Bayer Date: Sat, 8 Mar 2014 05:19:18 +0000 (-0500) Subject: got the docs totally wrong on that X-Git-Tag: rel_0_6_4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d04a04f6b00ccf68d5764265d416abcc8b3b379;p=thirdparty%2Fsqlalchemy%2Falembic.git got the docs totally wrong on that --- diff --git a/alembic/operations.py b/alembic/operations.py index c11d3818..21038f83 100644 --- a/alembic/operations.py +++ b/alembic/operations.py @@ -822,13 +822,13 @@ class Operations(object): {'id':3, 'name':'Wendy Jones', 'create_date':op.inline_literal("2008-08-15")}, ], - multiparams=False + multiinsert=False ) When using :meth:`.Operations.inline_literal` in conjunction with :meth:`.Operations.bulk_insert`, in order for the statement to work in "online" (e.g. non --sql) mode, the - :paramref:`~.Operations.inline_literal.multiparams` + :paramref:`~.Operations.bulk_insert.multiinsert` flag should be set to ``False``, which will have the effect of individual INSERT statements being emitted to the database, each with a distinct VALUES clause, so that the "inline" values can @@ -837,7 +837,7 @@ class Operations(object): .. versionadded:: 0.6.4 :meth:`.Operations.inline_literal` can now be used with :meth:`.Operations.bulk_insert`, and the - :paramref:`~.Operations.inline_literal.multiparams` flag has + :paramref:`~.Operations.bulk_insert.multiinsert` flag has been added to assist in this usage when running in "online" mode. diff --git a/docs/build/changelog.rst b/docs/build/changelog.rst index 69b64f99..2c592ab3 100644 --- a/docs/build/changelog.rst +++ b/docs/build/changelog.rst @@ -13,7 +13,7 @@ Changelog 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` + a new flag :paramref:`~.Operations.bulk_insert.multiinsert` can be set to False which will cause each parameter set to be compiled and executed with individual INSERT statements.