Documentation ¶
Index ¶
- Variables
- func FieldType(refField reflect.StructField) (fType string)
- func GetAfterDeleteTriggerName(tableName string) string
- func GetAfterInsertTriggerName(tableName string) string
- func GetAfterUpdateTriggerName(tableName string) string
- func GetBeforeInsertTriggerName(tableName string) string
- func GetChoice(sql string, skipPrompt bool) (choice string)
- func GetHistoryTableName(tableName string) string
- func GetStrByLen(str string, n int) string
- func GetStructField(model interface{}) (fields map[reflect.Value]reflect.StructField)
- func IsAfterUpdateTriggerExists(tx *pg.Tx, tName string) (exists bool, err error)
- func RefTable(refField reflect.StructField) (refTable string)
- func SkipTag(object interface{}) (flag bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( QueryFp *os.File Y = "y" Yes = "yes" )
variables
Functions ¶
func FieldType ¶
func FieldType(refField reflect.StructField) (fType string)
FieldType will return field type
func GetAfterDeleteTriggerName ¶
GetAfterDeleteTriggerName will return after delete trigger name
func GetAfterInsertTriggerName ¶
GetAfterInsertTriggerName will return after insert trigger name
func GetAfterUpdateTriggerName ¶
GetAfterUpdateTriggerName will return after update trigger name
func GetBeforeInsertTriggerName ¶
GetBeforeInsertTriggerName will return before insert trigger name
func GetHistoryTableName ¶
GetHistoryTableName will reutrn history table name
func GetStrByLen ¶
GetStrByLen will return string till given length
func GetStructField ¶
func GetStructField(model interface{}) (fields map[reflect.Value]reflect.StructField)
GetStructField will return struct fields
func IsAfterUpdateTriggerExists ¶
IsAfterUpdateTriggerExists will check if after update triger exists
func RefTable ¶
func RefTable(refField reflect.StructField) (refTable string)
RefTable will reutrn reference table
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.