0.2.0 • Published 2 years ago

@kavibios/node-etl v0.2.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 years ago

node-etl

Framework for extracting and transforming data using Javascript.

Structure

Jobs are defined in the folder src/rules/<jobname>/ and registered in src/index.mjs.

A job is a list of stages (which stages should be run can be controlled with the --stages parameter). Stages are always run in the order defined in the job.

A stage is a list of rules. Rules are always run in the order specified in the stage definition.

A rule is composed of 3 phases.

  1. The extract phase
  2. The transform phase
  3. The load phase

The extract phase provides the raw data. It can be extracted from different sources - in this project it is almost exclusively extract from the naturdatabasen source. This is a specialized source extending the sql source with syntactic sugar for getting registrations from a program. The sql source simple returns an array of rows by executing the given sql against the configured database. This is often used in stage2.

The transform phase takes each row from the extract phase and applies a logical transformation to it. This can be similar to a map function, but other transformations on the input array is possible.

The load phase loads the resulting data into an output. This could be a csv or json file, but in this project it is typically an sql loader, which loads each item in the array into a row in the specified table. Note that the columns MUST be specified expicitly.

Extractors

0.3.0-rc2

2 years ago

0.3.0-rc1

2 years ago

0.2.0-rc38

2 years ago

0.2.0-rc37

2 years ago

0.2.0

2 years ago

0.2.0-rc39

2 years ago

0.2.0-rc34

2 years ago

0.2.0-rc33

2 years ago

0.2.0-rc36

2 years ago

0.2.0-rc35

2 years ago

0.2.0-rc30

2 years ago

0.2.0-rc32

2 years ago

0.2.0-rc31

2 years ago

0.2.0-rc27

2 years ago

0.2.0-rc26

2 years ago

0.2.0-rc29

2 years ago

0.2.0-rc28

2 years ago

0.2.0-rc23

2 years ago

0.2.0-rc22

2 years ago

0.2.0-rc25

2 years ago

0.2.0-rc24

2 years ago

0.2.0-rc21

2 years ago

0.2.0-rc20

2 years ago

0.2.0-rc19

2 years ago

0.2.0-rc16

2 years ago

0.2.0-rc18

2 years ago

0.2.0-rc17

2 years ago

0.2.0-rc15

2 years ago

0.2.0-rc12

2 years ago

0.2.0-rc14

2 years ago

0.2.0-rc13

2 years ago

0.1.2-rc1

3 years ago

0.2.0-rc4

3 years ago

0.2.0-rc5

3 years ago

0.2.0-rc6

3 years ago

0.2.0-rc7

3 years ago

0.2.0-rc3

3 years ago

0.2.0-rc8

3 years ago

0.2.0-rc9

3 years ago

0.1.2

3 years ago

0.2.0-rc11

3 years ago

0.2.0-rc10

3 years ago

0.2.0-rc2

3 years ago

0.1.0-rc7

3 years ago

0.1.0-rc8

3 years ago

0.2.0-rc1

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.1.1-rc2

3 years ago

0.1.0-rc6

3 years ago

0.1.0-rc5

3 years ago

0.1.0-rc4

3 years ago

0.1.0-rc3

3 years ago

0.1.0-rc2

3 years ago