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
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,13 +214,14 @@ Constructor to instantiate `Table` class. If `references` argument is provided,
214
214
215
215
-`(str/None)` - returns the table's SHA256 hash if it's already read using e.g. `table.read`, otherwise returns `None`. In the middle of an iteration it returns hash of already read contents
Iterates through the table data and emits rows cast based on table schema. Data casting can be disabled.
220
220
221
221
-`keyed (bool)` - iterate keyed rows
222
222
-`extended (bool)` - iterate extended rows
223
223
-`cast (bool)` - disable data casting if false
224
+
-`integrity` (dict) - dictionary in a form of `{'size': <bytes>, 'hash': '<sha256>'}` to check integrity of the table when it's read completely. Both keys are optional.
224
225
-`relations (dict)` - dictionary of foreign key references in a form of `{resource1: [{field1: value1, field2: value2}, ...], ...}`. If provided, foreign key fields will checked and resolved to one of their references (/!\ one-to-many fk are not completely resolved).
225
226
-`foreign_keys_values (dict)` - three-level dictionary of foreign key references optimized to speed up validation process in a form of `{resource1: { (foreign_key_field1, foreign_key_field2) : { (value1, value2) : {one_keyedrow}, ... }}}`. If not provided but relations is true, it will be created before the validation process by *index_foreign_keys_values* method
226
227
-`(exceptions.TableSchemaException)` - raises any error that occurs during this process
@@ -229,13 +230,14 @@ Iterates through the table data and emits rows cast based on table schema. Data
Read the whole table and returns as array of rows. Count of rows could be limited.
235
236
236
237
-`keyed (bool)` - flag to emit keyed rows
237
238
-`extended (bool)` - flag to emit extended rows
238
239
-`cast (bool)` - flag to disable data casting if false
240
+
-`integrity` (dict) - dictionary in a form of `{'size': <bytes>, 'hash': '<sha256>'}` to check integrity of the table when it's read completely. Both keys are optional.
239
241
-`relations (dict)` - dict of foreign key references in a form of `{resource1: [{field1: value1, field2: value2}, ...], ...}`. If provided foreign key fields will checked and resolved to its references
240
242
-`limit (int)` - integer limit of rows to return
241
243
-`foreign_keys_values (dict)` - three-level dictionary of foreign key references optimized to speed up validation process in a form of `{resource1: { (foreign_key_field1, foreign_key_field2) : { (value1, value2) : {one_keyedrow}, ... }}}`
0 commit comments