Documentation ¶
Overview ¶
simplest package ever to put the table name in place Usage bob.Table(&User{}).Build(`SELECT * FROM :table`)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bob ¶
type Bob struct {
// contains filtered or unexported fields
}
func Table ¶
func Table(i interface{}) *Bob
Table accepts a pointer to a struct the struct should have TableName() string method defined on it. It calls the TableName() method to get the tablename or defaults to snakecaseing
type StringArray ¶
type StringArray []string
func (*StringArray) Scan ¶
func (v *StringArray) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.