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