Skip to content

Commit

Permalink
DH4949/refromat
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Nov 21, 2023
1 parent 9f4ca60 commit 32716b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dataherald/sql_database/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ def from_uri(
"""Construct a SQLAlchemy engine from URI."""
_engine_args = engine_args or {}
if database_uri.lower().startswith("duckdb"):
config = {
"autoload_known_extensions": False
}
config = {"autoload_known_extensions": False}
_engine_args["connect_args"] = {"config": config}
engine = create_engine(database_uri, **_engine_args)
return cls(engine, **kwargs)
Expand Down

0 comments on commit 32716b9

Please sign in to comment.