From ddcfd132ae75e1069e3b383af72936fb3be91ad9 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 4 May 2012 17:46:06 -0400 Subject: [PATCH] docuemnt mock strategy, [ticket:2439] --- lib/sqlalchemy/engine/__init__.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/engine/__init__.py b/lib/sqlalchemy/engine/__init__.py index c3667dd335..3fa5942166 100644 --- a/lib/sqlalchemy/engine/__init__.py +++ b/lib/sqlalchemy/engine/__init__.py @@ -323,8 +323,17 @@ def create_engine(*args, **kwargs): with :class:`~sqlalchemy.pool.QueuePool`. :param strategy='plain': selects alternate engine implementations. - Currently available is the ``threadlocal`` - strategy, which is described in :ref:`threadlocal_strategy`. + Currently available are: + + * the ``threadlocal`` strategy, which is described in + :ref:`threadlocal_strategy`; + * the ``mock`` strategy, which dispatches all statement + execution to a function passed as the argument ``executor``. + See `example in the FAQ `_. + + :param executor=None: a function taking arguments + ``(sql, *multiparams, **params)``, to which the ``mock`` strategy will + dispatch all statement execution. Used only by ``strategy='mock'``. """ -- 2.47.3