mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-25 07:45:44 +00:00
.
This commit is contained in:
committed by
Adnan Zahir
parent
d41e16cab9
commit
ad815b3412
+42
@@ -0,0 +1,42 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user