From 8d04a04f6b00ccf68d5764265d416abcc8b3b379 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 8 Mar 2014 00:19:18 -0500 Subject: [PATCH] got the docs totally wrong on that --- alembic/operations.py | 6 +++--- docs/build/changelog.rst | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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. -- 2.47.2