Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bigpigeon/toyorm
/ functions
Functions
754 in github.com/bigpigeon/toyorm
⨍
Functions
754
◇
Types & classes
283
Function
HandlerUSave
(ctx *Context)
handlers.go:651
Function
HandlerUSaveTimeGenerate
(ctx *Context)
handlers.go:713
Function
HandlerUpdate
(ctx *Context)
handlers.go:555
Function
HandlerUpdateTimeGenerate
(ctx *Context)
handlers.go:544
Method
HasTable
()
collection_brick.go:472
Method
HasTable
()
toy_brick.go:692
Method
HasTable
(model *Model)
dialect_sqlite.go:18
Method
HasTable
use to test
dialect.go:78
Method
HasTable
(model *Model)
dialect_mysql.go:26
Method
HasTable
(model *Model)
dialect_postgres.go:20
Method
IgnoreMode
(s Mode, ignore IgnoreMode)
collection_brick.go:360
Method
Index
()
model_field.go:138
Method
Insert
insert can receive three type data struct map[offset]interface{} map[int]interface{} insert is difficult that have preload data
collection_brick.go:511
Method
InsertExec
(record ModelRecord)
collection_brick.go:664
Method
InsertExec
(record ModelRecord)
toy_brick.go:904
Method
InsertExec
(model *Model, columnValues []ColumnNameValue)
dialect.go:361
Method
InsertExec
(model *Model, columnValues []ColumnNameValue)
dialect_postgres.go:343
Method
InsertExecutor
(db Executor, exec ExecValue, debugPrinter func(ExecValue, error))
dialect.go:70
Method
InsertExecutor
(db Executor, exec ExecValue, debugPrinter func(ExecValue, error))
dialect_postgres.go:41
Method
IsAborted
()
context.go:75
Method
IsAborted
()
context.go:130
Method
IsForeign
()
model_field.go:146
Method
IsPrimary
()
model_field.go:130
Method
IsVariableContainer
()
record.go:49
Method
IsVariableContainer
()
record_namemap.go:152
Method
IsVariableContainer
()
record_namemap.go:206
Method
IsVariableContainer
()
record_offsetmap.go:135
Method
IsVariableContainer
()
record_offsetmap.go:189
Method
IsVariableContainer
()
record_struct.go:184
Method
IsVariableContainer
()
record_struct.go:258
Method
Join
use join to association query
toy_brick.go:198
Method
JoinExec
(mainSwap *JoinSwap)
dialect.go:417
Method
JoinExec
(mainSwap *JoinSwap)
dialect_postgres.go:420
Method
JoinWith
model meta field value
model_field.go:39
Method
JoinWith
()
model_field.go:174
Method
JsonArgs
()
exec.go:52
Method
Len
()
record_namemap.go:160
Method
Len
()
record_offsetmap.go:143
Method
Len
()
record_struct.go:192
Method
LoginPage
(ctx *gin.Context)
examples/website/website.go:74
Method
Logout
(ctx *gin.Context)
examples/website/website.go:125
Method
MainPage
(ctx *gin.Context)
examples/website/website.go:59
Function
MakeRecords
(model *Model, _type reflect.Type)
record.go:91
Method
ManyToManyPreload
(model *Model, field Field, isRight bool)
collection.go:185
Method
MarshalJSON
()
examples/website/utils.go:35
Method
MiddleModel
(v, sv interface{})
collection.go:122
Method
ModelHandlers
(option string, model *Model)
collection.go:108
Method
MustAddr
required object in Toy.[Model] TODO Brick.[Insert,Find,Update,Save,USave,Delete] method's parameter must be point object
toy.go:81
Method
Name
()
model_field.go:119
Method
Offset
(i int)
toy_brick.go:504
Method
Offset
()
model_field.go:126
Method
OneToManyPreload
(model *Model, field Field)
collection.go:172
Method
OneToManyWith
OneToOne with specified container field declaration,ToyBrick.Preload(<container field>) will automatic association this field
model_field.go:42
Method
OneToManyWith
()
model_field.go:186
Method
OneToOnePreload
(model *Model, field Field)
collection.go:159
Method
OneToOneWith
BelongTo with specified container field declaration,ToyBrick.Preload(<container field>) will automatic association this field
model_field.go:41
Method
OneToOneWith
()
model_field.go:182
Method
Or
()
collection_brick.go:70
Method
PostNewUser
(ctx *gin.Context)
examples/website/website.go:136
Method
PostOrder
(ctx *gin.Context)
examples/website/website.go:218
Method
PostSession
(ctx *gin.Context)
examples/website/website.go:249
Method
Preload
return
collection_brick.go:141
Method
Prepare
(query string)
toy_brick.go:854
Method
Query
(exec ExecValue, i int)
collection_brick.go:616
Method
Query
(exec ExecValue)
toy_brick.go:832
Method
Query
()
exec.go:38
Method
RegisterPage
(ctx *gin.Context)
examples/website/website.go:80
Method
RightValuePreload
this module is get preload which is right middle field name in many-to-many mode it only use for sub model type is same with main model type e.g User{
collection_brick.go:119
Method
Save
(v interface{})
collection_brick.go:549
Method
SaveExec
(record ModelRecord)
collection_brick.go:672
Method
SaveExec
(record ModelRecord)
toy_brick.go:912
Method
SaveExec
(model *Model, columnValues []ColumnNameValue)
dialect_sqlite.go:25
Method
SaveExec
(model *Model, columnValues []ColumnNameValue)
dialect.go:373
Method
SaveExec
replace will failure when have foreign key
dialect_mysql.go:101
Method
SaveExec
postgres have not replace use ON CONFLICT(%s) replace
dialect_postgres.go:352
Method
SaveExecutor
(db Executor, exec ExecValue, debugPrinter func(ExecValue, error))
dialect.go:52
Method
SaveExecutor
(db Executor, exec ExecValue, debugPrinter func(ExecValue, error))
dialect_mysql.go:19
Method
Scan
(value interface{})
examples/preload_example/preload_example.go:22
Method
Select
(n int)
main_test.go:103
Method
Selector
(selector DBPrimarySelector)
collection_brick.go:332
Method
SetAffectData
(d []int)
result.go:217
Method
SetAffectData
(d []int)
result.go:248
Method
SetAffectData
(d []int)
result.go:285
Method
SetAffectData
(d []int)
result.go:317
Method
SetField
(name string, value reflect.Value)
record_namemap.go:174
Method
SetField
(name string, value reflect.Value)
record_offsetmap.go:157
Method
SetField
set field to field value map or virtual field value map but if value is invalid delete it on map
record_struct.go:209
Method
Source
()
record.go:24
Method
Source
()
record.go:52
Method
Source
()
record_namemap.go:164
Method
Source
()
record_namemap.go:210
Method
Source
()
record_offsetmap.go:147
Method
Source
()
record_offsetmap.go:193
Method
Source
()
record_struct.go:196
Method
Source
()
record_struct.go:262
Method
Source
()
exec.go:34
Method
Source
default value in database
model_field.go:44
Method
Source
()
model_field.go:59
Method
Source
()
model_field.go:74
Method
Source
()
model_field.go:190
← previous
next →
501–600 of 754, ranked by callers