gen

package
v0.0.0-...-7203340 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(g *graph.Graph, out string, dialects []dialect.API) error

Gen generates all the ORM files for a given struct in a given package. st is the type descriptor of the struct

Types

type TemplateData

type TemplateData struct {
	// The name	of the new created package
	Graph          *graph.Graph
	Dialects       []dialect.API
	Public         string
	Private        string
	Table          dialect.Table
	RelationTables map[string]dialect.Table
	Package        string
}

TemplateData arguments for the templates

Jump to

Keyboard shortcuts

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