Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more readable config
  • Loading branch information
Sung Won Chung committed Dec 18, 2023
commit e4a7cfbb35249ac1e1a615525be5e222d9fd213c
5 changes: 2 additions & 3 deletions data_diff/databases/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ def create_connection(self):
# 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__}"
connection = ddb.connect(
database=self._args["filepath"], config={"custom_user_agent": custom_user_agent}
)
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()
custom_user_agent_filtered = custom_user_agent_results[0][0]
assert custom_user_agent in custom_user_agent_filtered
Expand Down
1 change: 1 addition & 0 deletions data_diff_demo
Submodule data_diff_demo added at d0784e
1 change: 1 addition & 0 deletions datafold-demo-sung
Submodule datafold-demo-sung added at 6ebfb0