type Client interface {
....
Tables() ([]*TableInfo, error)
....
}
type TableInfoCommon struct {
Name string `json:"name"`
Columns []ColumInfo
}
type ColumnInfo struct {
Name string
Type string
IsNullable bool
....
}
type TableInfo struct {
TableInfoCommon
Extra map[string]string // or [][]string, like [["key1", "val1"], ["key2", "val2"]]
}
e.g. sth. like: