Skip to content

Commit e1a1203

Browse files
Merge pull request #109 from skyflowapi/SK-1088-update-readme-and-changelog-add-request-index-in-batch-insert-responses
SK-1088 Update README and CHANGELOG
2 parents 663b17e + dc29872 commit e1a1203

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.13.1] - 2023-09-14
6+
### Changed
7+
- Add `request_index` in responses for insert method.
8+
59
## [1.13.0] - 2023-09-04
610
### Added
711
- Added new Query method.

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,21 +208,23 @@ client.insert(
208208

209209
Skyflow returns tokens for the record you just inserted.
210210

211-
```python
211+
```json
212212
{
213213
"records": [
214214
{
215215
"table": "cards",
216216
"fields": {
217217
"cardNumber": "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
218218
"cvv": "1989cb56-63da-4482-a2df-1f74cd0dd1a5",
219+
"skyflow_id": "d863633c-8c75-44fc-b2ed-2b58162d1117"
219220
},
221+
"request_index": 0
220222
}
221223
]
222224
}
223225
```
224226

225-
**Insert call [example](https://github.com/skyflowapi/skyflow-python/blob/main/samples/insert_with_continue_on_error_sample.py) with continueOnError option**
227+
**Insert call [example](https://github.com/skyflowapi/skyflow-python/blob/main/samples/insert_with_continue_on_error_sample.py) with `continueOnError` option**
226228

227229
```python
228230
client.insert(
@@ -256,15 +258,18 @@ Sample Response
256258
"table": "cards",
257259
"fields": {
258260
"card_number": "f37186-e7e2-466f-91e5-48e2bcbc1",
259-
"full_name": "1989cb56-63a-4482-adf-1f74cd1a5"
260-
}
261+
"full_name": "1989cb56-63a-4482-adf-1f74cd1a5",
262+
"skyflow_id": "3daf1a7f-bc7f-4fc9-8c56-a6e4e93231e6"
263+
},
264+
"request_index": 0
261265
}
262266
],
263267
"errors": [
264268
{
265269
"error": {
266270
"code": 404,
267-
"description": "Object Name pii_field was not found for Vault - requestId : id1234"
271+
"description": "Object Name pii_field was not found for Vault - requestId : af4aad11-f276-474d-b626-c75c8b35d49e",
272+
"request_index": 1
268273
}
269274
}
270275
]
@@ -294,15 +299,17 @@ client.insert(
294299

295300
Skyflow returns tokens, with `upsert` support, for the record you just inserted.
296301

297-
```python
302+
```json
298303
{
299304
"records": [
300305
{
301306
"table": "cards",
302307
"fields": {
303308
"cardNumber": "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
304309
"cvv": "1989cb56-63da-4482-a2df-1f74cd0dd1a5",
310+
"skyflow_id": "60b32788-12ec-4dd7-9da5-0146c3afbe11"
305311
},
312+
"request_index": 0
306313
}
307314
]
308315
}

0 commit comments

Comments
 (0)