builder

package
v0.0.0-...-a7c7adb Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISQLQuery

type ISQLQuery interface {
	ToSQL() string //生成sql语句
}

定义SQL查询表达式的接口

type ISQLQueryBuilder

type ISQLQueryBuilder interface {
	WithTable(table string) ISQLQueryBuilder //返回本身方便链式调用
	AddField(field string) ISQLQueryBuilder
	AddCondition(condition string) ISQLQueryBuilder
	WithOrderBy(orderBy string) ISQLQueryBuilder
	Build() ISQLQuery
}

定义SQL查询表达式的建造者接口, 该接口定义了一系列步骤去创建复杂查询语句

func NewSQLQueryBuilder

func NewSQLQueryBuilder() ISQLQueryBuilder

Jump to

Keyboard shortcuts

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