18 lines
318 B
Go
18 lines
318 B
Go
package component
|
|
|
|
import (
|
|
"reflect"
|
|
)
|
|
|
|
// Table is a component that manages a provided sql table
|
|
type Table interface {
|
|
Component
|
|
|
|
// TableInfo returns information about a specific table
|
|
TableInfo() TableInfo
|
|
}
|
|
|
|
type TableInfo struct {
|
|
Model reflect.Type // model is the model this type manages
|
|
Name string
|
|
}
|