Skip to content

Instantly share code, notes, and snippets.

@arsham
Last active January 25, 2016 08:53
Show Gist options
  • Save arsham/6631226 to your computer and use it in GitHub Desktop.
Save arsham/6631226 to your computer and use it in GitHub Desktop.
Sublime Text 2/3 mysql build system. Change USERNAME, PASSWORD, DATABASE and the output file to your needs. Note: on cmd line, change "subl3" to proper application name.
{
"cmd": ["mysql -u USERNAME -pPASSWORD DATABASE -t < $file >> /tmp/output.sql ; subl3 /tmp/output.sql"],
"selector": "source.sql",
"shell" : true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment