Skip to content

Commit c0061c5

Browse files
committed
Query iterrator ok
1 parent 30de98e commit c0061c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyArango/query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import json
22

3+
from future.utils import implements_iterator
4+
35
from .document import Document, Edge
46
from .theExceptions import QueryError, AQLQueryError, SimpleQueryError, CreationError
57
from . import consts as CONST
68

79
__all__ = ["Query", "AQLQuery", "SimpleQuery", "Cursor", "RawCursor"]
810

11+
@implements_iterator
912
class RawCursor(object) :
1013
"a raw interface to cursors that returns json"
1114
def __init__(self, database, cursorId) :
@@ -22,6 +25,7 @@ def __next__(self) :
2225
raise CursorError(data["errorMessage"], self.id, data)
2326
return r.json()
2427

28+
@implements_iterator
2529
class Query(object) :
2630
"This class is abstract and should not be instanciated. All query classes derive from it"
2731

0 commit comments

Comments
 (0)