where

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* * @Author: TheLife * @Date: 2020-11-8 6:23 下午

* * @Author: TheLife * @Date: 2020-11-8 6:23 下午

* * @Author: TheLife * @Date: 2020-11-8 6:24 下午

* * @Author: TheLife * @Date: 2020-11-8 6:23 下午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compare

type Compare struct {
	Field string
	Type  CompareType
	Text  interface{}
}

field Type ?

func (*Compare) String

func (c *Compare) String() (query string, args interface{})

type CompareType

type CompareType string
const (
	CompareEqual      CompareType = "="
	CompareAboutEqual CompareType = ">="
	CompareAbout      CompareType = ">"
	CompareLessEqual  CompareType = "<="
	CompareLess       CompareType = "<"
)

type In

type In struct {
	Not   bool
	Field string
	In    interface{}
}

field in(?) field not in(?)

func (*In) String

func (i *In) String() (query string, args interface{})

type Like

type Like struct {
	Field string
	Text  string
}

field like %Text%

func (*Like) String

func (l *Like) String() (query string, args string)

type Range

type Range struct {
	Field string
	Start int64
	End   int64
}

field >= start ANd field <= end

func (*Range) String

func (r *Range) String() (query string, start, end int64)

Jump to

Keyboard shortcuts

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