Module sql_minifier::prelude
source · Expand description
Prelude module
Macros§
- This macro will minify all the SQL files passed as arguments and save them with the same name but with ‘_minified.sql’ appended to the original filename So if the file name is ‘file.sql’, the minified file will be ‘file_minified.sql’
Functions§
- This function will minify SQL file and write the output to a new file
- Parse the file and replace the long format data types by the short format, while ignoring SQL comments. The function should read line by line the file, split at whitespaces and convert long format data types to short format.