load

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 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, true, true, true, true}

Functions

func GoFmt added in v0.53.0

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

GoFmt 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, pgx bool) collection.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, Query, Exec, Select, Count, Insert, Update, Upsert, Delete, Slice, Scan bool
}

Jump to

Keyboard shortcuts

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