remove Catalog() & Engine() methods.

This commit is contained in:
John Mai 2023-05-04 22:06:52 +08:00
parent 04f2710005
commit e85ce422c7
2 changed files with 0 additions and 12 deletions

View File

@ -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)
}

View File

@ -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