dao

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Zlib Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	Sql   db.SqlDatabase
	Redis redis.Client
}

https://gorm.io/docs/query.html

func (*Dao) Condition

func (d *Dao) Condition(dbname string, data interface{}, call db.ConditionCallback) result.Result

func (*Dao) IsNotFound

func (d *Dao) IsNotFound(db *gorm.DB) int

type Page

type Page struct {
	Total int64
	No    int
	Count int
}

type SqlQuery

type SqlQuery struct {
	// contains filtered or unexported fields
}

func NewSQ

func NewSQ(concat string) *SqlQuery

func (*SqlQuery) AND

func (sq *SqlQuery) AND() *SqlQuery

func (*SqlQuery) CONCAT

func (sq *SqlQuery) CONCAT() *SqlQuery

func (*SqlQuery) Concat

func (sq *SqlQuery) Concat(concat string) *SqlQuery

func (*SqlQuery) EQ

func (sq *SqlQuery) EQ() *SqlQuery

func (*SqlQuery) Exec

func (sq *SqlQuery) Exec() *SqlQuery

func (*SqlQuery) IN

func (sq *SqlQuery) IN() *SqlQuery

func (*SqlQuery) IsExec

func (sq *SqlQuery) IsExec() bool

func (*SqlQuery) IsValid

func (sq *SqlQuery) IsValid() bool

func (*SqlQuery) OR

func (sq *SqlQuery) OR() *SqlQuery

func (*SqlQuery) Quot

func (sq *SqlQuery) Quot(key string) *SqlQuery

func (*SqlQuery) To

func (sq *SqlQuery) To() string

func (*SqlQuery) Value

func (sq *SqlQuery) Value(v interface{}) *SqlQuery

Directories

Path Synopsis
* * @author huqiuyun * 数据Elasticsearch * * @author huqiuyun * 数据服务
* * @author huqiuyun * 数据Elasticsearch * * @author huqiuyun * 数据服务

Jump to

Keyboard shortcuts

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