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
/
auths.gen.go
Search
History
420 lines
|
ISO-8859-1
|
11 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
newAuth
(db *gorm.DB, opts ...gen.DOOption)
:
auth
auth
authDo
:
authDo
ALL
:
field.Asterisk
ID
:
field.Uint
CreatedAt
:
field.Time
UpdatedAt
:
field.Time
DeletedAt
:
field.Field
Type
:
field.Int8
Username
:
field.String
Password
:
field.String
LastLogin
:
field.String
LastAddr
:
field.String
fieldMap
:
map[string]field.Expr
Table
(newTableName string)
:
*auth
As
(alias string)
:
*auth
TableName
()
:
string
Alias
()
:
string
Columns
(cols ...field.Expr)
:
gen.Columns
clone
(db *gorm.DB)
:
auth
replaceDB
(db *gorm.DB)
:
auth
authDo
gen.DO
Debug
()
:
IAuthDo
WithContext
(ctx context.Context)
:
IAuthDo
ReadDB
()
:
IAuthDo
WriteDB
()
:
IAuthDo
Session
(config *gorm.Session)
:
IAuthDo
Clauses
(conds ...clause.Expression)
:
IAuthDo
Returning
(value interface{}, columns ...string)
:
IAuthDo
Not
(conds ...gen.Condition)
:
IAuthDo
Or
(conds ...gen.Condition)
:
IAuthDo
Select
(conds ...field.Expr)
:
IAuthDo
Where
(conds ...gen.Condition)
:
IAuthDo
Order
(conds ...field.Expr)
:
IAuthDo
Distinct
(cols ...field.Expr)
:
IAuthDo
Omit
(cols ...field.Expr)
:
IAuthDo
Join
(table schema.Tabler, on ...field.Expr)
:
IAuthDo
LeftJoin
(table schema.Tabler, on ...field.Expr)
:
IAuthDo
RightJoin
(table schema.Tabler, on ...field.Expr)
:
IAuthDo
Group
(cols ...field.Expr)
:
IAuthDo
Having
(conds ...gen.Condition)
:
IAuthDo
Limit
(limit int)
:
IAuthDo
Offset
(offset int)
:
IAuthDo
Scopes
(funcs ...func(gen.Dao) gen.Dao)
:
IAuthDo
Unscoped
()
:
IAuthDo
Create
(values ...*models.Auth)
:
error
CreateInBatches
(values []*models.Auth, batchSize int)
:
error
Save
(values ...*models.Auth)
:
error
First
()
:
(*models.Auth, error)
Take
()
:
(*models.Auth, error)
Last
()
:
(*models.Auth, error)
Find
()
:
([]*models.Auth, error)
FindInBatch
(batchSize int, fc func(tx gen.Dao, batch int) error)
:
(results []*models.Auth, err error)
FindInBatches
(result *[]*models.Auth, batchSize int, fc func(tx gen.Dao, batch int) error)
:
error
Attrs
(attrs ...field.AssignExpr)
:
IAuthDo
Assign
(attrs ...field.AssignExpr)
:
IAuthDo
Joins
(fields ...field.RelationField)
:
IAuthDo
Preload
(fields ...field.RelationField)
:
IAuthDo
FirstOrInit
()
:
(*models.Auth, error)
FirstOrCreate
()
:
(*models.Auth, error)
FindByPage
(offset int, limit int)
:
(result []*models.Auth, count int64, err error)
ScanByPage
(result interface{}, offset int, limit int)
:
(count int64, err error)
Scan
(result interface{})
:
(err error)
Delete
(models ...*models.Auth)
:
(result gen.ResultInfo, err error)
IAuthDo
gen.SubQuery
Debug
()
:
IAuthDo
WithContext
(ctx context.Context)
:
IAuthDo
WithResult
(fc func(tx gen.Dao))
:
gen.ResultInfo
ReplaceDB
(db *gorm.DB)
ReadDB
()
:
IAuthDo
WriteDB
()
:
IAuthDo
As
(alias string)
:
gen.Dao
Session
(config *gorm.Session)
:
IAuthDo
Columns
(cols ...field.Expr)
:
gen.Columns
Clauses
(conds ...clause.Expression)
:
IAuthDo
Not
(conds ...gen.Condition)
:
IAuthDo
Or
(conds ...gen.Condition)
:
IAuthDo
Select
(conds ...field.Expr)
:
IAuthDo
Where
(conds ...gen.Condition)
:
IAuthDo
Order
(conds ...field.Expr)
:
IAuthDo
Distinct
(cols ...field.Expr)
:
IAuthDo
Omit
(cols ...field.Expr)
:
IAuthDo
Join
(table schema.Tabler, on ...field.Expr)
:
IAuthDo
LeftJoin
(table schema.Tabler, on ...field.Expr)
:
IAuthDo
RightJoin
(table schema.Tabler, on ...field.Expr)
:
IAuthDo
Group
(cols ...field.Expr)
:
IAuthDo
Having
(conds ...gen.Condition)
:
IAuthDo
Limit
(limit int)
:
IAuthDo
Offset
(offset int)
:
IAuthDo
Count
()
:
(count int64, err error)
Scopes
(funcs ...func(gen.Dao) gen.Dao)
:
IAuthDo
Unscoped
()
:
IAuthDo
Create
(values ...*models.Auth)
:
error
CreateInBatches
(values []*models.Auth, batchSize int)
:
error
Save
(values ...*models.Auth)
:
error
First
()
:
(*models.Auth, error)
Take
()
:
(*models.Auth, error)
Last
()
:
(*models.Auth, error)
Find
()
:
([]*models.Auth, error)
FindInBatch
(batchSize int, fc func(tx gen.Dao, batch int) error)
:
(results []*models.Auth, err error)
FindInBatches
(result *[]*models.Auth, batchSize int, fc func(tx gen.Dao, batch int) error)
:
error
Pluck
(column field.Expr, dest interface{})
:
error
Delete
(...*models.Auth)
:
(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)
:
IAuthDo
Assign
(attrs ...field.AssignExpr)
:
IAuthDo
Joins
(fields ...field.RelationField)
:
IAuthDo
Preload
(fields ...field.RelationField)
:
IAuthDo
FirstOrInit
()
:
(*models.Auth, error)
FirstOrCreate
()
:
(*models.Auth, error)
FindByPage
(offset int, limit int)
:
(result []*models.Auth, 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)
:
IAuthDo
UnderlyingDB
()
:
*gorm.DB
schema.Tabler
*auth
updateTableName
(table string)
:
*auth
WithContext
(ctx context.Context)
:
IAuthDo
GetFieldByName
(fieldName string)
:
(field.OrderExpr, bool)
fillFieldMap
()
*authDo
withDO
(do gen.Dao)
:
*authDo
All occurrences
Please wait...
Page is in error, reload to recover