format

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SQL

func SQL(dst io.Writer, v interface{}, options ...Option) error

SQL takes an arbitrary `model.*` object and formats it as SQL, writing its result to `dst`

Types

type Option added in v0.0.9

type Option = schemalex.Option

func WithIndent added in v0.0.9

func WithIndent(s string, n int) Option

WithIndent specifies the indent string to use, and the length. For example, if you specify WithIndent(" " /* single space */, 2), the indent will be 2 spaces per level.

Please note that no check on the string will be performed, so anything you specify will be used as-is.

Jump to

Keyboard shortcuts

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