equal
deleted
inserted
replaced
40 |
40 |
41 :type rql: str or unicode |
41 :type rql: str or unicode |
42 :param rql: the original RQL query string |
42 :param rql: the original RQL query string |
43 """ |
43 """ |
44 |
44 |
45 def __init__(self, results, rql, args=None, description=None): |
45 def __init__(self, results, rql, args=None, description=None, variables=None): |
46 self.rows = results |
46 self.rows = results |
47 self.rowcount = results and len(results) or 0 |
47 self.rowcount = results and len(results) or 0 |
48 # original query and arguments |
48 # original query and arguments |
49 self.rql = rql |
49 self.rql = rql |
50 self.args = args |
50 self.args = args |
52 # maybe discarded if specified when the query has been executed |
52 # maybe discarded if specified when the query has been executed |
53 if description is None: |
53 if description is None: |
54 self.description = [] |
54 self.description = [] |
55 else: |
55 else: |
56 self.description = description |
56 self.description = description |
|
57 self.variables = variables if variables is not None else [] |
57 # set to (limit, offset) when a result set is limited using the |
58 # set to (limit, offset) when a result set is limited using the |
58 # .limit method |
59 # .limit method |
59 self.limited = None |
60 self.limited = None |
60 # set by the cursor which returned this resultset |
61 # set by the cursor which returned this resultset |
61 self.req = None |
62 self.req = None |