Skip to content

Commit e8fc892

Browse files
feat: Update SDK version to support generating fake data (#218)
Closes #215 --------- Co-authored-by: Edgar Ramírez-Mondragón <[email protected]>
1 parent f17188d commit e8fc892

File tree

4 files changed

+40
-8
lines changed

4 files changed

+40
-8
lines changed

.github/workflows/meltano-run.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
output_db: nested.db
2929
target_table: users
3030
install_extractor: false
31+
- tap: tap-csv
32+
mapping: fake
33+
output_db: tap_csv.db
34+
target_table: customers
35+
install_extractor: false
3136
steps:
3237
- uses: actions/checkout@v4
3338

meltano.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ plugins:
7272
users:
7373
id: id
7474
fields: "[f for f in fields if f['key'] != 'age']"
75+
- name: fake
76+
config:
77+
stream_maps:
78+
customers:
79+
id: id
80+
first_name: first_name
81+
cc: fake.credit_card_number() # add a new field with a fake credit card number
82+
__else__: __NULL__
83+
faker_config:
84+
locale: [en_US]
85+
seed: 123456
7586
environments:
7687
- name: dev
7788
config:

poetry.lock

Lines changed: 23 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ documentation = "https://github.com/MeltanoLabs/meltano-map-transform#readme"
1818

1919
[tool.poetry.dependencies]
2020
python = ">=3.8"
21-
singer-sdk = "~=0.35.0"
21+
singer-sdk = {version = "~=0.35.0", extras = ["faker"]}
2222

2323
[tool.poetry.dev-dependencies]
2424
pytest = ">=7.4.4"

0 commit comments

Comments
 (0)