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
d8c188af
ROOT
/
pkg
/
api
/
database
/
dao
/
providers.gen.go
Search
History
543 lines
|
ISO-8859-1
|
15 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
newProvider
(db *gorm.DB, opts ...gen.DOOption)
:
provider
provider
providerDo
:
providerDo
ALL
:
field.Asterisk
ID
:
field.Uint
CreatedAt
:
field.Time
UpdatedAt
:
field.Time
DeletedAt
:
field.Field
Name
:
field.String
Desc
:
field.String
Regions
:
field.Field
Type
:
field.Int8
Status
:
field.Int8
StatusMessage
:
field.String
MaxLimit
:
field.Int
Amount
:
field.Float64
Cost
:
field.Float64
AccessId
:
field.String
AccessKey
:
field.String
AccessSecret
:
field.String
Token
:
field.String
KubeConfig
:
field.String
Tunnels
:
providerHasManyTunnels
fieldMap
:
map[string]field.Expr
Table
(newTableName string)
:
*provider
As
(alias string)
:
*provider
TableName
()
:
string
Alias
()
:
string
Columns
(cols ...field.Expr)
:
gen.Columns
clone
(db *gorm.DB)
:
provider
replaceDB
(db *gorm.DB)
:
provider
providerHasManyTunnels
db
:
*gorm.DB
field.RelationField
Proxies
Where
(conds ...field.Expr)
:
*providerHasManyTunnels
WithContext
(ctx context.Context)
:
*providerHasManyTunnels
Session
(session *gorm.Session)
:
*providerHasManyTunnels
Model
(m *models.Provider)
:
*providerHasManyTunnelsTx
providerHasManyTunnelsTx
tx
:
*gorm.Association
Find
()
:
(result []*models.Tunnel, err error)
Append
(values ...*models.Tunnel)
:
(err error)
Replace
(values ...*models.Tunnel)
:
(err error)
Delete
(values ...*models.Tunnel)
:
(err error)
Clear
()
:
error
Count
()
:
int64
providerDo
gen.DO
Debug
()
:
IProviderDo
WithContext
(ctx context.Context)
:
IProviderDo
ReadDB
()
:
IProviderDo
WriteDB
()
:
IProviderDo
Session
(config *gorm.Session)
:
IProviderDo
Clauses
(conds ...clause.Expression)
:
IProviderDo
Returning
(value interface{}, columns ...string)
:
IProviderDo
Not
(conds ...gen.Condition)
:
IProviderDo
Or
(conds ...gen.Condition)
:
IProviderDo
Select
(conds ...field.Expr)
:
IProviderDo
Where
(conds ...gen.Condition)
:
IProviderDo
Order
(conds ...field.Expr)
:
IProviderDo
Distinct
(cols ...field.Expr)
:
IProviderDo
Omit
(cols ...field.Expr)
:
IProviderDo
Join
(table schema.Tabler, on ...field.Expr)
:
IProviderDo
LeftJoin
(table schema.Tabler, on ...field.Expr)
:
IProviderDo
RightJoin
(table schema.Tabler, on ...field.Expr)
:
IProviderDo
Group
(cols ...field.Expr)
:
IProviderDo
Having
(conds ...gen.Condition)
:
IProviderDo
Limit
(limit int)
:
IProviderDo
Offset
(offset int)
:
IProviderDo
Scopes
(funcs ...func(gen.Dao) gen.Dao)
:
IProviderDo
Unscoped
()
:
IProviderDo
Create
(values ...*models.Provider)
:
error
CreateInBatches
(values []*models.Provider, batchSize int)
:
error
Save
(values ...*models.Provider)
:
error
First
()
:
(*models.Provider, error)
Take
()
:
(*models.Provider, error)
Last
()
:
(*models.Provider, error)
Find
()
:
([]*models.Provider, error)
FindInBatch
(batchSize int, fc func(tx gen.Dao, batch int) error)
:
(results []*models.Provider, err error)
FindInBatches
(result *[]*models.Provider, batchSize int, fc func(tx gen.Dao, batch int) error)
:
error
Attrs
(attrs ...field.AssignExpr)
:
IProviderDo
Assign
(attrs ...field.AssignExpr)
:
IProviderDo
Joins
(fields ...field.RelationField)
:
IProviderDo
Preload
(fields ...field.RelationField)
:
IProviderDo
FirstOrInit
()
:
(*models.Provider, error)
FirstOrCreate
()
:
(*models.Provider, error)
FindByPage
(offset int, limit int)
:
(result []*models.Provider, count int64, err error)
ScanByPage
(result interface{}, offset int, limit int)
:
(count int64, err error)
Scan
(result interface{})
:
(err error)
Delete
(models ...*models.Provider)
:
(result gen.ResultInfo, err error)
IProviderDo
gen.SubQuery
Debug
()
:
IProviderDo
WithContext
(ctx context.Context)
:
IProviderDo
WithResult
(fc func(tx gen.Dao))
:
gen.ResultInfo
ReplaceDB
(db *gorm.DB)
ReadDB
()
:
IProviderDo
WriteDB
()
:
IProviderDo
As
(alias string)
:
gen.Dao
Session
(config *gorm.Session)
:
IProviderDo
Columns
(cols ...field.Expr)
:
gen.Columns
Clauses
(conds ...clause.Expression)
:
IProviderDo
Not
(conds ...gen.Condition)
:
IProviderDo
Or
(conds ...gen.Condition)
:
IProviderDo
Select
(conds ...field.Expr)
:
IProviderDo
Where
(conds ...gen.Condition)
:
IProviderDo
Order
(conds ...field.Expr)
:
IProviderDo
Distinct
(cols ...field.Expr)
:
IProviderDo
Omit
(cols ...field.Expr)
:
IProviderDo
Join
(table schema.Tabler, on ...field.Expr)
:
IProviderDo
LeftJoin
(table schema.Tabler, on ...field.Expr)
:
IProviderDo
RightJoin
(table schema.Tabler, on ...field.Expr)
:
IProviderDo
Group
(cols ...field.Expr)
:
IProviderDo
Having
(conds ...gen.Condition)
:
IProviderDo
Limit
(limit int)
:
IProviderDo
Offset
(offset int)
:
IProviderDo
Count
()
:
(count int64, err error)
Scopes
(funcs ...func(gen.Dao) gen.Dao)
:
IProviderDo
Unscoped
()
:
IProviderDo
Create
(values ...*models.Provider)
:
error
CreateInBatches
(values []*models.Provider, batchSize int)
:
error
Save
(values ...*models.Provider)
:
error
First
()
:
(*models.Provider, error)
Take
()
:
(*models.Provider, error)
Last
()
:
(*models.Provider, error)
Find
()
:
([]*models.Provider, error)
FindInBatch
(batchSize int, fc func(tx gen.Dao, batch int) error)
:
(results []*models.Provider, err error)
FindInBatches
(result *[]*models.Provider, batchSize int, fc func(tx gen.Dao, batch int) error)
:
error
Pluck
(column field.Expr, dest interface{})
:
error
Delete
(...*models.Provider)
:
(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)
:
IProviderDo
Assign
(attrs ...field.AssignExpr)
:
IProviderDo
Joins
(fields ...field.RelationField)
:
IProviderDo
Preload
(fields ...field.RelationField)
:
IProviderDo
FirstOrInit
()
:
(*models.Provider, error)
FirstOrCreate
()
:
(*models.Provider, error)
FindByPage
(offset int, limit int)
:
(result []*models.Provider, 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)
:
IProviderDo
UnderlyingDB
()
:
*gorm.DB
schema.Tabler
*provider
updateTableName
(table string)
:
*provider
WithContext
(ctx context.Context)
:
IProviderDo
GetFieldByName
(fieldName string)
:
(field.OrderExpr, bool)
fillFieldMap
()
*providerDo
withDO
(do gen.Dao)
:
*providerDo
All occurrences
Please wait...
Page is in error, reload to recover