dbmgr

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseRelated

func CloseRelated()

CloseRelated 关闭全局预加载

func DBMgr

func DBMgr[M any](db *gorm.DB) *_DBMgr[M]

AnalyzerMgr open func

func OpenRelated

func OpenRelated()

OpenRelated 打开全局预加载

Types

type Condition

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

自定义sql查询

func (*Condition) And

func (c *Condition) And(column string, cases string, value interface{}) *Condition

And a Condition by and .and 一个条件

func (*Condition) AndWithCondition

func (c *Condition) AndWithCondition(condition bool, column string, cases string, value interface{}) *Condition

func (*Condition) Get

func (c *Condition) Get() (where string, out []interface{})

func (*Condition) Or

func (c *Condition) Or(column string, cases string, value interface{}) *Condition

Or a Condition by or .or 一个条件

func (*Condition) OrWithCondition

func (c *Condition) OrWithCondition(condition bool, column string, cases string, value interface{}) *Condition

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option overrides behavior of Connect.

Jump to

Keyboard shortcuts

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