Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion packages/dbgpt-core/src/dbgpt/datasource/rdbms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def _sync_tables_from_db(self) -> Iterable[str]:

# SQL will raise error with schema
_schema = (
None if self.db_type == DBType.SQLite.value() else self._engine.url.database
None
if self.db_type in (DBType.SQLite.value(), DBType.DuckDb.value())
else self._engine.url.database
)
# including view support by adding the views as well as tables to the all
# tables list if view_support is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def from_parameters(
cls, parameters: DuckDbConnectorParameters
) -> "DuckDbConnector":
"""Create a new DuckDBConnector from parameters."""
return cls.from_uri(parameters.path)
return cls.from_uri(parameters.db_url())

@classmethod
def from_file_path(
Expand Down
Loading