Skip to content

Commit

Permalink
Query iterrator ok
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqdaouda committed Jul 19, 2016
1 parent 30de98e commit a6bd3cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyArango/query.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import json

from future.utils import implements_iterator

from .document import Document, Edge
from .theExceptions import QueryError, AQLQueryError, SimpleQueryError, CreationError
from . import consts as CONST

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

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

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

Expand Down

0 comments on commit a6bd3cb

Please sign in to comment.