package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Feb 6, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DatabaseConfig struct {
Scheme string `json:"scheme"`
Connect struct {
Type string `json:"type"`
Host string `json:"host"`
Port string `json:"port"`
User string `json:"user"`
Password string `json:"password"`
} `json:"connect"`
Tables []string `json:"tables"`
}
type Field struct {
ColumnName string `json:"column_name"`
DataType string `json:"data_type"`
IsNullable string `json:"is_nullable"`
ColumnComment string `json:"column_comment"`
ColumnKey string `json:"column_key"`
ColumnDefault string `json:"column_default"`
}
type Result struct {
TableName string `json:"table_name"`
ColumnName string `json:"column_name"`
DataType string `json:"data_type"`
IsNullable string `json:"is_nullable"`
ColumnComment string `json:"column_comment"`
ColumnKey string `json:"column_key"`
ColumnDefault interface{} `json:"column_default"`
}
type Structure struct {
TableName string `json:"table_name"`
Fields []Field `json:"fields"`
HasNull bool `json:"has_null"`
HasTime bool `json:"has_time"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.