Documentation ¶
Index ¶
- type FlagMysqlDbGen
- func (f *FlagMysqlDbGen) AllTableData() (model.TableMataDataList, error)
- func (f *FlagMysqlDbGen) ConnectionDB() (err error)
- func (f *FlagMysqlDbGen) GetTableColumns(tableName string) (cols model.ColumnMetaDataList, err error)
- func (f *FlagMysqlDbGen) TableDataForSelect(flagModel model.FlagModel) (model.TableMataDataList, error)
- type MysqlDBGen
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagMysqlDbGen ¶
type FlagMysqlDbGen struct {
// contains filtered or unexported fields
}
func NewMysqlDbGen ¶
func NewMysqlDbGen(flag model.FlagModel) *FlagMysqlDbGen
NewMysqlDbGen 创建mysql生成器
func (*FlagMysqlDbGen) AllTableData ¶
func (f *FlagMysqlDbGen) AllTableData() (model.TableMataDataList, error)
AllTableData 所有表的数据
func (*FlagMysqlDbGen) ConnectionDB ¶
func (f *FlagMysqlDbGen) ConnectionDB() (err error)
ConnectionDB 测试连接数据库
func (*FlagMysqlDbGen) GetTableColumns ¶
func (f *FlagMysqlDbGen) GetTableColumns(tableName string) (cols model.ColumnMetaDataList, err error)
GetTableColumns 根据表名称查询列元数据集
func (*FlagMysqlDbGen) TableDataForSelect ¶
func (f *FlagMysqlDbGen) TableDataForSelect(flagModel model.FlagModel) (model.TableMataDataList, error)
type MysqlDBGen ¶
type MysqlDBGen struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.