Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrakhantsevaAA committed Oct 9, 2023
1 parent 2271b6f commit b391460
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/website/docs/dlt-ecosystem/verified-sources/stripe.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,19 @@ verified source.

```python
pipeline = dlt.pipeline(
pipeline_name="stripe_pipeline", # Use a custom name if desired
destination="duckdb", # Choose the appropriate destination (e.g., duckdb, redshift, post)
dataset_name="stripe_dataset" # Use a custom name if desired
pipeline_name="stripe_pipeline", # Use a custom name if desired
destination="duckdb", # Choose the appropriate destination (e.g., duckdb, redshift, post)
dataset_name="stripe_dataset" # Use a custom name if desired
)
```

1. To load endpoints like "Plan" and "Charge" in replace mode, retrieve all data for the year 2022:

```python
source_single = stripe_source(
endpoints=("Plan", "Charge"),
start_date=datetime(2022, 1, 1),
end_date=datetime(2022, 12, 31),
endpoints=("Plan", "Charge"),
start_date=datetime(2022, 1, 1),
end_date=datetime(2022, 12, 31),
)
load_info = pipeline.run(source_single)
print(load_info)
Expand All @@ -226,9 +226,9 @@ verified source.
```python
# Load all data on the first run that was created after start_date and before end_date
source_incremental = incremental_stripe_source(
endpoints=("Invoice", ),
initial_start_date=datetime(2022, 1, 1),
end_date=datetime(2022, 12, 31),
endpoints=("Invoice", ),
initial_start_date=datetime(2022, 1, 1),
end_date=datetime(2022, 12, 31),
)
load_info = pipeline.run(source_incremental)
print(load_info)
Expand All @@ -240,7 +240,7 @@ verified source.
```python
source_single = stripe_source(
endpoints=("Plan", "Charge"),
start_date=datetime(2022, 12, 31),
start_date=datetime(2022, 12, 31),
)
source_incremental = incremental_stripe_source(
endpoints=("Invoice", ),
Expand Down

0 comments on commit b391460

Please sign in to comment.