Skip to content

Commit

Permalink
Added minification for the TEMPORARY operator
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCappelletti94 committed May 3, 2024
1 parent 64e74ed commit 6ba6c08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion minify_sql/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ pub fn minify_sql(document: &str) -> String {
}

/// List of long format data types and their corresponding short format
const LONG_FORMAT_TYPES: [(&str, &str); 4] = [
const LONG_FORMAT_TYPES: [(&str, &str); 5] = [
("INTEGER", "INT"),
("BOOLEAN", "BOOL"),
("CHARACTER", "CHAR"),
("DECIMAL", "DEC"),
("TEMPORARY", "TEMP")
];

/// Remove all multiline comments from the SQL content
Expand Down

0 comments on commit 6ba6c08

Please sign in to comment.