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.
*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
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