MCPcopy Create free account

hub / github.com/bigpigeon/toyorm / functions

Functions754 in github.com/bigpigeon/toyorm

↓ 8 callersFunctionResultProcess
(result *toyorm.Result, err error, ctx *gin.Context)
examples/website/utils.go:16
↓ 8 callersMethodSqlType
get all extension attribute
model_field.go:36
↓ 8 callersMethodUpdateExec
(*Model, []ColumnValue)
dialect.go:38
↓ 8 callersFunctionforeignKeyManyToManyPreload
use to create many to many preload which have foreign key
main_test.go:775
↓ 8 callersFunctiongetTemplateExec
placeholder format: $Name ok $name ok $1Name ok $User-Name ok $user_name ok $User- no, the placeholder are interception as $User $user_name_ n
basic.go:388
↓ 7 callersMethodAutoIncrement
primary key declaration
model_field.go:30
↓ 7 callersMethodClose
()
toy.go:100
↓ 7 callersMethodCopyManyToManyPreload
()
brick_common.go:48
↓ 7 callersMethodCopyMapPreloadBrick
()
toy_brick.go:284
↓ 7 callersMethodDefault
OneToMany with specified container field declaration,ToyBrick.Preload(<container field>) will automatic association this field
model_field.go:43
↓ 7 callersMethodLimit
(i int)
toy_brick.go:496
↓ 7 callersFunctionNewAffectNode
(val int, next *AffectNode)
result.go:75
↓ 7 callersMethodbindDefaultFields
(fields ...Field)
toy_brick.go:414
↓ 7 callersMethoddebugPrint
(exec ExecValue, err error)
toy_brick.go:810
↓ 7 callersFunctiongetColumnExec
(columns []Column)
basic.go:457
↓ 7 callersFunctionpanicErr
(err error)
examples/quick_start/main.go:15
↓ 6 callersMethodConditionExec
()
collection_brick.go:638
↓ 6 callersMethodConditionExec
()
toy_brick.go:876
↓ 6 callersMethodCopyMapPreloadBrick
()
collection_brick.go:176
↓ 6 callersMethodCopyStatus
(statusBrick *CollectionBrick)
collection_brick.go:86
↓ 6 callersFunctionDefaultCollectionTemplateExec
(brick *CollectionBrick)
basic.go:363
↓ 6 callersFunctionGetRelationFieldName
generate a default field name with relation model
basic.go:251
↓ 6 callersMethodIgnore
(v reflect.Value)
ignore_mode.go:29
↓ 6 callersMethodInsertExec
(*Model, []ColumnNameValue)
dialect.go:40
↓ 6 callersMethodIsBranch
()
search.go:32
↓ 6 callersMethodMiddleModel
(v, sv interface{})
toy.go:85
↓ 6 callersFunctionOpen
(driverName, dataSourceName string)
toy.go:23
↓ 6 callersFunctionSafeAppend
if value type is ptr to l elem type , try to get its elem and append to l if l elem type is ptr to x type , try to make x ptr and append to l
basic.go:216
↓ 6 callersMethodToColumnList
()
model_field.go:310
↓ 6 callersFunctioncreateCollectionTableUnit
(brick *CollectionBrick)
main_test.go:810
↓ 6 callersFunctiongetUpdateValuesExec
e.g return BasicExec{query: "a = ?,b = ?,c = ?" args:[1,2,3]}
basic.go:497
↓ 6 callersFunctioninsertValuesFormat
(model *Model, columnValues []ColumnNameValue)
basic.go:575
↓ 5 callersMethodAlias
(alias string)
toy_brick.go:247
↓ 5 callersMethodCopyJoinSwap
()
toy_brick.go:181
↓ 5 callersMethodCount
()
toy_brick.go:698
↓ 5 callersFunctionDefaultTemplateExec
(brick *ToyBrick)
basic.go:348
↓ 5 callersMethodFindExec
(model *Model, columns []Column, alias string)
dialect.go:37
↓ 5 callersFunctionIntKind
(kind reflect.Kind)
basic.go:613
↓ 5 callersMethodLastInsertId
()
dialect_postgres.go:33
↓ 5 callersMethodOffset
get field name
model_field.go:28
↓ 5 callersFunctiongetTestBenchmarkTable
(time time.Time)
benchmarks_test.go:16
↓ 5 callersFunctionjoinSwap
(swap *JoinSwap, brick *ToyBrick)
basic.go:509
↓ 4 callersMethodAttrs
extension attribute declaration
model_field.go:35
↓ 4 callersMethodBelongToBind
(model, subModel *Model, containerField, relationField Field)
toy.go:193
↓ 4 callersMethodConditionExec
(search SearchList, limit, offset int, orderBy []Column, groupBy []Column)
dialect.go:36
↓ 4 callersMethodCopyBelongToPreload
()
brick_common.go:24
↓ 4 callersMethodCopyOneToManyPreload
()
brick_common.go:40
↓ 4 callersMethodCopyOneToOnePreload
()
brick_common.go:32
↓ 4 callersMethodDeleteExec
(*Model)
dialect.go:39
↓ 4 callersMethodElemType
()
record.go:50
↓ 4 callersMethodGetContext
(option string, records ModelRecords)
collection_brick.go:366
↓ 4 callersMethodGetIndexMap
()
model.go:110
↓ 4 callersFunctionGetMiddleField
(model, middleModel *Model, leftOrRight bool)
basic.go:259
↓ 4 callersMethodGetUniqueIndexMap
()
model.go:121
↓ 4 callersMethodInsertExecutor
some database like postgres not support LastInsertId, need QueryRow to get the return id
dialect.go:29
↓ 4 callersFunctionJsonEncode
(v interface{})
examples/join_example/join_example.go:241
↓ 4 callersMethodManyToManyPreload
(model *Model, field Field, isRight bool)
toy.go:157
↓ 4 callersFunctionModelName
get model name with type
basic.go:323
↓ 4 callersMethodOneToManyBind
(model, subModel *Model, containerField, relationField Field)
toy.go:216
↓ 4 callersMethodOneToOneBind
(model, subModel *Model, containerField, relationField Field)
toy.go:205
↓ 4 callersMethodSaveExec
(*Model, []ColumnNameValue)
dialect.go:41
↓ 4 callersMethodSearchExec
(s SearchList)
dialect.go:183
↓ 4 callersMethodTempField
(v interface{}, temp string)
brick_common.go:73
↓ 4 callersMethodToNameValueList
()
model_field.go:328
↓ 4 callersMethodToStack
()
search.go:94
↓ 4 callersFunctioncolumnsValueToColumn
(values []ColumnValue)
basic.go:449
↓ 4 callersMethodgetFieldValuePairWithRecord
collection not support table alias
collection_brick.go:681
↓ 4 callersFunctionskillTestDB
(t testing.TB, dbs ...string)
main_test.go:840
↓ 3 callersMethodAffectData
()
result.go:196
↓ 3 callersMethodBegin
()
toy_brick.go:551
↓ 3 callersFunctionCollectionHandlerPreloadInsertOrSave
(option string)
collection_handlers.go:16
↓ 3 callersMethodCopy
()
join.go:46
↓ 3 callersMethodCustomManyToManyPreload
(middleStruct interface{}, container FieldSelection, relation, subRelation interface{}, args ...interface{})
toy_brick.go:366
↓ 3 callersMethodDBIndex
(i int)
collection_brick.go:340
↓ 3 callersFunctionGetStructValueFields
get all Value with struct field and its embed struct field
basic.go:87
↓ 3 callersFunctionHandlerPreloadInsertOrSave
(option string)
handlers.go:16
↓ 3 callersMethodHashPassword
(password string)
examples/website/website.go:29
↓ 3 callersMethodIsPrimary
relation position by model struct
model_field.go:29
↓ 3 callersFunctionJsonEncode
(v interface{})
examples/preload_example/preload_example.go:61
↓ 3 callersFunctionLoopTypeIndirectSliceAndPtr
loop to get ptr/slice type elem when its type is not ptr/slice
basic.go:120
↓ 3 callersMethodManyToManyPreloadBind
(model, subModel, middleModel *Model, containerField, relationField, subRelationField Field)
toy.go:229
↓ 3 callersFunctionNewStructRecord
(model *Model, value reflect.Value)
record_struct.go:60
↓ 3 callersFunctionPostsEncode
(p *Post, indent string)
examples/collection_example/collection_example.go:27
↓ 3 callersMethodRightValuePreload
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{
toy_brick.go:124
↓ 3 callersMethodUSave
save with exist data
toy_brick.go:773
↓ 3 callersMethodcondition
(expr SearchExpr, key FieldSelection, args ...interface{})
collection_brick_condition.go:87
↓ 3 callersMethodcondition
(expr SearchExpr, key FieldSelection, args ...interface{})
toy_brick.go:431
↓ 3 callersMethodconditionGroup
(expr SearchExpr, group interface{})
collection_brick_condition.go:101
↓ 3 callersMethodconditionGroup
(expr SearchExpr, group interface{})
toy_brick.go:445
↓ 3 callersMethoddebugPrint
(i int)
collection_brick.go:595
↓ 3 callersMethoddelete
(records ModelRecords)
toy_brick.go:630
↓ 3 callersFunctiongetFieldsWithRecords
(fields []Field, records ModelRecordFieldTypes)
basic.go:276
↓ 3 callersMethodgetScanFields
(records ModelRecordFieldTypes)
brick_common.go:56
↓ 3 callersMethodgetSelectFields
(records ModelRecordFieldTypes)
toy_brick.go:958
↓ 3 callersFunctionmakeRange
(min, max int)
basic.go:268
↓ 3 callersFunctionnewMiddleModel
(model, subModel *Model, tag reflect.StructTag)
model.go:146
↓ 3 callersFunctionnewModel
(val reflect.Value, modelName string)
model.go:168
↓ 3 callersFunctionsafeSet
if value type is different with current value type ,try to convert it
basic.go:198
↓ 2 callersMethodBelongToPreload
(model *Model, field Field)
toy.go:107
↓ 2 callersMethodBindDefaultFields
(args ...FieldSelection)
toy_brick.go:404
← previousnext →101–200 of 754, ranked by callers