github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/pkg/sqlbuilder/interfaces.go (about) 1 package sqlbuilder 2 3 type DataTypeDescriber interface { 4 DataType(driverName string) string 5 } 6 7 type Model interface { 8 TableName() string 9 } 10 11 type WithTableDescription interface { 12 TableDescription() []string 13 } 14 15 type Indexes map[string][]string 16 17 type WithPrimaryKey interface { 18 PrimaryKey() []string 19 } 20 21 type WithUniqueIndexes interface { 22 UniqueIndexes() Indexes 23 } 24 25 type WithIndexes interface { 26 Indexes() Indexes 27 } 28 29 type WithComments interface { 30 Comments() map[string]string 31 } 32 33 type WithRelations interface { 34 ColRelations() map[string][]string 35 } 36 37 type WithColDescriptions interface { 38 ColDescriptions() map[string][]string 39 }