fivetran-connector-sdk 0.9.16.1__py3-none-any.whl → 0.9.30.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@ from fivetran_connector_sdk.protos import common_pb2
25
25
  from fivetran_connector_sdk.protos import connector_sdk_pb2
26
26
  from fivetran_connector_sdk.protos import connector_sdk_pb2_grpc
27
27
 
28
- __version__ = "0.9.16.1"
28
+ __version__ = "0.9.30.1"
29
29
 
30
30
  MAC_OS = "mac"
31
31
  WIN_OS = "windows"
@@ -207,10 +207,21 @@ class Operations:
207
207
 
208
208
  @staticmethod
209
209
  def checkpoint(state: dict) -> connector_sdk_pb2.UpdateResponse:
210
- """Tries to upload all rows to the data warehouse and save state.
210
+ """Checkpoint saves the connector's state. State is a dict which stores information to continue the
211
+ sync from where it left off in the previous sync. For example, you may choose to have a field called
212
+ "cursor" with a timestamp value to indicate up to when the data has been synced. This makes it possible
213
+ for the next sync to fetch data incrementally from that time forward. See below for a few example fields
214
+ which act as parameters for use by the connector code.\n
215
+ {
216
+ "initialSync": true,\n
217
+ "cursor": "1970-01-01T00:00:00.00Z",\n
218
+ "last_resync": "1970-01-01T00:00:00.00Z",\n
219
+ "thread_count": 5,\n
220
+ "api_quota_left": 5000000
221
+ }
211
222
 
212
223
  Args:
213
- state (dict): The state to checkpoint.
224
+ state (dict): The state to checkpoint/save.
214
225
 
215
226
  Returns:
216
227
  connector_sdk_pb2.UpdateResponse: The checkpoint response.
@@ -1350,6 +1361,10 @@ def main():
1350
1361
 
1351
1362
  args = parser.parse_args()
1352
1363
 
1364
+ if args.command.lower() == "version":
1365
+ print("fivetran_connector_sdk " + __version__)
1366
+ return
1367
+
1353
1368
  connector_object = find_connector_object(args.project_path)
1354
1369
 
1355
1370
  # Process optional args
@@ -1400,10 +1415,6 @@ def main():
1400
1415
  except Exception as e:
1401
1416
  print("ERROR: Reset Failed")
1402
1417
  raise e
1403
-
1404
- elif args.command.lower() == "version":
1405
- print("fivetran_connector_sdk " + __version__)
1406
-
1407
1418
  else:
1408
1419
  if not suggest_correct_command(args.command):
1409
1420
  raise NotImplementedError(f"Invalid command: {args.command}, see `fivetran --help`")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fivetran_connector_sdk
3
- Version: 0.9.16.1
3
+ Version: 0.9.30.1
4
4
  Summary: Build custom connectors on Fivetran platform
5
5
  Author-email: Fivetran <developers@fivetran.com>
6
6
  Project-URL: Homepage, https://fivetran.com/docs/connectors/connector-sdk
@@ -1,4 +1,4 @@
1
- fivetran_connector_sdk/__init__.py,sha256=0RCt-TWYvSU0KxAwamuPQNCBZQneFN05zE4yme4iDYo,57921
1
+ fivetran_connector_sdk/__init__.py,sha256=evjNoUrmWsFq0BuI8OaPdMbW8bqTHb6ux9xSXUwW34E,58596
2
2
  fivetran_connector_sdk/protos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  fivetran_connector_sdk/protos/common_pb2.py,sha256=kUwVcyZHgLigNR-KnHZn7dHrlxaMnUXqzprsRx6T72M,6831
4
4
  fivetran_connector_sdk/protos/common_pb2.pyi,sha256=S0hdIzoXyyOKD5cjiGeDDLYpQ9J3LjAvu4rCj1JvJWE,9038
@@ -6,8 +6,8 @@ fivetran_connector_sdk/protos/common_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
6
6
  fivetran_connector_sdk/protos/connector_sdk_pb2.py,sha256=9Ke_Ti1s0vAeXapfXT-EryrT2-TSGQb8mhs4gxTpUMk,7732
7
7
  fivetran_connector_sdk/protos/connector_sdk_pb2.pyi,sha256=FWYxRgshEF3QDYAE0TM_mv4N2gGvkxCH_uPpxnMc4oA,8406
8
8
  fivetran_connector_sdk/protos/connector_sdk_pb2_grpc.py,sha256=ZfJLp4DW7uP4pFOZ74s_wQ6tD3eIPi-08UfnLwe4tzo,7163
9
- fivetran_connector_sdk-0.9.16.1.dist-info/METADATA,sha256=8vAcXZDzqs_qHtooJDxaqASHcTSfM0XeUGz_4lbrTXM,2784
10
- fivetran_connector_sdk-0.9.16.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
11
- fivetran_connector_sdk-0.9.16.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
12
- fivetran_connector_sdk-0.9.16.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
13
- fivetran_connector_sdk-0.9.16.1.dist-info/RECORD,,
9
+ fivetran_connector_sdk-0.9.30.1.dist-info/METADATA,sha256=C9BAaNQsiejj36Rak5Ys7Bs6T2vkb1Ym2VtLDEMZphk,2784
10
+ fivetran_connector_sdk-0.9.30.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
11
+ fivetran_connector_sdk-0.9.30.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
12
+ fivetran_connector_sdk-0.9.30.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
13
+ fivetran_connector_sdk-0.9.30.1.dist-info/RECORD,,