/
githubmirror
/
gorm
Обзор
Документация
Войти
/
githubmirror
/
gorm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
schema/interfaces.go
42 строки
980 B
black-06
refactor: distinguish between Unique and UniqueIndex (#6386)
04 фев 2024, 10:49
Не верифицирован
04 фев 2024, 10:49
46816ad
Код
Авторство
О чём код?
package schema import ( "gorm.io/gorm/clause" ) // ConstraintInterface database constraint interface type ConstraintInterface interface { GetName() string Build() (sql string, vars []interface{}) } // 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 }