Skip to content

Commit

Permalink
rm empty translator usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden committed Mar 22, 2024
1 parent f7962b5 commit 1cceda3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
11 changes: 2 additions & 9 deletions docs/content/integrations/embedded-elt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ This is an example of how to setup a Sling sync between two databases such as Po

```python file=/integrations/embedded_elt/postgres_snowflake.py
from dagster_embedded_elt.sling import (
DagsterSlingTranslator,
SlingConnectionResource,
SlingResource,
sling_assets,
Expand Down Expand Up @@ -208,10 +207,7 @@ replication_config = {
}


@sling_assets(
replication_config=replication_config,
dagster_sling_translator=DagsterSlingTranslator(),
)
@sling_assets(replication_config=replication_config)
def my_assets(context, sling: SlingResource):
yield from sling.replicate(context=context)
```
Expand Down Expand Up @@ -244,10 +240,7 @@ replication_config = {
}


@sling_assets(
replication_config=replication_config,
dagster_sling_translator=DagsterSlingTranslator(),
)
@sling_assets(replication_config=replication_config)
def my_assets(context, sling: SlingResource):
yield from sling.replicate(context=context)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# pyright: reportOptionalMemberAccess=none

from dagster_embedded_elt.sling import (
DagsterSlingTranslator,
SlingConnectionResource,
SlingResource,
sling_assets,
Expand Down Expand Up @@ -48,9 +47,6 @@
}


@sling_assets(
replication_config=replication_config,
dagster_sling_translator=DagsterSlingTranslator(),
)
@sling_assets(replication_config=replication_config)
def my_assets(context, sling: SlingResource):
yield from sling.replicate(context=context)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# pyright: reportOptionalMemberAccess=none

from dagster_embedded_elt.sling import (
DagsterSlingTranslator,
SlingConnectionResource,
SlingResource,
sling_assets,
Expand Down Expand Up @@ -45,10 +44,7 @@
}


@sling_assets(
replication_config=replication_config,
dagster_sling_translator=DagsterSlingTranslator(),
)
@sling_assets(replication_config=replication_config)
def my_assets(context, sling: SlingResource):
yield from sling.replicate(context=context)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from dagster import Definitions, file_relative_path
from dagster_embedded_elt.sling import (
DagsterSlingTranslator,
sling_assets,
)
from dagster_embedded_elt.sling.resources import (
Expand All @@ -26,10 +25,7 @@
)


@sling_assets(
replication_config=replication_config,
dagster_sling_translator=DagsterSlingTranslator(),
)
@sling_assets(replication_config=replication_config)
def my_assets(context, sling: SlingResource):
yield from sling.replicate(context=context)
for row in sling.stream_raw_logs():
Expand Down

0 comments on commit 1cceda3

Please sign in to comment.