column

package
v0.0.0-...-0601960 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 3 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 {
	// contains filtered or unexported fields
}

func NewColumn

func NewColumn(name string, columnType types.TypeID, hasIndex bool, indexKind index_constants.IndexKind, indexHeaderPageID types.PageID, expr interface{}) *Column

indexHeaderPageID should be types.PageID(-1) if there is no special reason the ID is set when CreateTable is called expr argument should be pointer of subtype of expression.Expression

func (*Column) FixedLength

func (c *Column) FixedLength() uint32

func (*Column) GetColumnName

func (c *Column) GetColumnName() string

func (*Column) GetExpr

func (c *Column) GetExpr() interface{}

returned value should be used with type validation at expression.Expression

func (*Column) GetOffset

func (c *Column) GetOffset() uint32

func (*Column) GetType

func (c *Column) GetType() types.TypeID

func (*Column) HasIndex

func (c *Column) HasIndex() bool

func (*Column) IndexHeaderPageId

func (c *Column) IndexHeaderPageId() types.PageID

func (*Column) IndexKind

func (c *Column) IndexKind() index_constants.IndexKind

func (*Column) IsInlined

func (c *Column) IsInlined() bool

func (*Column) IsLeft

func (c *Column) IsLeft() bool

func (*Column) SetColumnName

func (c *Column) SetColumnName(colName string)

func (*Column) SetExpr

func (c *Column) SetExpr(expr interface{})

func (*Column) SetFixedLength

func (c *Column) SetFixedLength(fixedLength uint32)

func (*Column) SetHasIndex

func (c *Column) SetHasIndex(hasIndex bool)

func (*Column) SetIndexHeaderPageId

func (c *Column) SetIndexHeaderPageId(pageId types.PageID)

func (*Column) SetIndexKind

func (c *Column) SetIndexKind(kind index_constants.IndexKind)

func (*Column) SetIsLeft

func (c *Column) SetIsLeft(isLeft bool)

func (*Column) SetOffset

func (c *Column) SetOffset(offset uint32)

func (*Column) SetVariableLength

func (c *Column) SetVariableLength(variableLength uint32)

func (*Column) VariableLength

func (c *Column) VariableLength() uint32

Jump to

Keyboard shortcuts

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