https://github.com/dllatas/illapa
Utility that transforms config files describing a relational DB schema into the actual SQL code
https://github.com/dllatas/illapa
db db-schema ddl-parser sql yaml
Last synced: 27 days ago
JSON representation
Utility that transforms config files describing a relational DB schema into the actual SQL code
- Host: GitHub
- URL: https://github.com/dllatas/illapa
- Owner: dllatas
- License: gpl-3.0
- Created: 2018-12-17T17:10:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T12:38:05.000Z (about 7 years ago)
- Last Synced: 2025-03-01T16:05:28.597Z (over 1 year ago)
- Topics: db, db-schema, ddl-parser, sql, yaml
- Language: JavaScript
- Size: 189 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Illapa
[](https://circleci.com/gh/dllatas/illapa)
Utility that transforms config files describing a relational DB schema into the actual SQL code.
Illapa is the Quechua word for lightning. In the Incan mythology, it was believed that the world was divided in three different entitiesi: upper world, "our" world, and lower world. The lightning was a godness able to cross between the upper and "our" world. As it stands with Illapa, the representation level drops from the highest one to a high one: config files to SQL code.
The use case for Illapa is a DROP - CREATE - LOAD loop. It is suitable during development phase, but not good for production and evolving a DB over time.
The library is opinionated since it requires that the config files follow certain structure. Each files is defined by a template.
### Installation
### Flow
The tables dependency is sorted by using Teseo. In that sense, Teseo can read the files and process it. However, at the moment Teseo does not return the content of the files sorted.
01. input the config files
- define a dir and the format
- inject schema as a dependency
02. read files and parse them from config format to js
03. order them using teseo
04. create schema using illapa
### Usage
### Contributing
### Roadmap
### License
### Project Status
### Testing with Docker
POSTGRESS_passeord MIGHT NOT be needed
```
docker run --name pg-test -e POSTGRESS_PASSWORD=admin -d postgres
docker exec -it pg-test psql -U postgres
```
docker run --name mysql-test -e MYSQL_ROOT_HOST=* -e MYSQL_ROOT_PASSWORD=admin -d percona:5
docker exec -it mysql-test bash
bash-4.2$ mysql -u root -p