Documentation ¶
Index ¶
- func Charset(elements []schema.Attr) (string, bool)
- func Collation(elements []schema.Attr) (string, bool)
- func ColumnNames(columns []*schema.Column) []string
- func Comment(elements []schema.Attr) (string, bool)
- func DefaultValue(c *schema.Column) (string, bool)
- func FindColumn(columns []*schema.Column, columnName string) (*schema.Column, bool)
- func FindIndexPartSeq(parts []*schema.IndexPart, col *schema.Column) (int, bool)
- func Has(elements, target any) bool
- func IndexEqual(idx1, idx2 *schema.Index) bool
- func IndexPartColumnNames(parts []*schema.IndexPart) []string
- func MustComment(elements []schema.Attr) string
- func P[T any](v T) *T
- func V[T any](p *T) (v T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnNames ¶
func DefaultValue ¶
DefaultValue returns the string represents the DEFAULT of a column.
func FindColumn ¶
func FindIndexPartSeq ¶
func Has ¶
Has finds the first element in the elements list that matches target, and if so, sets target to that attribute value and returns true. support schema.Attr, schema.Clause, schema.Expr
func IndexEqual ¶
func IndexPartColumnNames ¶
func MustComment ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.