column

package
v1.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewColumn

func NewColumn(table, fieldName string, con *sqlx.DB) contract.Column

Types

type Column

type Column struct {
	// contains filtered or unexported fields
}

func (*Column) After

func (c *Column) After(name string) contract.Column

func (*Column) Autoincrement

func (c *Column) Autoincrement() contract.Column

func (*Column) Change

func (c *Column) Change() contract.Column

func (*Column) Default

func (c *Column) Default(value string) contract.Column

func (*Column) Drop

func (c *Column) Drop() contract.Column

func (*Column) First

func (c *Column) First() contract.Column

func (*Column) GetName

func (c *Column) GetName() string

Helpful functions

func (*Column) GetSQL

func (c *Column) GetSQL() string

Functions for generate SQL

func (*Column) GetUniqueKeyName

func (c *Column) GetUniqueKeyName() string

func (*Column) HasUniqueKey

func (c *Column) HasUniqueKey() bool

func (*Column) IsPrimary

func (c *Column) IsPrimary() bool

func (*Column) IsUnique

func (c *Column) IsUnique() bool

func (*Column) IsWaitingChange

func (c *Column) IsWaitingChange() bool

func (*Column) IsWaitingDrop

func (c *Column) IsWaitingDrop() bool

func (*Column) IsWaitingRename

func (c *Column) IsWaitingRename() bool

func (*Column) NeedDropUniqueKey

func (c *Column) NeedDropUniqueKey() bool

func (*Column) NeedUniqueKey

func (c *Column) NeedUniqueKey() bool

func (*Column) NotAutoincrement

func (c *Column) NotAutoincrement() contract.Column

func (*Column) NotNull

func (c *Column) NotNull() contract.Column

func (*Column) NotUnique

func (c *Column) NotUnique() contract.Column

func (*Column) Nullable

func (c *Column) Nullable() contract.Column

func (*Column) Primary

func (c *Column) Primary() contract.Column

func (*Column) Rename

func (c *Column) Rename(name string) contract.Column

func (*Column) Type

func (c *Column) Type(fieldType string) contract.Column

Functions for modify table

func (*Column) Unique

func (c *Column) Unique() contract.Column

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL