Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MysqlDriver defines the name of the mysql driver MysqlDriver = "mysql" // Percent defines the symbol that can be used to simplify the query statement building // for example, when using fmt.Sprintf(), using this variable will avoid issue with double % inside the print Percent = "%" // NoRow defines the error string when no record found in the query result NoRow = "sql: no rows in result set" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DbQuery ¶
type DbQuery struct {
Q string `json:"query"`
}
DbQuery defines the query parameter
it is used to wrap query param and
type QueryArgs ¶
type QueryArgs struct { Query string `db:"query"` Args interface{} `db:"args"` }
QueryArgs defines the query arguments
it will be used for building each query for the Named Query Execution
Click to show internal directories.
Click to hide internal directories.