File: test_simple_comment_split.sql

package info (click to toggle)
sqlfmt 0.29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,580 kB
  • sloc: python: 10,007; sql: 5,626; makefile: 39
file content (21 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
select -- not distinct, just an ordinary select here, no big deal at all, it's okay really
    my_first_field + an_operation, -- here is a long comment to be wrapped above this line
    my_second_field, -- a short comment
    -- standalone for third
    my_third_field + another_long_operation -- here is another long comment to be wrapped but not indented
from my_really_long_data_source -- another comment that is a little bit too long to stay here
where -- this should stay
    true
-- one last comment
)))))__SQLFMT_OUTPUT__(((((
select
    my_first_field
    + an_operation,
    my_second_field,
    my_third_field
    + another_long_operation
from
    my_really_long_data_source
where
    true