structs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name     string
	Raw      string
	Values   []interface{}
	Distinct bool
	Count    bool
	Function string
}

type DeleteQuery

type DeleteQuery struct {
	Table string
	Query *Query
}

type Exists

type Exists struct {
	IsNot bool
	Query *Query
}

type FullText

type FullText struct {
	IsNot   bool
	Columns []string
	Search  string
	Options map[string]interface{}
}

type FullTextOptions

type FullTextOptions struct {
	Mode string
	With string
}

type GroupBy

type GroupBy struct {
	Columns []string
	Having  *[]Having
}

type Having

type Having struct {
	Column    string
	Condition string
	Value     interface{}
	Operator  int
	Raw       string
}

type InsertQuery

type InsertQuery struct {
	Table       string
	Values      map[string]interface{}
	ValuesBatch []map[string]interface{}
	Columns     []string
	Query       *Query
	Ignore      bool
	Upsert      *Upsert
}

type Join

type Join struct {
	Name               string
	TargetNameMap      map[string]string
	SearchColumn       string
	SearchCondition    string
	SearchTargetColumn string
	Query              *Query
}

type JoinClause

type JoinClause struct {
	On              *[]On
	ConditionGroups *[]WhereGroup
	Conditions      *[]Where
	Name            string
	TargetNameMap   map[string]string
	Query           *Query
}

type Joins

type Joins struct {
	Name          string
	TargetNameMap map[string]string
	Joins         *[]Join
	JoinClauses   *[]JoinClause
	LateralJoins  *[]Join
	Operator      int
	IsDummyGroup  bool
}

type JsonContains

type JsonContains struct {
	Values []interface{}
}

type JsonLength

type JsonLength struct {
	Operator string
	Value    interface{}
}

type Limit

type Limit struct {
	Limit int64
}

type Lock

type Lock struct {
	LockType string
}

type Offset

type Offset struct {
	Offset int64
}

type On

type On struct {
	Column    string
	Condition string
	Value     interface{}
	Operator  int
}

type Order

type Order struct {
	Column string
	IsAsc  bool
	Raw    string
}

type Orders

type Orders struct {
	Orders *[]Order
}

type Query

type Query struct {
	Columns         *[]Column
	Table           Table
	Joins           *Joins
	ConditionGroups []WhereGroup
	Conditions      *[]Where
	Limit           Limit
	Offset          Offset
	Order           *[]Order
	Group           *GroupBy
	Lock            *Lock
}

type SelectQuery

type SelectQuery struct {
	Table   string
	Columns *[]Column
	Limit   Limit
	Offset  Offset
	Union   *[]Union
	Group   *GroupBy
	Lock    *Lock
}

type Table

type Table struct {
	Name string
}

type Union

type Union struct {
	Query *Query
	IsAll bool
}

type UpdateQuery

type UpdateQuery struct {
	Table  string
	Values map[string]interface{}
	Query  *Query
}

type Upsert

type Upsert struct {
	UniqueColumns []string
	UpdateColumns []string
}

type Where

type Where struct {
	Column       string
	Condition    string
	Value        []interface{}
	ValueColumn  string
	ValueMap     map[string]any
	Operator     int
	Query        *Query
	Between      *WhereBetween
	Exists       *Exists
	FullText     *FullText
	JsonContains *JsonContains
	JsonLength   *JsonLength
	Raw          string
	Function     string
}

type WhereBetween

type WhereBetween struct {
	IsColumn bool
	IsNot    bool
	From     interface{}
	To       interface{}
}

type WhereGroup

type WhereGroup struct {
	Conditions   []Where
	Operator     int
	IsDummyGroup bool
	IsNot        bool
}

Jump to

Keyboard shortcuts

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