-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
82 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import typing as t | ||
|
||
from dlt.common.configuration import with_config, known_sections | ||
from dlt.common.destination.reference import DestinationClientConfiguration, Destination, DestinationCapabilitiesContext | ||
|
||
from dlt.destinations.impl.dummy.configuration import DummyClientConfiguration, DummyClientCredentials | ||
from dlt.destinations.impl.dummy import capabilities | ||
|
||
if t.TYPE_CHECKING: | ||
from dlt.destinations.impl.dummy.dummy import DummyClient | ||
|
||
|
||
class dummy(Destination): | ||
|
||
spec = DummyClientConfiguration | ||
|
||
@property | ||
def capabilitites(self) -> DestinationCapabilitiesContext: | ||
return capabilities() | ||
|
||
@property | ||
def client_class(self) -> t.Type["DummyClient"]: | ||
from dlt.destinations.impl.dummy.dummy import DummyClient | ||
|
||
return DummyClient | ||
|
||
@with_config(spec=DummyClientConfiguration, sections=(known_sections.DESTINATION, 'dummy'), accept_partial=True) | ||
def __init__( | ||
self, | ||
credentials: DummyClientCredentials = None, | ||
**kwargs: t.Any, | ||
) -> None: | ||
super().__init__(kwargs['_dlt_config']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import typing as t | ||
|
||
from dlt.common.configuration import with_config, known_sections | ||
from dlt.common.destination.reference import DestinationClientConfiguration, Destination | ||
|
||
from dlt.destinations.impl.mssql.configuration import MsSqlCredentials, MsSqlClientConfiguration | ||
from dlt.destinations.impl.mssql import capabilities | ||
|
||
if t.TYPE_CHECKING: | ||
from dlt.destinations.impl.mssql.mssql import MsSqlClient | ||
|
||
|
||
class mssql(Destination): | ||
|
||
capabilities = capabilities() | ||
spec = MsSqlClientConfiguration | ||
|
||
@property | ||
def client_class(self) -> t.Type["MsSqlClient"]: | ||
from dlt.destinations.impl.mssql.mssql import MsSqlClient | ||
|
||
return MsSqlClient | ||
|
||
@with_config(spec=MsSqlClientConfiguration, sections=(known_sections.DESTINATION, 'mssql'), accept_partial=True) | ||
def __init__( | ||
self, | ||
credentials: MsSqlCredentials = None, | ||
create_indexes: bool = True, | ||
**kwargs: t.Any, | ||
) -> None: | ||
super().__init__(kwargs['_dlt_config']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters