Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connector ¶
type Connector struct { DbName string `short:"C" long:"dbname" description:"db/connector name" ` Driver string `short:"D" long:"driver" description:"driver" ` DSN string `short:"A" long:"dsn" description:"DSN" ` Secret string `short:"E" long:"secret" description:"database secret" ` Output string `short:"O" long:"output" description:"output style" choice:"c" choice:"b" ` }
func (*Connector) ResponseField ¶
type Generate ¶
type Generate struct { Name string `short:"N" long:"name" description:"view DbName/route URI" ` Parameters []string `short:"P" long:"params" description:"parameters in form name[:type:location]" ` Table string `short:"T" long:"table" description:"table" ` SQLLocation string `short:"S" long:"sql" description:"SQL location" ` Relations []string `short:"R" long:"relation" description:"relation in form of viewName:tableName" ` }
type Options ¶
type Options struct { Port int `short:"p" long:"port" description:"port" ` RouteURL string `short:"r" long:"mode" description:"route URL" ` DependencyURL string `short:"d" long:"deps" description:"dependencies URL" ` ConfigURL string `short:"c" long:"config" description:"configuration URL" ` Generate Connector }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.