Documentation ¶
Index ¶
- func ColsNamesByExpr(expr ...field.Expr) []string
- func DaoDbBlank(dao gen.Dao) *gorm.DB
- func DaoShowSQL(dao gen.Dao) string
- func DaoToSub(dao gen.Dao, alias string) gen.Dao
- func DebugGorm()
- func DefaultSimpleDay(curTime time.Time, colName, tableName string) time.Time
- func SafeStr(s string, size int) string
- func Select(do *gen.DO, columns ...interface{})
- func SelectAppend(do *gen.DO, columns ...interface{})
- func SetDbLogger(db *gorm.DB, logSql string) *gorm.DB
- func SetDefaultBusinessDay(fn BusinessDayGenFn)
- func StmtReplaceColumnValue(stmt *gorm.Statement, field *schema.Field, ...)
- type BusinessDayGenFn
- type SimpleDayCreateClause
- type SimpleDayType
- func (n SimpleDayType) CreateClauses(f *schema.Field) []clause.Interface
- func (dt *SimpleDayType) GobDecode(b []byte) error
- func (dt SimpleDayType) GobEncode() ([]byte, error)
- func (dt SimpleDayType) GormDataType() string
- func (d SimpleDayType) IsValid() bool
- func (dt SimpleDayType) MarshalJSON() ([]byte, error)
- func (dt SimpleDayType) MarshalText() ([]byte, error)
- func (dt *SimpleDayType) Scan(value interface{}) (err error)
- func (dt SimpleDayType) String() string
- func (dt *SimpleDayType) UnmarshalJSON(b []byte) error
- func (dt *SimpleDayType) UnmarshalText(data []byte) error
- func (dt SimpleDayType) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColsNamesByExpr ¶
func DefaultSimpleDay ¶
func SetDefaultBusinessDay ¶
func SetDefaultBusinessDay(fn BusinessDayGenFn)
SetDefaultBusinessDay 自定义业务日期生成函数
Types ¶
type BusinessDayGenFn ¶
BusinessDayGenFn 自定义日期生成函数,参数:当前时间,字段名,表名
type SimpleDayCreateClause ¶
func (SimpleDayCreateClause) Build ¶
func (b SimpleDayCreateClause) Build(builder clause.Builder)
func (SimpleDayCreateClause) MergeClause ¶
func (b SimpleDayCreateClause) MergeClause(c *clause.Clause)
func (SimpleDayCreateClause) ModifyStatement ¶
func (b SimpleDayCreateClause) ModifyStatement(stmt *gorm.Statement)
func (SimpleDayCreateClause) Name ¶
func (b SimpleDayCreateClause) Name() string
type SimpleDayType ¶
func (SimpleDayType) CreateClauses ¶
func (n SimpleDayType) CreateClauses(f *schema.Field) []clause.Interface
func (*SimpleDayType) GobDecode ¶
func (dt *SimpleDayType) GobDecode(b []byte) error
func (SimpleDayType) GobEncode ¶
func (dt SimpleDayType) GobEncode() ([]byte, error)
func (SimpleDayType) GormDataType ¶
func (dt SimpleDayType) GormDataType() string
GormDataType gorm common data type
func (SimpleDayType) IsValid ¶
func (d SimpleDayType) IsValid() bool
func (SimpleDayType) MarshalJSON ¶
func (dt SimpleDayType) MarshalJSON() ([]byte, error)
func (SimpleDayType) MarshalText ¶
func (dt SimpleDayType) MarshalText() ([]byte, error)
func (*SimpleDayType) Scan ¶
func (dt *SimpleDayType) Scan(value interface{}) (err error)
func (SimpleDayType) String ¶
func (dt SimpleDayType) String() string
func (*SimpleDayType) UnmarshalJSON ¶
func (dt *SimpleDayType) UnmarshalJSON(b []byte) error
func (*SimpleDayType) UnmarshalText ¶
func (dt *SimpleDayType) UnmarshalText(data []byte) error
Click to show internal directories.
Click to hide internal directories.