Documentation
¶
Index ¶
Constants ¶
View Source
const Primary = "PRIMARY"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
type MySQL struct {
DB *gorm.DB
DbName string
TableNames []string
CustomDefineType map[string]string
}
func (*MySQL) GetCreateTableSQL ¶
GetCreateTableSQL get create table sql
func (*MySQL) GetDatabase ¶
GetDatabase get database information
func (*MySQL) GetTableAttributes ¶
func (sf *MySQL) GetTableAttributes() ([]view.TableAttribute, error)
GetTables get all table name and comments
type SQL ¶
type SQL struct {
CreateTableSQL string
CustomDefineType map[string]string
// contains filtered or unexported fields
}
func (*SQL) GetTableAttributes ¶
func (sf *SQL) GetTableAttributes() ([]view.TableAttribute, error)
type SQLite ¶
type SQLite struct {
DB *gorm.DB
DbName string
TableNames []string
CustomDefineType map[string]string
}
func (*SQLite) GetCreateTableSQL ¶
GetCreateTableSQL get create table sql
func (*SQLite) GetDatabase ¶
GetDbInfo get database info 获取数据库信息
func (*SQLite) GetTableAttributes ¶
func (sf *SQLite) GetTableAttributes() ([]view.TableAttribute, error)
GetTables get all table name and comments 获取所有表及注释
Click to show internal directories.
Click to hide internal directories.