-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_pg_format
More file actions
34 lines (26 loc) · 1.19 KB
/
Copy pathdot_pg_format
File metadata and controls
34 lines (26 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# pgFormatter configuration file
# See: https://github.com/darold/pgFormatter/blob/master/doc/pg_format.conf.sample
# Case formatting
keyword-case=2 # Uppercase keywords (SELECT, FROM, WHERE)
type-case=2 # Uppercase data types (VARCHAR, INTEGER)
function-case=1 # Lowercase function names (count(), sum())
# Indentation
spaces=2 # 2-space indentation (matching your sql-formatter config)
tabs=0 # Use spaces, not tabs
# Line wrapping
wrap-limit=120 # Wrap at 120 characters (more generous for keeping things inline)
wrap-after=10 # Keep up to 10 items on same line (columns, tables, etc.)
format-type=1 # Alternative formatting (keeps GROUP BY on single line, etc.)
wrap-comment=0 # Don't reformat comments
# Comma placement
comma=end # Commas at end of lines (more common style)
comma-break=0 # Don't force newline after each comma in INSERT
# Statement spacing
nogrouping=0 # Group statements in transactions
format-type=0 # Standard formatting
# Keep formatting
keep-newline=1 # Preserve intentional blank lines
# Don't anonymize data
anonymize=0
# Output format
format=text # Plain text output (not HTML)