columns

package
v3.32.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name      string
	Writeable bool
	Readable  bool
	SelectSQL string
}

func (*Column) SetSelectSQL

func (c *Column) SetSelectSQL(s string)

func (Column) UpdateString

func (c Column) UpdateString() string

type Columns

type Columns struct {
	Cols map[string]*Column

	TableName  string
	TableAlias string
	// contains filtered or unexported fields
}

func ColumnsForStruct

func ColumnsForStruct(s interface{}, tableName string) (columns Columns)

func ColumnsForStructWithAlias

func ColumnsForStructWithAlias(s interface{}, tableName string, tableAlias string) (columns Columns)

func NewColumns

func NewColumns(tableName string) Columns

func NewColumnsWithAlias

func NewColumnsWithAlias(tableName string, tableAlias string) Columns

func (*Columns) Add

func (c *Columns) Add(names ...string) []*Column

Add a column to the list.

func (Columns) Readable

func (c Columns) Readable() *ReadableColumns

func (*Columns) Remove

func (c *Columns) Remove(names ...string)

Remove a column from the list.

func (Columns) String

func (c Columns) String() string

func (Columns) SymbolizedString

func (c Columns) SymbolizedString() string

func (Columns) Writeable

func (c Columns) Writeable() *WriteableColumns

type ReadableColumns

type ReadableColumns struct {
	Columns
}

func (ReadableColumns) SelectString

func (c ReadableColumns) SelectString() string

type WriteableColumns

type WriteableColumns struct {
	Columns
}

func (WriteableColumns) UpdateString

func (c WriteableColumns) UpdateString() string

Jump to

Keyboard shortcuts

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