Skip to content

Commit

Permalink
Use in sample taps
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Sep 6, 2024
1 parent 3169b58 commit 9e46c44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion samples/sample_tap_countries/countries_tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
CountriesStream,
)
from singer_sdk import Stream, Tap
from singer_sdk._singerlib.encoding._msgspec import MsgSpecWriter # noqa: PLC2701
from singer_sdk.typing import PropertiesList


class SampleTapCountries(Tap):
class SampleTapCountries(MsgSpecWriter, Tap):
"""Sample tap for Countries GraphQL API."""

name: str = "sample-tap-countries"
Expand Down
3 changes: 2 additions & 1 deletion samples/sample_tap_sqlite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from singer_sdk import SQLConnector, SQLStream, SQLTap
from singer_sdk import typing as th
from singer_sdk._singerlib.encoding._msgspec import MsgSpecWriter # noqa: PLC2701

DB_PATH_CONFIG = "path_to_db"

Expand Down Expand Up @@ -39,7 +40,7 @@ class SQLiteStream(SQLStream):
STATE_MSG_FREQUENCY = 10


class SQLiteTap(SQLTap):
class SQLiteTap(MsgSpecWriter, SQLTap):
"""The Tap class for SQLite."""

name = "tap-sqlite-sample"
Expand Down

0 comments on commit 9e46c44

Please sign in to comment.