load

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllFuncFlags = FuncFlags{true, true, true, true, true, true, true}

Functions

func Format

func Format(in io.Reader) (io.Reader, error)

Format formats a template using gofmt.

func LastDirName

func LastDirName(full string) string

func Load

func Load(pkgStore parse.PackageStore, name parse.LType, mainPkg string, fileTags stypes.Tags) (*schema.TableDescription, error)

func PackagesToImport

func PackagesToImport(flags FuncFlags, hasPrimaryKey bool) util.StringSet

func PrimaryInterface

func PrimaryInterface(table *schema.TableDescription, genSchema bool) string

func SecondaryInterface

func SecondaryInterface(flags FuncFlags) string

Types

type FuncFlags

type FuncFlags struct {
	Schema, Exec, Select, Insert, Update, Delete, Slice bool
}

Jump to

Keyboard shortcuts

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