folio_reporting_project_extracted_derived_tables

FOLIO Reporting SIG - Project: Build a directory of extracted and derived tables

Project description

https://wiki.folio.org/display/RPT/Build+a+directory+of+extracted+and+derived+tables

Type Description
Extracted tables Tables that LDP creates.
Derived tables Tables created by the community and located in the folio-analytics repository.

Dependencies

Python 3 is required.

Install required modules through pip:

python -m pip install -r requirements.txt

Directories

Usage

Preparation

1. Download the repository.

2. Database login credentials: You need login credentials for your database.

3. Optional: Fill out the CSV file in the subdirectory /data/csv. The data to be added to the data from the database is stored in the CSV file. In the CSV file, the “table” and “attributeName” columns must be filled out as they are stored in the database. A matching takes place later via these attributes. You can check the information beforehand using the SQL query in the /sql/derived_tables subdirectory.

4. Optional: You can create a text file in the subdirectory /data/mermaid if you would like create an er diagram for a derived table. Inside the text file you only have to enter the mermaid syntax. The text file name must match the name of the derived table.

Run the program

You can run the program by using the file /python/data_pipeline.py.

Output

The generated output files with the documentation have been created in the /Output directory.