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 28, 2024
1 parent 4674b3f commit 4be7e31
Show file tree
Hide file tree
Showing 17 changed files with 677 additions and 523 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 4be7e31

Please sign in to comment.