core

package
v0.0.0-...-c3ef3ee Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LessForSort

func LessForSort(x, y Value, sortDir int) bool

Types

type BoolType

type BoolType int

BoolType express SQL boolean including Null

const (
	// True is true of BoolType
	True BoolType = iota

	// False is false of BoolType
	False

	// Null is null of BoolType
	Null
)

type Col

type Col struct {
	ColName ColumnName
	ColType ColType
}

Col is type of column

func (Col) Copy

func (col Col) Copy() Col

Copy copies Col.

func (Col) Equal

func (col Col) Equal(other Col) bool

Equal check the equality of Col

type ColType

type ColType int

ColType is a type of column

const (
	Integer ColType = iota
	VarChar
)

type Cols

type Cols []Col

Cols is list of Col

func (Cols) Copy

func (cols Cols) Copy() Cols

Copy copies Cols.

func (Cols) Equal

func (cols Cols) Equal(others Cols) bool

Equal checks the equality of Cols

func (Cols) NotEqual

func (cols Cols) NotEqual(others Cols) bool

NotEqual checks the non-equality of Cols

type ColumnName

type ColumnName struct {
	TableName string
	Name      string
}

ColumnName is column name

func (ColumnName) Copy

func (cn ColumnName) Copy() ColumnName

Copy copies ColumnName

func (ColumnName) Equal

func (cn ColumnName) Equal(other ColumnName) bool

Equal checks the equality of ColumnName

func (ColumnName) String

func (cn ColumnName) String() string

type ColumnNames

type ColumnNames []ColumnName

ColumnNames is list of ColumnName

func (ColumnNames) Copy

func (cn ColumnNames) Copy() ColumnNames

Copy copies ColumnNames

func (ColumnNames) Equal

func (cn ColumnNames) Equal(others ColumnNames) bool

Equal checks the equality of ColumnNames

type Value

type Value interface{}

Value is any type for column

func AND

func AND(x, y Value) Value

AND calculates x AND y

func Not

func Not(x Value) Value

Not negates x

func OR

func OR(x, y Value) Value

OR calculates x OR y

type Values

type Values []Value

Values is list of Value

type ValuesList

type ValuesList []Values

ValuesList is list of Values

type WildcardType

type WildcardType int
const (
	Wildcard WildcardType = iota
)

Jump to

Keyboard shortcuts

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