Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDBNotFound 数据库不存在 ErrDBNotFound = errors.New("db not found") )
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { DB string `json:"-"` Table string `json:"-"` Name string `json:"name,omitempty"` Default string `json:"default,omitempty"` Nullable string `json:"nullable,omitempty"` DataType string `json:"data_type,omitempty"` Key string `json:"key,omitempty"` CharSet string `json:"charset,omitempty"` Collation string `json:"collation,omitempty"` Comment string `json:"comment,omitempty"` Extra map[string]string `json:"extra,omitempty"` }
Column 列元信息
type DB ¶
type DB struct { Name string `json:"name,omitempty"` CharSet string `json:"charset,omitempty"` Collation string `json:"collation,omitempty"` Tables []Table `json:"tables,omitempty"` Extra map[string]string `json:"extra,omitempty"` }
DB 数据库实例元信息
Click to show internal directories.
Click to hide internal directories.