query

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Engines = map[string]share.DSL{}

Engines registered engines

Functions

func Alias

func Alias(name, alias string)

Alias set the Engine alias

func Gou

func Gou(input []byte) *gou.Query

Gou 创建 Gou Query share.DSL

func GouOpen

func GouOpen(filename string) *gou.Query

GouOpen 创建 Gou Query share.DSL (文件)

func GouRead

func GouRead(reader io.Reader) *gou.Query

GouRead 创建 Gou Query share.DSL (输入接口)

func Register

func Register(name string, engine share.DSL)

Register Register a Query Engine

func Select

func Select(name string) (share.DSL, error)

Select choose one engine

Types

type Tai

type Tai tai.QueryDSL

Tai Query DSL

func (Tai) First

func (tai Tai) First() share.Record

First 执行查询并返回一条数据记录

func (Tai) Get

func (tai Tai) Get() []share.Record

Get 执行查询并返回数据记录集合

func (Tai) Paginate

func (tai Tai) Paginate() share.Paginate

Paginate 执行查询并返回带分页信息的数据记录数组

func (Tai) Run

func (tai Tai) Run() interface{}

Run 执行查询根据查询条件返回结果

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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