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
↓ 256 callers
Method
Name
()
column.go:19
↓ 252 callers
Method
Error
()
errors.go:151
↓ 225 callers
Method
Enter
return it parent ToyBrick it will panic when the parent ToyBrick is nil
toy_brick.go:102
↓ 224 callers
Method
Err
()
result.go:198
↓ 209 callers
Method
Preload
return
toy_brick.go:146
↓ 147 callers
Method
Model
(v interface{})
toy.go:64
↓ 119 callers
Method
Find
(v interface{})
toy_brick.go:732
↓ 116 callers
Method
Column
()
column.go:14
↓ 93 callers
Method
Field
(field string)
record.go:21
↓ 93 callers
Method
Insert
insert can receive three type data struct map[offset]interface{} map[int]interface{} insert is difficult that have preload data
toy_brick.go:709
↓ 86 callers
Method
Append
(query string, args ...interface{})
exec.go:19
↓ 82 callers
Method
GetFieldWithName
(name string)
model.go:88
↓ 76 callers
Method
Err
()
result.go:35
↓ 76 callers
Method
Join
(model *Model, field Field)
toy.go:177
↓ 70 callers
Method
Source
()
exec.go:16
↓ 70 callers
Method
Where
where will clean old condition
toy_brick.go:466
↓ 68 callers
Function
MakeRecordsWithElem
use element type to create ModelRecords
record.go:86
↓ 67 callers
Method
SetModelHandlers
(option string, model *Model, handlers CollectionHandlersChain)
collection.go:115
↓ 62 callers
Method
Next
()
context.go:59
↓ 61 callers
Method
GetOnePrimary
()
model.go:103
↓ 55 callers
Method
Len
()
record.go:51
↓ 51 callers
Method
GetRecords
()
record.go:45
↓ 51 callers
Method
StructField
sql type declaration
model_field.go:37
↓ 48 callers
Method
Args
exec encode code
exec.go:18
↓ 47 callers
Method
SetField
(field string, v reflect.Value)
record.go:19
↓ 46 callers
Method
GetFieldType
(string)
record.go:25
↓ 45 callers
Method
Query
exec source code
exec.go:17
↓ 45 callers
Method
Report
Rename to Log
result.go:155
↓ 43 callers
Method
DropTableIfExist
()
toy_brick.go:687
↓ 40 callers
Method
Index
auto increment declaration
model_field.go:31
↓ 39 callers
Function
LoopIndirect
loop to get ptr value elem when its type is not ptr
basic.go:128
↓ 38 callers
Method
Add
(v reflect.Value)
record.go:46
↓ 38 callers
Method
GetModel
TODO testing thread safe? if not add lock
toy_kernel.go:26
↓ 35 callers
Method
And
()
toy_brick.go:78
↓ 35 callers
Method
CreateTable
(*Model, map[string]ForeignKey)
dialect.go:34
↓ 34 callers
Method
Condition
(columnValue FieldValue, expr, linkExpr SearchExpr)
search.go:54
↓ 34 callers
Method
GetContext
(option string, records ModelRecords)
toy_brick.go:585
↓ 33 callers
Method
GroupBy
(key string)
record.go:53
↓ 33 callers
Method
fieldSelect
(v FieldSelection)
model.go:241
↓ 32 callers
Method
Value
()
column.go:24
↓ 30 callers
Function
LoopTypeIndirect
loop to get ptr type elem when its type is not ptr/slice
basic.go:112
↓ 30 callers
Method
Save
(v interface{})
toy_brick.go:756
↓ 30 callers
Method
Scope
(fn func(*ToyBrick) *ToyBrick)
toy_brick.go:86
↓ 30 callers
Method
Swap
()
toy_brick.go:232
↓ 29 callers
Method
Conditions
(search SearchList)
toy_brick.go:475
↓ 27 callers
Method
AddRecord
(q SqlAction)
result.go:61
↓ 26 callers
Function
createTableUnit
(brick *ToyBrick)
main_test.go:798
↓ 25 callers
Method
GetRecord
(int)
record.go:44
↓ 25 callers
Function
IsZero
to check value is zero
basic.go:182
↓ 23 callers
Method
Exec
(query string, args ...interface{})
dialect.go:22
↓ 23 callers
Method
FieldValue
model struct attribute
model_field.go:38
↓ 23 callers
Function
NewRecords
(model *Model, value reflect.Value)
record.go:56
↓ 22 callers
Function
LoopDivePtr
(vValue reflect.Value)
basic.go:146
↓ 22 callers
Function
LoopDiveSliceAndPtr
loop to get ptr value elem if its type is ptr, get it's elem if it's type is slice get it's first elem or zero value's elem type loop get will not cha
basic.go:162
↓ 22 callers
Function
NewSearchBranch
(op SearchExpr)
search.go:41
↓ 21 callers
Method
Delete
(v interface{})
toy_brick.go:789
↓ 21 callers
Method
ModelHandlers
(option string, model *Model)
toy.go:93
↓ 20 callers
Function
NewSearchTree
(val SearchCell)
search.go:76
↓ 19 callers
Method
ToFieldValue
(value reflect.Value)
model_field.go:46
↓ 18 callers
Function
LoopIndirectAndNew
loop to get ptr value elem when its type is not ptr and if value is zero, set a new one
basic.go:136
↓ 18 callers
Method
Or
()
toy_brick.go:82
↓ 17 callers
Method
CopyStatus
(statusBrick *ToyBrick)
toy_brick.go:91
↓ 17 callers
Function
resultProcessor
(result *Result, err error)
main_test.go:826
↓ 16 callers
Method
GetPrimary
()
model.go:95
↓ 16 callers
Function
SqlNameConvert
* column convert rule: User => user UserName => user_name UserID => user_id OneToOne => one_to_one */
basic.go:26
↓ 16 callers
Method
WhereGroup
expr only support And/Or , group must be struct data or map[string]interface{}/map[uintptr]interface{}
toy_brick.go:471
↓ 15 callers
Method
GetPosField
(pos int)
model.go:53
↓ 15 callers
Method
GetSqlFields
()
model.go:57
↓ 14 callers
Function
NewCollectionContext
(handlers CollectionHandlersChain, brick *CollectionBrick, columns ModelRecords)
context.go:94
↓ 14 callers
Function
NewToyBrick
(toy *Toy, model *Model)
toy_brick.go:55
↓ 14 callers
Method
ToColumnAlias
(alias string)
model_field.go:45
↓ 13 callers
Method
Debug
()
toy_brick.go:571
↓ 13 callers
Function
NewCollectionBrick
(toy *ToyCollection, model *Model)
collection_brick.go:42
↓ 13 callers
Function
NewSearchLeaf
(op SearchExpr, columnValue FieldValue)
search.go:47
↓ 13 callers
Method
Next
()
context.go:114
↓ 13 callers
Method
OrderBy
(vList ...FieldSelection)
toy_brick.go:512
↓ 13 callers
Method
Scan
(value interface{})
examples/join_example/join_example.go:21
↓ 12 callers
Method
CreateTableIfNotExist
()
toy_brick.go:677
↓ 12 callers
Method
Name
sql column declaration
model_field.go:27
↓ 12 callers
Function
NewContext
(handlers HandlersChain, brick *ToyBrick, columns ModelRecords)
context.go:39
↓ 12 callers
Function
NewModel
(val reflect.Value)
model.go:132
↓ 12 callers
Method
Scope
(fn func(*CollectionBrick) *CollectionBrick)
collection_brick.go:81
↓ 12 callers
Method
String
()
result.go:195
↓ 12 callers
Method
Template
(temp string, args ...interface{})
toy_brick.go:539
↓ 12 callers
Method
Update
(v interface{})
toy_brick.go:744
↓ 12 callers
Method
getFieldValuePairWithRecord
(mode Mode, record ModelRecord)
toy_brick.go:920
↓ 11 callers
Method
Abort
()
context.go:79
↓ 11 callers
Method
JsonArgs
()
exec.go:20
↓ 11 callers
Method
TemplateExec
(BasicExec, map[string]BasicExec)
dialect.go:46
↓ 11 callers
Method
find
(value reflect.Value)
toy_brick.go:650
↓ 10 callers
Method
FieldAddress
(field string)
record.go:22
↓ 10 callers
Method
HasTable
(*Model)
dialect.go:33
↓ 10 callers
Function
JsonEncode
* ---------------------- data definition ------------------------- */
examples/simple_example/simple_example.go:21
↓ 10 callers
Method
Keys
()
record.go:35
↓ 10 callers
Method
deleteWithPrimaryKey
(records ModelRecords)
toy_brick.go:610
↓ 9 callers
Method
Fill
func NewSearchList(val ...SearchCell) SearchList{ }
search.go:86
↓ 9 callers
Method
GetFieldAddressType
(string)
record.go:48
↓ 9 callers
Function
NewRecord
(model *Model, value reflect.Value)
record.go:72
↓ 9 callers
Method
ToValueList
()
model_field.go:320
↓ 8 callers
Method
QueryRow
(query string, args ...interface{})
dialect.go:23
next →
1–100 of 754, ranked by callers