forked from mirror/gorm
37 lines
827 B
Go
37 lines
827 B
Go
package schema
|
|
|
|
import (
|
|
"gorm.io/gorm/clause"
|
|
)
|
|
|
|
// GormDataTypeInterface gorm data type interface
|
|
type GormDataTypeInterface interface {
|
|
GormDataType() string
|
|
}
|
|
|
|
// FieldNewValuePool field new scan value pool
|
|
type FieldNewValuePool interface {
|
|
Get() interface{}
|
|
Put(interface{})
|
|
}
|
|
|
|
// CreateClausesInterface create clauses interface
|
|
type CreateClausesInterface interface {
|
|
CreateClauses(*Field) []clause.Interface
|
|
}
|
|
|
|
// QueryClausesInterface query clauses interface
|
|
type QueryClausesInterface interface {
|
|
QueryClauses(*Field) []clause.Interface
|
|
}
|
|
|
|
// UpdateClausesInterface update clauses interface
|
|
type UpdateClausesInterface interface {
|
|
UpdateClauses(*Field) []clause.Interface
|
|
}
|
|
|
|
// DeleteClausesInterface delete clauses interface
|
|
type DeleteClausesInterface interface {
|
|
DeleteClauses(*Field) []clause.Interface
|
|
}
|