core

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias interface {
	GetAlias() string
}

type Column

type Column interface {
	Expression
	Alias
	Name
	GetParent() Table
}

type ComboExpression

type ComboExpression interface {
	Expression
	And(Expression) ComboExpression
	Or(Expression) ComboExpression
}

type Dialect

type Dialect interface {
	Name
}

type Expression

type Expression interface {
	GetSQL(d Dialect) (SQL, error)
}

type Name

type Name interface {
	GetName() string
}

type OrderBy

type OrderBy interface {
	Expression
}

type SQL

type SQL interface {
	String() string
	Values() []interface{}
	AppendSQL(right SQL) SQL
	AppendSQLWithSpace(right SQL) SQL
	AppendSQLValues(sql SQL) SQL
	AppendString(str string) SQL
	AppendStringWithSpace(str string) SQL
	AppendFormat(format string, values ...interface{}) SQL
	AppendValues(values []interface{}) SQL
	AppendValuesWithFormat(appendValues []interface{}, format string, values ...interface{}) SQL
	CombineWithSeparator(sqls []SQL, separator string) SQL
	CombinePaths(sqls []SQL) SQL
	SurroundWithParens() SQL
	SurroundWith(left string, right string) SQL
}

func NewEmptySQL

func NewEmptySQL() SQL

func NewSQL

func NewSQL(sqlStr string, values []interface{}) SQL

func NewSQLf

func NewSQLf(format string, values ...interface{}) SQL

type Set

type Set interface {
	Expression
}

type Table

type Table interface {
	Expression
	Alias
	Name
	GetColumns() []Column
	GetParent() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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