Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
Prev Previous commit
Next Next commit
user agent spec
  • Loading branch information
Sung Won Chung committed Dec 18, 2023
commit 3b7e96859acc3d08d657d2e4b7a5378a1b0e30d3
2 changes: 1 addition & 1 deletion data_diff/databases/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def create_connection(self):
try:
# custom_user_agent is only available in duckdb >= 0.9.2
if parse_version(ddb.__version__) >= parse_version("0.9.2"):
custom_user_agent = f"data-diff {__version__}"
custom_user_agent = f"data-diff/v{__version__}"
config = {"custom_user_agent": custom_user_agent}
connection = ddb.connect(database=self._args["filepath"], config=config)
custom_user_agent_results = connection.sql("PRAGMA USER_AGENT;").fetchall()
Expand Down