Documentation ¶
Index ¶
Constants ¶
View Source
const ( // devMode Dev = "dev" Prod = "prod" // default config file dir ConfDir = "conf/" // db sql const GtSubSQL = "sub_sql" GtClientPage = "clientPage" GtClientPageUnderLine = "client_page" GtEveryPage = "everyPage" GtEveryPageUnderLine = "every_page" GtOrder = "order" GtKey = "key" GtMock = "mock" // gt tag GT = "gt" GtField = "field" GtValid = "valid" GtTrans = "trans" GtIgnore = "ignore" Gt_ = "-" )
devMode const key words
View Source
const ( ClientPage = 1 EveryPage = 10 )
default page
View Source
const ( WhereS = "where %s " AndS = "and %s " OrderDesc = "%s.id desc" OrderS = "order by %s " ParamAnd = " = ? and " SelectFrom = "select %s from %s " Distinct = "distinct " Count = "count(*) as total_num" CountDistinct = "count(distinct %s) as total_num" SelectCount = "select " + Count + " " SelectCountDistinct = "select " + CountDistinct + " " SelectCountFrom = SelectCount + "from %s " )
part sql
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.