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
+56-2Lines changed: 56 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -429,9 +429,14 @@ Sample response:
429
429
430
430
### Get
431
431
432
-
To retrieve data using Skyflow IDs or unique column values, use the `get(records: dict)` method. The `records` parameter takes a Dictionary that contains either an array of Skyflow IDs or a unique column name and values.
432
+
To retrieve data using Skyflow IDs or unique column values, use the `get(records: dict,options: GetOptions)` method. The `records` parameter takes a Dictionary that contains either an array of Skyflow IDs or a unique column name and values.The second parameter options is a GetOptions object that retrieves tokens of Skyflow IDs.
433
433
434
-
Note: You can use either Skyflow IDs or `unique` values to retrieve records. You can't use both at the same time.
434
+
Note:
435
+
436
+
- You can use either Skyflow IDs or `unique` values to retrieve records. You can't use both at the same time.
437
+
- GetOptions parameter applicable only for retrieving tokens using Skyflow ID.
438
+
- You can't pass GetOptions along with the redaction type.
439
+
-`tokens` defaults to false.
435
440
436
441
```python
437
442
{
@@ -525,6 +530,55 @@ Sample response:
525
530
}
526
531
```
527
532
533
+
The following snippet shows how to use the `get()` method with GetOptions.
For retrieving using SkyflowID's, use the get_by_id(records: dict) method. The records parameter takes a Dictionary that contains records to be fetched as shown below:
0 commit comments