Skip to content

freysie/sql-formatting

Repository files navigation

SQL Formatting

Format SQL source on Apple platforms using SQL Formatter, pgFormatter, and pg-minify.

Installation

.package(url: "https://github.com/freysie/sql-formatting.git", branch: "main")
import SQLFormatting

Usage

SQLFormatter.formattedString(from: "")

SQLFormatter.formattedString(from: "", indent: "\t", uppercase: true)

SQLFormatter.extendedFormattedString(from: "")

SQLFormatter.minifiedString(from: "")

SQLFormatter.minifiedString(from: "", compress: true)

About

Popular SQL formatters bridged from JS and Perl to Swift.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published