@@ -155,14 +155,14 @@ def __call__(
155
155
Fetches the expression results from the database into an np.array or list of dictionaries and
156
156
unpacks blob attributes.
157
157
158
- :param attrs: zero or more attributes to fetch. If not provided, the call will return all attributes of this
158
+ :param attrs: zero or more attributes to fetch. If not provided, the call will return all attributes of this
159
159
relation. If provided, returns tuples with an entry for each attribute.
160
160
:param offset: the number of tuples to skip in the returned result
161
161
:param limit: the maximum number of tuples to return
162
- :param order_by: a single attribute or the list of attributes to order the results. No ordering should be assumed
163
- if order_by=None. To reverse the order, add DESC to the attribute name or names: e.g. ("age DESC",
162
+ :param order_by: a single attribute or the list of attributes to order the results. No ordering should be assumed
163
+ if order_by=None. To reverse the order, add DESC to the attribute name or names: e.g. ("age DESC",
164
164
"frequency") To order by primary key, use "KEY" or "KEY DESC"
165
- :param format: Effective when as_dict=None and when attrs is empty None: default from config['fetch_format'] or
165
+ :param format: Effective when as_dict=None and when attrs is empty None: default from config['fetch_format'] or
166
166
'array' if not configured "array": use numpy.key_array "frame": output pandas.DataFrame. .
167
167
:param as_dict: returns a list of dictionaries instead of a record array. Defaults to False for .fetch() and to
168
168
True for .fetch('KEY')
@@ -289,10 +289,11 @@ def __call__(
289
289
ret = pandas .DataFrame (ret ).set_index (heading .primary_key )
290
290
return ret
291
291
292
+
292
293
class Fetch1 :
293
294
"""
294
295
Fetch object for fetching the result of a query yielding one row.
295
-
296
+
296
297
:param expression: a query expression to fetch from.
297
298
"""
298
299
0 commit comments