Skip to content

Instantly share code, notes, and snippets.

@wgx
Created March 9, 2019 11:52
Show Gist options
  • Save wgx/a4370547f51f9cf4e42ec9e70d52278d to your computer and use it in GitHub Desktop.
Save wgx/a4370547f51f9cf4e42ec9e70d52278d to your computer and use it in GitHub Desktop.

To convert a file, use to the SQLizerFile object, like this:

using SQLizerClient;

var file = new SQLizerFile("source.csv");

file.DatabaseType = DatabaseType.MySQL;
file.TableName = "my_table";
file.HasHeaders = true;
file.CheckTableExists = true;
file.InsertSpacing = 250;

await file.Convert("destination.sql");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment