You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:return: self restricted to elements that are not in use by any tables in the schema
375
378
"""
376
379
returnself- [
@@ -383,6 +386,7 @@ def unused(self):
383
386
defused(self):
384
387
"""
385
388
query expression for used hashes
389
+
386
390
:return: self restricted to elements that in use by tables in the schema
387
391
"""
388
392
returnself& [
@@ -401,9 +405,9 @@ def delete(
401
405
errors_as_string=True
402
406
):
403
407
"""
404
-
:param delete_external_files: True or False. If False, only the tracking info is removed from the
405
-
external store table but the external files remain intact. If True, then the external files
406
-
themselves are deleted too.
408
+
409
+
:param delete_external_files: True or False. If False, only the tracking info is removed from the external store table but the external files remain intact. If True, then the external files themselves are deleted too.
410
+
407
411
:param errors_as_string: If True any errors returned when deleting from external files will be strings
408
412
:param limit: (integer) limit the number of items to delete
409
413
:param display_progress: if True, display progress as files are cleaned up
@@ -470,6 +474,7 @@ def __getitem__(self, store):
470
474
"""
471
475
Triggers the creation of an external table.
472
476
Should only be used when ready to save or read from external storage.
A fetch object that handles retrieving elements from the table expression.
136
+
136
137
:param expression: the QueryExpression object to fetch from.
137
138
"""
138
139
@@ -153,20 +154,13 @@ def __call__(
153
154
"""
154
155
Fetches the expression results from the database into an np.array or list of dictionaries and
155
156
unpacks blob attributes.
156
-
:param attrs: zero or more attributes to fetch. If not provided, the call will return
157
-
all attributes of this relation. If provided, returns tuples with an entry for each attribute.
157
+
158
+
:param attrs: zero or more attributes to fetch. If not provided, the call will return all attributes of this relation. If provided, returns tuples with an entry for each attribute.
158
159
:param offset: the number of tuples to skip in the returned result
159
160
:param limit: the maximum number of tuples to return
160
-
:param order_by: a single attribute or the list of attributes to order the results.
161
-
No ordering should be assumed if order_by=None.
162
-
To reverse the order, add DESC to the attribute name or names: e.g. ("age DESC", "frequency")
163
-
To order by primary key, use "KEY" or "KEY DESC"
164
-
:param format: Effective when as_dict=None and when attrs is empty
165
-
None: default from config['fetch_format'] or 'array' if not configured
166
-
"array": use numpy.key_array
167
-
"frame": output pandas.DataFrame. .
168
-
:param as_dict: returns a list of dictionaries instead of a record array.
169
-
Defaults to False for .fetch() and to True for .fetch('KEY')
161
+
:param order_by: a single attribute or the list of attributes to order the results. No ordering should be assumed if order_by=None. To reverse the order, add DESC to the attribute name or names: e.g. ("age DESC", "frequency") To order by primary key, use "KEY" or "KEY DESC"
162
+
:param format: Effective when as_dict=None and when attrs is empty None: default from config['fetch_format'] or 'array' if not configured "array": use numpy.key_array "frame": output pandas.DataFrame. .
163
+
:param as_dict: returns a list of dictionaries instead of a record array. Defaults to False for .fetch() and to True for .fetch('KEY')
170
164
:param squeeze: if True, remove extra dimensions from arrays
171
165
:param download_path: for fetches that download data, e.g. attachments
172
166
:return: the contents of the relation in the form of a structured numpy.array or a dict list
@@ -294,6 +288,7 @@ def __call__(
294
288
classFetch1:
295
289
"""
296
290
Fetch object for fetching the result of a query yielding one row.
291
+
297
292
:param expression: a query expression to fetch from.
0 commit comments