MCPcopy Create free account

hub / github.com/bigpigeon/toyorm / functions

Functions754 in github.com/bigpigeon/toyorm

↓ 256 callersMethodName
()
column.go:19
↓ 252 callersMethodError
()
errors.go:151
↓ 225 callersMethodEnter
return it parent ToyBrick it will panic when the parent ToyBrick is nil
toy_brick.go:102
↓ 224 callersMethodErr
()
result.go:198
↓ 209 callersMethodPreload
return
toy_brick.go:146
↓ 147 callersMethodModel
(v interface{})
toy.go:64
↓ 119 callersMethodFind
(v interface{})
toy_brick.go:732
↓ 116 callersMethodColumn
()
column.go:14
↓ 93 callersMethodField
(field string)
record.go:21
↓ 93 callersMethodInsert
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 callersMethodAppend
(query string, args ...interface{})
exec.go:19
↓ 82 callersMethodGetFieldWithName
(name string)
model.go:88
↓ 76 callersMethodErr
()
result.go:35
↓ 76 callersMethodJoin
(model *Model, field Field)
toy.go:177
↓ 70 callersMethodSource
()
exec.go:16
↓ 70 callersMethodWhere
where will clean old condition
toy_brick.go:466
↓ 68 callersFunctionMakeRecordsWithElem
use element type to create ModelRecords
record.go:86
↓ 67 callersMethodSetModelHandlers
(option string, model *Model, handlers CollectionHandlersChain)
collection.go:115
↓ 62 callersMethodNext
()
context.go:59
↓ 61 callersMethodGetOnePrimary
()
model.go:103
↓ 55 callersMethodLen
()
record.go:51
↓ 51 callersMethodGetRecords
()
record.go:45
↓ 51 callersMethodStructField
sql type declaration
model_field.go:37
↓ 48 callersMethodArgs
exec encode code
exec.go:18
↓ 47 callersMethodSetField
(field string, v reflect.Value)
record.go:19
↓ 46 callersMethodGetFieldType
(string)
record.go:25
↓ 45 callersMethodQuery
exec source code
exec.go:17
↓ 45 callersMethodReport
Rename to Log
result.go:155
↓ 43 callersMethodDropTableIfExist
()
toy_brick.go:687
↓ 40 callersMethodIndex
auto increment declaration
model_field.go:31
↓ 39 callersFunctionLoopIndirect
loop to get ptr value elem when its type is not ptr
basic.go:128
↓ 38 callersMethodAdd
(v reflect.Value)
record.go:46
↓ 38 callersMethodGetModel
TODO testing thread safe? if not add lock
toy_kernel.go:26
↓ 35 callersMethodAnd
()
toy_brick.go:78
↓ 35 callersMethodCreateTable
(*Model, map[string]ForeignKey)
dialect.go:34
↓ 34 callersMethodCondition
(columnValue FieldValue, expr, linkExpr SearchExpr)
search.go:54
↓ 34 callersMethodGetContext
(option string, records ModelRecords)
toy_brick.go:585
↓ 33 callersMethodGroupBy
(key string)
record.go:53
↓ 33 callersMethodfieldSelect
(v FieldSelection)
model.go:241
↓ 32 callersMethodValue
()
column.go:24
↓ 30 callersFunctionLoopTypeIndirect
loop to get ptr type elem when its type is not ptr/slice
basic.go:112
↓ 30 callersMethodSave
(v interface{})
toy_brick.go:756
↓ 30 callersMethodScope
(fn func(*ToyBrick) *ToyBrick)
toy_brick.go:86
↓ 30 callersMethodSwap
()
toy_brick.go:232
↓ 29 callersMethodConditions
(search SearchList)
toy_brick.go:475
↓ 27 callersMethodAddRecord
(q SqlAction)
result.go:61
↓ 26 callersFunctioncreateTableUnit
(brick *ToyBrick)
main_test.go:798
↓ 25 callersMethodGetRecord
(int)
record.go:44
↓ 25 callersFunctionIsZero
to check value is zero
basic.go:182
↓ 23 callersMethodExec
(query string, args ...interface{})
dialect.go:22
↓ 23 callersMethodFieldValue
model struct attribute
model_field.go:38
↓ 23 callersFunctionNewRecords
(model *Model, value reflect.Value)
record.go:56
↓ 22 callersFunctionLoopDivePtr
(vValue reflect.Value)
basic.go:146
↓ 22 callersFunctionLoopDiveSliceAndPtr
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 callersFunctionNewSearchBranch
(op SearchExpr)
search.go:41
↓ 21 callersMethodDelete
(v interface{})
toy_brick.go:789
↓ 21 callersMethodModelHandlers
(option string, model *Model)
toy.go:93
↓ 20 callersFunctionNewSearchTree
(val SearchCell)
search.go:76
↓ 19 callersMethodToFieldValue
(value reflect.Value)
model_field.go:46
↓ 18 callersFunctionLoopIndirectAndNew
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 callersMethodOr
()
toy_brick.go:82
↓ 17 callersMethodCopyStatus
(statusBrick *ToyBrick)
toy_brick.go:91
↓ 17 callersFunctionresultProcessor
(result *Result, err error)
main_test.go:826
↓ 16 callersMethodGetPrimary
()
model.go:95
↓ 16 callersFunctionSqlNameConvert
* column convert rule: User => user UserName => user_name UserID => user_id OneToOne => one_to_one */
basic.go:26
↓ 16 callersMethodWhereGroup
expr only support And/Or , group must be struct data or map[string]interface{}/map[uintptr]interface{}
toy_brick.go:471
↓ 15 callersMethodGetPosField
(pos int)
model.go:53
↓ 15 callersMethodGetSqlFields
()
model.go:57
↓ 14 callersFunctionNewCollectionContext
(handlers CollectionHandlersChain, brick *CollectionBrick, columns ModelRecords)
context.go:94
↓ 14 callersFunctionNewToyBrick
(toy *Toy, model *Model)
toy_brick.go:55
↓ 14 callersMethodToColumnAlias
(alias string)
model_field.go:45
↓ 13 callersMethodDebug
()
toy_brick.go:571
↓ 13 callersFunctionNewCollectionBrick
(toy *ToyCollection, model *Model)
collection_brick.go:42
↓ 13 callersFunctionNewSearchLeaf
(op SearchExpr, columnValue FieldValue)
search.go:47
↓ 13 callersMethodNext
()
context.go:114
↓ 13 callersMethodOrderBy
(vList ...FieldSelection)
toy_brick.go:512
↓ 13 callersMethodScan
(value interface{})
examples/join_example/join_example.go:21
↓ 12 callersMethodCreateTableIfNotExist
()
toy_brick.go:677
↓ 12 callersMethodName
sql column declaration
model_field.go:27
↓ 12 callersFunctionNewContext
(handlers HandlersChain, brick *ToyBrick, columns ModelRecords)
context.go:39
↓ 12 callersFunctionNewModel
(val reflect.Value)
model.go:132
↓ 12 callersMethodScope
(fn func(*CollectionBrick) *CollectionBrick)
collection_brick.go:81
↓ 12 callersMethodString
()
result.go:195
↓ 12 callersMethodTemplate
(temp string, args ...interface{})
toy_brick.go:539
↓ 12 callersMethodUpdate
(v interface{})
toy_brick.go:744
↓ 12 callersMethodgetFieldValuePairWithRecord
(mode Mode, record ModelRecord)
toy_brick.go:920
↓ 11 callersMethodAbort
()
context.go:79
↓ 11 callersMethodJsonArgs
()
exec.go:20
↓ 11 callersMethodTemplateExec
(BasicExec, map[string]BasicExec)
dialect.go:46
↓ 11 callersMethodfind
(value reflect.Value)
toy_brick.go:650
↓ 10 callersMethodFieldAddress
(field string)
record.go:22
↓ 10 callersMethodHasTable
(*Model)
dialect.go:33
↓ 10 callersFunctionJsonEncode
* ---------------------- data definition ------------------------- */
examples/simple_example/simple_example.go:21
↓ 10 callersMethodKeys
()
record.go:35
↓ 10 callersMethoddeleteWithPrimaryKey
(records ModelRecords)
toy_brick.go:610
↓ 9 callersMethodFill
func NewSearchList(val ...SearchCell) SearchList{ }
search.go:86
↓ 9 callersMethodGetFieldAddressType
(string)
record.go:48
↓ 9 callersFunctionNewRecord
(model *Model, value reflect.Value)
record.go:72
↓ 9 callersMethodToValueList
()
model_field.go:320
↓ 8 callersMethodQueryRow
(query string, args ...interface{})
dialect.go:23
next →1–100 of 754, ranked by callers