sqlfmt

package module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

README

sqlfmt

Experimental SQL formatter with width-aware output

Based on http://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FmtJSON added in v0.5.0

func FmtJSON(s string) (pretty.Doc, error)

func FmtSQL added in v0.5.0

func FmtSQL(cfg tree.PrettyCfg, stmts []string) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL