gorm/schema/interfaces.go

24 lines
448 B
Go
Raw Normal View History

2020-06-06 05:47:32 +03:00
package schema
import "gorm.io/gorm/clause"
type GormDataTypeInterface interface {
GormDataType() string
}
type CreateClausesInterface interface {
CreateClauses(*Field) []clause.Interface
2020-06-06 05:47:32 +03:00
}
type QueryClausesInterface interface {
QueryClauses(*Field) []clause.Interface
2020-06-06 05:47:32 +03:00
}
type UpdateClausesInterface interface {
UpdateClauses(*Field) []clause.Interface
2020-06-06 05:47:32 +03:00
}
type DeleteClausesInterface interface {
DeleteClauses(*Field) []clause.Interface
2020-06-06 05:47:32 +03:00
}