typrails

package
v0.8.27 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Name           string
	Type           string
	Table          string
	Cache          string
	ProjectPackage string
	Fields         []Field
	Forms          []Field
}

Entity of database

type Fetcher

type Fetcher struct {
	dig.In
	*sql.DB
}

Fetcher responsible to fetch entity

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(pkg, table, entity string) (e *Entity, err error)

Fetch entity from database based on table name

type Field

type Field struct {
	Name      string
	Type      string
	Udt       string
	Column    string
	StructTag string
}

Field of entity

func CreateField

func CreateField(column, udt string) Field

CreateField to create field

type InfoSchema

type InfoSchema struct {
	ColumnName string
	DataType   string
}

InfoSchema is infomation schema from database

type KeyValue added in v0.8.22

type KeyValue struct {
	Key   string
	Value string
}

KeyValue is combination key and value

type Rails added in v0.8.20

type Rails struct{}

Rails of rails

func New added in v0.8.15

func New() *Rails

New rails module

func (*Rails) Commands added in v0.8.20

func (m *Rails) Commands(c *typbuildtool.Context) []*cli.Command

Commands to exectuce from Build-Tool

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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