sqlbeautifier

package
v0.0.0-...-6f8fa1e Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

package sqlbeautifier formats a SQL string to a more human readable format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromReader

func FromReader(r io.Reader) (*bytes.Buffer, error)

FromReader reads data from the Reader interface and converts that data to a string and converts the SQL string into a beautiful human readable multi line string.

func FromString

func FromString(s string) (*bytes.Buffer, error)

FromString converts a SQL string into a beautiful human readable multi line string. The returned buffer is unique for the formatted query.

func MustFromString

func MustFromString(s string) string

MustFromString same as FromString but panics on error

Types

This section is empty.

Jump to

Keyboard shortcuts

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