Skip to content

v0.4 beta - Export to SQL INSERTs!

Pre-release
Pre-release
Compare
Choose a tag to compare
@zikani03 zikani03 released this 03 Sep 21:37
· 61 commits to master since this release
7144a09

Introduces functionality for exporting to SQL INSERTs in a file, in addition to the existing Excel file exports using the same groovy file as input.

You can now use the following form to export an SQL file

$ java -jar zefaker.jar -f=example.groovy -rows=1000 -output=people-data.sql -sql -table="people_table"

Use the quoteIdentifiersAs function to enable column quoting for your database, currently valid arguments for that function are "mysql", "postgres", "mssql"