Skip to content

Commit

Permalink
refactor: Use a single source of truth for built-in capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jun 25, 2024
1 parent 9e051aa commit 334eca3
Show file tree
Hide file tree
Showing 15 changed files with 638 additions and 503 deletions.
4 changes: 2 additions & 2 deletions singer_sdk/connectors/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from singer_sdk import typing as th
from singer_sdk._singerlib import CatalogEntry, MetadataMapping, Schema
from singer_sdk.exceptions import ConfigValidationError
from singer_sdk.helpers.capabilities import TargetLoadMethods
from singer_sdk.helpers import capabilities

if t.TYPE_CHECKING:
from sqlalchemy.engine import Engine
Expand Down Expand Up @@ -779,7 +779,7 @@ def prepare_table(
as_temp_table=as_temp_table,
)
return
if self.config["load_method"] == TargetLoadMethods.OVERWRITE:
if self.config["load_method"] == capabilities.TargetLoadMethods.OVERWRITE:
self.get_table(full_table_name=full_table_name).drop(self._engine)
self.create_empty_table(
full_table_name=full_table_name,
Expand Down
375 changes: 0 additions & 375 deletions singer_sdk/helpers/capabilities.py

This file was deleted.

Loading

0 comments on commit 334eca3

Please sign in to comment.