Skip to content

Commit 913871b

Browse files
committed
2 parents 577e549 + ca84907 commit 913871b

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

Readme.MD

+17-22
Original file line numberDiff line numberDiff line change
@@ -275,28 +275,23 @@ go mod tidy
275275
Set up a `.yaml` configuration file in the root directory. Define inputs, transformations, validations, and outputs as per your workflow needs. Here's a basic example:
276276

277277
```yaml
278-
pipeline:
279-
- name: "CSV to MongoDB Migration"
280-
input:
281-
type: "CSV"
282-
source: "./data/input.csv"
283-
validation:
284-
schema:
285-
fields:
286-
- name: "id"
287-
type: "integer"
288-
required: true
289-
- name: "name"
290-
type: "string"
291-
required: true
292-
transformation:
293-
- map:
294-
from: "old_field_name"
295-
to: "new_field_name"
296-
output:
297-
type: "MongoDB"
298-
destination: "mongodb://localhost:27017/fractal_db"
299-
collection: "data_output"
278+
error-handling:
279+
strategy: LOG_AND_CONTINUE
280+
inputconfig:
281+
csvsourcefilename: sample.csv
282+
inputmethod: CSV
283+
outputconfig:
284+
csvdestinationfilename: test.csv
285+
outputmethod: CSV
286+
cronjob:
287+
repetition_interval: "1h"
288+
monitoring:
289+
job_status:"pending"
290+
transformations:
291+
-ADD_FIELD("processed_at", CURRENT_TIME())
292+
validations:
293+
-FIELD("age") RANGE(30,35)
294+
300295
```
301296

302297
### Running Fractal

0 commit comments

Comments
 (0)