A lightweight Python3 library for describing SQL statements using JSON
Is this project helpful? Send me a simple warm message!
- input - text file, string, dict
- kwargs
TBD
TBD
TBD
TBD
TBD
TBD
There is required Python3 in version 3.4 or later:
$ pip3 install json2sql
The code was originally placed in fabric8-analytics project for instrumentation of jobs based on API requests or periodic jobs written in YAML/JSON config files. Code was extracted to provide basic JSON/YAML/dict to SQL conversion.
This project uses mosql under the hood for creating SQL statements. However it was not possible to use mosql to create more sophisticated queries (such as joins described by jobs or nested select queries). Check out mosql page for more details.