Documentation
¶
Index ¶
- Constants
- Variables
- func Generate()
- func MakeDir(projectPath string) error
- func MakeRelativeDir(parentDir, dirPath string) error
- func MultiRunCmdInDir(dirPath string, cmds ...Command) error
- func RunCmdInDir(dirPath string, cmd string, args ...string) error
- type Command
- type Config
- type FieldSchema
- type Schema
- type TableSchema
Constants ¶
View Source
const ( FieldInt string = "int" FieldString string = "string" FieldTimestamp string = "timestamp" )
View Source
const ( UnknownFieldError string = "unknown field" NoPrimaryKeyError string = "no primary key in table" )
View Source
const Version string = "v0.1.0"
Variables ¶
View Source
var TypeMap = map[string]string{ FieldInt: "number", FieldString: "string", FieldTimestamp: "Date", }
Functions ¶
func MakeRelativeDir ¶
func MultiRunCmdInDir ¶
Types ¶
type Config ¶
type FieldSchema ¶
type Schema ¶
type Schema struct {
Tables []TableSchema `yaml:"tables"`
}
type TableSchema ¶
type TableSchema struct {
Name string `yaml:"name"`
Fields []FieldSchema `yaml:"fields"`
}
Click to show internal directories.
Click to hide internal directories.