Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnInfo ¶
type ColumnInfo struct { ColumnDefault sql.NullString `db:"COLUMN_DEFAULT"` IsNullable string `db:"IS_NULLABLE"` ColumnType string `db:"COLUMN_TYPE"` ColumnKey string `db:"COLUMN_KEY"` ColumnKeysInfo []*IndexInfo }
func GetColumnInfo ¶
func GetColumnInfo(table, column string, db *sqlx.DB) *ColumnInfo
func (*ColumnInfo) GetUniqueKey ¶
func (ci *ColumnInfo) GetUniqueKey() *IndexInfo
func (*ColumnInfo) HasDefault ¶
func (ci *ColumnInfo) HasDefault() (bool, string)
func (*ColumnInfo) IsPrimary ¶
func (ci *ColumnInfo) IsPrimary() bool
func (*ColumnInfo) IsUnique ¶
func (ci *ColumnInfo) IsUnique() bool
func (*ColumnInfo) Nullable ¶
func (ci *ColumnInfo) Nullable() bool
type IndexInfo ¶
func GetIndexInfoByColumn ¶
Click to show internal directories.
Click to hide internal directories.