crash.software
Projects
Pull Requests
Issues
Builds
SeaMoon
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
SeaMoon
Files
🤬
Sign In
ff358b7c
ROOT
/
pkg
/
api
/
database
/
dao
/
configs.gen.go
Search
History
408 lines
|
ISO-8859-1
|
11 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
newConfig
(db *gorm.DB, opts ...gen.DOOption)
:
config
config
configDo
:
configDo
ALL
:
field.Asterisk
ID
:
field.Uint
CreatedAt
:
field.Time
UpdatedAt
:
field.Time
DeletedAt
:
field.Field
Key
:
field.String
Value
:
field.String
fieldMap
:
map[string]field.Expr
Table
(newTableName string)
:
*config
As
(alias string)
:
*config
TableName
()
:
string
Alias
()
:
string
Columns
(cols ...field.Expr)
:
gen.Columns
clone
(db *gorm.DB)
:
config
replaceDB
(db *gorm.DB)
:
config
configDo
gen.DO
Debug
()
:
IConfigDo
WithContext
(ctx context.Context)
:
IConfigDo
ReadDB
()
:
IConfigDo
WriteDB
()
:
IConfigDo
Session
(config *gorm.Session)
:
IConfigDo
Clauses
(conds ...clause.Expression)
:
IConfigDo
Returning
(value interface{}, columns ...string)
:
IConfigDo
Not
(conds ...gen.Condition)
:
IConfigDo
Or
(conds ...gen.Condition)
:
IConfigDo
Select
(conds ...field.Expr)
:
IConfigDo
Where
(conds ...gen.Condition)
:
IConfigDo
Order
(conds ...field.Expr)
:
IConfigDo
Distinct
(cols ...field.Expr)
:
IConfigDo
Omit
(cols ...field.Expr)
:
IConfigDo
Join
(table schema.Tabler, on ...field.Expr)
:
IConfigDo
LeftJoin
(table schema.Tabler, on ...field.Expr)
:
IConfigDo
RightJoin
(table schema.Tabler, on ...field.Expr)
:
IConfigDo
Group
(cols ...field.Expr)
:
IConfigDo
Having
(conds ...gen.Condition)
:
IConfigDo
Limit
(limit int)
:
IConfigDo
Offset
(offset int)
:
IConfigDo
Scopes
(funcs ...func(gen.Dao) gen.Dao)
:
IConfigDo
Unscoped
()
:
IConfigDo
Create
(values ...*models.Config)
:
error
CreateInBatches
(values []*models.Config, batchSize int)
:
error
Save
(values ...*models.Config)
:
error
First
()
:
(*models.Config, error)
Take
()
:
(*models.Config, error)
Last
()
:
(*models.Config, error)
Find
()
:
([]*models.Config, error)
FindInBatch
(batchSize int, fc func(tx gen.Dao, batch int) error)
:
(results []*models.Config, err error)
FindInBatches
(result *[]*models.Config, batchSize int, fc func(tx gen.Dao, batch int) error)
:
error
Attrs
(attrs ...field.AssignExpr)
:
IConfigDo
Assign
(attrs ...field.AssignExpr)
:
IConfigDo
Joins
(fields ...field.RelationField)
:
IConfigDo
Preload
(fields ...field.RelationField)
:
IConfigDo
FirstOrInit
()
:
(*models.Config, error)
FirstOrCreate
()
:
(*models.Config, error)
FindByPage
(offset int, limit int)
:
(result []*models.Config, count int64, err error)
ScanByPage
(result interface{}, offset int, limit int)
:
(count int64, err error)
Scan
(result interface{})
:
(err error)
Delete
(models ...*models.Config)
:
(result gen.ResultInfo, err error)
IConfigDo
gen.SubQuery
Debug
()
:
IConfigDo
WithContext
(ctx context.Context)
:
IConfigDo
WithResult
(fc func(tx gen.Dao))
:
gen.ResultInfo
ReplaceDB
(db *gorm.DB)
ReadDB
()
:
IConfigDo
WriteDB
()
:
IConfigDo
As
(alias string)
:
gen.Dao
Session
(config *gorm.Session)
:
IConfigDo
Columns
(cols ...field.Expr)
:
gen.Columns
Clauses
(conds ...clause.Expression)
:
IConfigDo
Not
(conds ...gen.Condition)
:
IConfigDo
Or
(conds ...gen.Condition)
:
IConfigDo
Select
(conds ...field.Expr)
:
IConfigDo
Where
(conds ...gen.Condition)
:
IConfigDo
Order
(conds ...field.Expr)
:
IConfigDo
Distinct
(cols ...field.Expr)
:
IConfigDo
Omit
(cols ...field.Expr)
:
IConfigDo
Join
(table schema.Tabler, on ...field.Expr)
:
IConfigDo
LeftJoin
(table schema.Tabler, on ...field.Expr)
:
IConfigDo
RightJoin
(table schema.Tabler, on ...field.Expr)
:
IConfigDo
Group
(cols ...field.Expr)
:
IConfigDo
Having
(conds ...gen.Condition)
:
IConfigDo
Limit
(limit int)
:
IConfigDo
Offset
(offset int)
:
IConfigDo
Count
()
:
(count int64, err error)
Scopes
(funcs ...func(gen.Dao) gen.Dao)
:
IConfigDo
Unscoped
()
:
IConfigDo
Create
(values ...*models.Config)
:
error
CreateInBatches
(values []*models.Config, batchSize int)
:
error
Save
(values ...*models.Config)
:
error
First
()
:
(*models.Config, error)
Take
()
:
(*models.Config, error)
Last
()
:
(*models.Config, error)
Find
()
:
([]*models.Config, error)
FindInBatch
(batchSize int, fc func(tx gen.Dao, batch int) error)
:
(results []*models.Config, err error)
FindInBatches
(result *[]*models.Config, batchSize int, fc func(tx gen.Dao, batch int) error)
:
error
Pluck
(column field.Expr, dest interface{})
:
error
Delete
(...*models.Config)
:
(info gen.ResultInfo, err error)
Update
(column field.Expr, value interface{})
:
(info gen.ResultInfo, err error)
UpdateSimple
(columns ...field.AssignExpr)
:
(info gen.ResultInfo, err error)
Updates
(value interface{})
:
(info gen.ResultInfo, err error)
UpdateColumn
(column field.Expr, value interface{})
:
(info gen.ResultInfo, err error)
UpdateColumnSimple
(columns ...field.AssignExpr)
:
(info gen.ResultInfo, err error)
UpdateColumns
(value interface{})
:
(info gen.ResultInfo, err error)
UpdateFrom
(q gen.SubQuery)
:
gen.Dao
Attrs
(attrs ...field.AssignExpr)
:
IConfigDo
Assign
(attrs ...field.AssignExpr)
:
IConfigDo
Joins
(fields ...field.RelationField)
:
IConfigDo
Preload
(fields ...field.RelationField)
:
IConfigDo
FirstOrInit
()
:
(*models.Config, error)
FirstOrCreate
()
:
(*models.Config, error)
FindByPage
(offset int, limit int)
:
(result []*models.Config, count int64, err error)
ScanByPage
(result interface{}, offset int, limit int)
:
(count int64, err error)
Scan
(result interface{})
:
(err error)
Returning
(value interface{}, columns ...string)
:
IConfigDo
UnderlyingDB
()
:
*gorm.DB
schema.Tabler
*config
updateTableName
(table string)
:
*config
WithContext
(ctx context.Context)
:
IConfigDo
GetFieldByName
(fieldName string)
:
(field.OrderExpr, bool)
fillFieldMap
()
*configDo
withDO
(do gen.Dao)
:
*configDo
All occurrences
Please wait...
Page is in error, reload to recover