Skip to content

Huliiiiii/dprint-plugin-sql

 
 

Repository files navigation

dprint-plugin-sql

CI

Wrapper around sqlformat-rs for use as a formatting plugin for dprint.

Configuration

uppercase: bool

When set, changes reserved keywords to ALL CAPS

Default: false

linesBetweenQueries: number

Controls the number of line breaks after a query

Default: 1

ignoreCaseConvert: string[]

Ignore case conversion for specified strings in the array

Default: []

inline: bool

Keep the query in a single line

Default: false

maxInlineBlock: number

Maximum length of an inline block

Default: 50

maxInlineArguments: number

Maximum length of inline arguments If unset, keep every argument in a separate line

Default: Unlimited

maxInlineTopLevel: number

Inline the argument at the top level if they would fit a line of this length

Default: Unlimited

joinsAsTopLevel: bool

Consider any JOIN statement as a top level keyword instead of a reserved keyword

Default: false

About

Wrapper around sqlformat-rs for use as a dprint plugin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 87.9%
  • JavaScript 12.1%