Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnInfo ¶
type ColumnInfo struct {
Name string // Column name
DataType string // Database type (e.g., INT, VARCHAR(255))
IsNullable bool // Whether the column is nullable
IsPrimary bool // Whether this column is the primary key
IsUnique bool // Whether this column has a unique constraint
Default *string // Default value (if any)
}
ColumnInfo holds metadata for a single column in a table.
type IndexInfo ¶
type IndexInfo struct {
Name string // Index name
Columns []string // Column names
Unique bool // Is unique index
}
IndexInfo holds metadata for a single index (normal or unique).
Click to show internal directories.
Click to hide internal directories.