From 8f4d8a31f883feeb42bfe9e8d6e25cb71e5500c7 Mon Sep 17 00:00:00 2001
From: davebshow <davebshow@gmail.com>
Date: Fri, 17 Jul 2015 10:18:10 -0400
Subject: [PATCH] added rebindings to usage docs

---
 docs/usage.rst | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/docs/usage.rst b/docs/usage.rst
index 10d6f6b..1286708 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -34,8 +34,8 @@ read the chunked responses one at a time::
 
 
 .. function:: submit(gremlin, *, url='ws://localhost:8182/', bindings=None,
-                     lang="gremlin-groovy", op="eval", processor="",
-                     timeout=None, session=None, loop=None):
+                     lang="gremlin-groovy", rebindings=None, op="eval",
+                     processor="", timeout=None, session=None, loop=None):
 
     :ref:`coroutine<coroutine>`
 
@@ -51,6 +51,9 @@ read the chunked responses one at a time::
     :param str lang: Language of scripts submitted to the server.
         "gremlin-groovy" by default
 
+    :param dict rebindings: Rebind ``Graph`` and ``TraversalSource``
+        objects to different variable names in the current request
+
     :param str op: Gremlin Server op argument. "eval" by default.
 
     :param str processor: Gremlin Server processor argument. "" by default.
@@ -140,8 +143,9 @@ point to different endpoints::
 
    Detach client from ws_connector. Client status is switched to closed.
 
-.. method:: submit(gremlin, *, bindings=None, lang=None, op=None,
-                   processor=None, binary=True, session=None, timeout=None)
+.. method:: submit(gremlin, *, bindings=None, lang=None, rebindings=None,
+                   op=None, processor=None, binary=True, session=None,
+                   timeout=None)
 
    :ref:`coroutine<coroutine>` method
 
@@ -157,6 +161,9 @@ point to different endpoints::
    :param str lang: Language of scripts submitted to the server.
                     "gremlin-groovy" by default
 
+   :param dict rebindings: Rebind ``Graph`` and ``TraversalSource``
+                           objects to different variable names in the current request
+
    :param str op: Gremlin Server op argument. "eval" by default.
 
    :param str processor: Gremlin Server processor argument. "" by default.
@@ -168,8 +175,9 @@ point to different endpoints::
 
    :returns: :py:class:`aiogremlin.client.GremlinResponse` object
 
-.. method:: execute(gremlin, *, bindings=None, lang=None, op=None,
-                   processor=None, binary=True, session=None, timeout=None)
+.. method:: execute(gremlin, *, bindings=None, lang=None, rebindings=None,
+                    op=None, processor=None, binary=True, session=None,
+                    timeout=None)
 
    :ref:`coroutine<coroutine>` method
 
@@ -185,6 +193,10 @@ point to different endpoints::
    :param str lang: Language of scripts submitted to the server.
                     "gremlin-groovy" by default
 
+   :param dict rebindings: Rebind ``Graph`` and ``TraversalSource``
+                           objects to different variable names in the current
+                           request
+
    :param str op: Gremlin Server op argument. "eval" by default.
 
    :param str processor: Gremlin Server processor argument. "" by default.
-- 
GitLab