diff options
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/filters.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sqlparse/filters.py b/sqlparse/filters.py index ce5dd85..c5165be 100644 --- a/sqlparse/filters.py +++ b/sqlparse/filters.py @@ -651,13 +651,11 @@ class Limit: return -1 -def Compact(sql, includePath="sql"): - """Function that return a compacted version of the input SQL query""" +def compact(stream): + """Function that return a compacted version of the stream""" pipe = Pipeline() - pipe.append(tokenize) - pipe.append(IncludeStatement(includePath)) pipe.append(StripComments()) pipe.append(StripWhitespace) - return pipe(sql) + return pipe(stream) |
