sqlgen

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenScanArg

func GenScanArg(path string, typ types.Type) string

Types

type Gen

type Gen struct {
	Interface
	// contains filtered or unexported fields
}

func New

func New(iface Interface, ss SubstructInterface) *Gen

New is a constructor for the clone code generator. This generator should be reconstructed for each package.

func (*Gen) Add

func (g *Gen) Add(getTypeForStruct func(name string) types.Type, name string, typ types.Type, decl *dsl.Declaration) error

func (*Gen) GenQueryFor

func (g *Gen) GenQueryFor(typ types.Type) error

func (*Gen) GenerateCommon

func (g *Gen) GenerateCommon()

type Interface

type Interface = ggen.Interface

type SubstructInterface

type SubstructInterface interface {
	GenSubstruct(typ, base types.Type) error
}

type TypeDesc

type TypeDesc = typedesc.TypeDesc

func GetTypeDesc

func GetTypeDesc(typ types.Type) *TypeDesc

Jump to

Keyboard shortcuts

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