nijikokun / generate-schema

🧞 Convert JSON Objects to MySQL, JSON Schema, Mongoose, Google BigQuery, Swagger, and more.
MIT License
1.04k stars 136 forks source link

Bugs? + Additional documentation for mysql. #43

Open goldingdamien opened 6 years ago

goldingdamien commented 6 years ago

I want to use the mysql function to generate SQL schema from JSON data. However, I can not find any documentation and executing an example did not provide an intuitive result.

I would like to have one JSON file to generate multiple mysql table schema. Just basic schema would be enough(primary id, boolean, date, etc.).

Please could you provide simple documentation on possible inputs, outputs and how to achieve what I have stated above. Regards.

The information I did find: https://github.com/nijikokun/generate-schema/pull/25

*One thing I did notice was that the output of the command below is wrapped in double quotes and \n characters are displayed. Also, it is not clear if a table name parameter can be passed. generate-schema --mysql data.json > output.sql