Debian Codegraph @

schema/interfaces.go

raw
1 package schema
2
3 import (
4 "gorm.io/gorm/clause"
5 )
6
7 // ConstraintInterface database constraint interface
8 type ConstraintInterface interface {
9 GetName() string
10 Build() (sql string, vars []interface{})
11 }
12
13 // GormDataTypeInterface gorm data type interface
14 type GormDataTypeInterface interface {
15 GormDataType() string
16 }
17
18 // FieldNewValuePool field new scan value pool
19 type FieldNewValuePool interface {
20 Get() interface{}
21 Put(interface{})
22 }
23
24 // CreateClausesInterface create clauses interface
25 type CreateClausesInterface interface {
26 CreateClauses(*Field) []clause.Interface
27 }
28
29 // QueryClausesInterface query clauses interface
30 type QueryClausesInterface interface {
31 QueryClauses(*Field) []clause.Interface
32 }
33
34 // UpdateClausesInterface update clauses interface
35 type UpdateClausesInterface interface {
36 UpdateClauses(*Field) []clause.Interface
37 }
38
39 // DeleteClausesInterface delete clauses interface
40 type DeleteClausesInterface interface {
41 DeleteClauses(*Field) []clause.Interface
42 }