remove Catalog() & Engine() methods.
This commit is contained in:
parent
04f2710005
commit
e85ce422c7
@ -58,11 +58,9 @@ type Index interface {
|
||||
|
||||
// TableType table type interface
|
||||
type TableType interface {
|
||||
Catalog() string
|
||||
Schema() string
|
||||
Name() string
|
||||
Type() string
|
||||
Engine() (engine string, ok bool)
|
||||
Comment() (comment string, ok bool)
|
||||
}
|
||||
|
||||
|
@ -14,11 +14,6 @@ type TableType struct {
|
||||
CommentValue sql.NullString
|
||||
}
|
||||
|
||||
// Catalog returns the catalog of the table.
|
||||
func (ct TableType) Catalog() string {
|
||||
return ct.CatalogValue
|
||||
}
|
||||
|
||||
// Schema returns the schema of the table.
|
||||
func (ct TableType) Schema() string {
|
||||
return ct.SchemaValue
|
||||
@ -34,11 +29,6 @@ func (ct TableType) Type() string {
|
||||
return ct.TypeValue
|
||||
}
|
||||
|
||||
// Engine returns the engine of current table.
|
||||
func (ct TableType) Engine() (engine string, ok bool) {
|
||||
return ct.EngineValue.String, ct.EngineValue.Valid
|
||||
}
|
||||
|
||||
// Comment returns the comment of current table.
|
||||
func (ct TableType) Comment() (comment string, ok bool) {
|
||||
return ct.CommentValue.String, ct.CommentValue.Valid
|
||||
|
Loading…
x
Reference in New Issue
Block a user