format

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatColumnType

func FormatColumnType(dst io.Writer, col model.ColumnType) error

func FormatDatabase

func FormatDatabase(dst io.Writer, d model.Database) error

func FormatIndex

func FormatIndex(dst io.Writer, index model.Index) error

func FormatReference

func FormatReference(dst io.Writer, r model.Reference) error

func FormatTable

func FormatTable(dst io.Writer, table model.Table) error

func FormatTableColumn

func FormatTableColumn(dst io.Writer, col model.TableColumn) error

func FormatTableOption

func FormatTableOption(dst io.Writer, option model.TableOption) error

func SQL

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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