typrails

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: MIT Imports: 16 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 Module

type Module struct{}

Module of rails

func New added in v0.8.15

func New() *Module

New rails module

func (*Module) BuildCommands added in v0.8.15

func (m *Module) BuildCommands(c *typcore.BuildContext) []*cli.Command

BuildCommands is 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