Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dondaum authored Nov 13, 2019
1 parent 07b1c85 commit 8c9f1db
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# parsesql
A small python based sql parser focusing on finding table dependencies within database views. Currently only working with Snowflake ANSI Sql

The current implementation handles the parser as an seperate app that can be used to parse sql files. This is not a stable version. Within the
next month the goal is to translate that app in a pip package.

## How to use the parser:
1. Download the repository
2. Intialize the pipenv or generate a requirement.text and intialize it
3. Create a json configuration file under parser/config/configuration.json (There is an example configuration available)
4. Configure the SQLAlchemy engine
5. Create the target database table (Sqllite or Snowflake engine) with SQLAlchemy. Therefore run:
```
python parser/main/database/init_db.py
```
6. Configure the Runner class (multiprocessing, parsing vs. dataloading)
7. Run the main module with:
```
python parser/app.py
```

0 comments on commit 8c9f1db

Please sign in to comment.