Skip to content
Draft
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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,6 @@ convention = "google"

[tool.pytest.ini_options]
addopts = '--durations=10'

[tool.uv.sources]
singer-sdk = { git = "https://github.com/meltano/sdk.git" }
11 changes: 10 additions & 1 deletion tap_postgres/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ class TapPostgres(SQLTap):
package_name = "meltanolabs-tap-postgres"
default_stream_class = PostgresStream

exclude_schemas = (
"information_schema",
"pg_catalog",
)

def __init__(
self,
*args,
Expand Down Expand Up @@ -561,7 +566,11 @@ def catalog_dict(self) -> dict:
return self.input_catalog.to_dict()

result: dict[str, list[dict]] = {"streams": []}
result["streams"].extend(self.connector.discover_catalog_entries())
result["streams"].extend(
self.connector.discover_catalog_entries(
exclude_schemas=self.exclude_schemas,
)
)

self._catalog_dict: dict = result
return self._catalog_dict
Expand Down
18 changes: 7 additions & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.