mysql

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepo

func NewRepo(c *config.Config) (model.IRepo, error)

NewRepo 实例化

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

Repo MySQL的model.IRepo接口实现

func (*Repo) GetColumns

func (repo *Repo) GetColumns(cond *model.Column) (items []model.Column, err error)

GetColumns 按条件查询列信息

func (*Repo) GetDBs

func (repo *Repo) GetDBs(cond *model.DB, lazy bool) (items []model.DB, err error)

GetDBs 按条件查询数据库信息

func (*Repo) GetTables

func (repo *Repo) GetTables(cond *model.Table) (items []model.Table, err error)

GetTables 按条件查询表信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL