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
↓ 8 callers
Function
ResultProcess
(result *toyorm.Result, err error, ctx *gin.Context)
examples/website/utils.go:16
↓ 8 callers
Method
SqlType
get all extension attribute
model_field.go:36
↓ 8 callers
Method
UpdateExec
(*Model, []ColumnValue)
dialect.go:38
↓ 8 callers
Function
foreignKeyManyToManyPreload
use to create many to many preload which have foreign key
main_test.go:775
↓ 8 callers
Function
getTemplateExec
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 callers
Method
AutoIncrement
primary key declaration
model_field.go:30
↓ 7 callers
Method
Close
()
toy.go:100
↓ 7 callers
Method
CopyManyToManyPreload
()
brick_common.go:48
↓ 7 callers
Method
CopyMapPreloadBrick
()
toy_brick.go:284
↓ 7 callers
Method
Default
OneToMany with specified container field declaration,ToyBrick.Preload(<container field>) will automatic association this field
model_field.go:43
↓ 7 callers
Method
Limit
(i int)
toy_brick.go:496
↓ 7 callers
Function
NewAffectNode
(val int, next *AffectNode)
result.go:75
↓ 7 callers
Method
bindDefaultFields
(fields ...Field)
toy_brick.go:414
↓ 7 callers
Method
debugPrint
(exec ExecValue, err error)
toy_brick.go:810
↓ 7 callers
Function
getColumnExec
(columns []Column)
basic.go:457
↓ 7 callers
Function
panicErr
(err error)
examples/quick_start/main.go:15
↓ 6 callers
Method
ConditionExec
()
collection_brick.go:638
↓ 6 callers
Method
ConditionExec
()
toy_brick.go:876
↓ 6 callers
Method
CopyMapPreloadBrick
()
collection_brick.go:176
↓ 6 callers
Method
CopyStatus
(statusBrick *CollectionBrick)
collection_brick.go:86
↓ 6 callers
Function
DefaultCollectionTemplateExec
(brick *CollectionBrick)
basic.go:363
↓ 6 callers
Function
GetRelationFieldName
generate a default field name with relation model
basic.go:251
↓ 6 callers
Method
Ignore
(v reflect.Value)
ignore_mode.go:29
↓ 6 callers
Method
InsertExec
(*Model, []ColumnNameValue)
dialect.go:40
↓ 6 callers
Method
IsBranch
()
search.go:32
↓ 6 callers
Method
MiddleModel
(v, sv interface{})
toy.go:85
↓ 6 callers
Function
Open
(driverName, dataSourceName string)
toy.go:23
↓ 6 callers
Function
SafeAppend
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 callers
Method
ToColumnList
()
model_field.go:310
↓ 6 callers
Function
createCollectionTableUnit
(brick *CollectionBrick)
main_test.go:810
↓ 6 callers
Function
getUpdateValuesExec
e.g return BasicExec{query: "a = ?,b = ?,c = ?" args:[1,2,3]}
basic.go:497
↓ 6 callers
Function
insertValuesFormat
(model *Model, columnValues []ColumnNameValue)
basic.go:575
↓ 5 callers
Method
Alias
(alias string)
toy_brick.go:247
↓ 5 callers
Method
CopyJoinSwap
()
toy_brick.go:181
↓ 5 callers
Method
Count
()
toy_brick.go:698
↓ 5 callers
Function
DefaultTemplateExec
(brick *ToyBrick)
basic.go:348
↓ 5 callers
Method
FindExec
(model *Model, columns []Column, alias string)
dialect.go:37
↓ 5 callers
Function
IntKind
(kind reflect.Kind)
basic.go:613
↓ 5 callers
Method
LastInsertId
()
dialect_postgres.go:33
↓ 5 callers
Method
Offset
get field name
model_field.go:28
↓ 5 callers
Function
getTestBenchmarkTable
(time time.Time)
benchmarks_test.go:16
↓ 5 callers
Function
joinSwap
(swap *JoinSwap, brick *ToyBrick)
basic.go:509
↓ 4 callers
Method
Attrs
extension attribute declaration
model_field.go:35
↓ 4 callers
Method
BelongToBind
(model, subModel *Model, containerField, relationField Field)
toy.go:193
↓ 4 callers
Method
ConditionExec
(search SearchList, limit, offset int, orderBy []Column, groupBy []Column)
dialect.go:36
↓ 4 callers
Method
CopyBelongToPreload
()
brick_common.go:24
↓ 4 callers
Method
CopyOneToManyPreload
()
brick_common.go:40
↓ 4 callers
Method
CopyOneToOnePreload
()
brick_common.go:32
↓ 4 callers
Method
DeleteExec
(*Model)
dialect.go:39
↓ 4 callers
Method
ElemType
()
record.go:50
↓ 4 callers
Method
GetContext
(option string, records ModelRecords)
collection_brick.go:366
↓ 4 callers
Method
GetIndexMap
()
model.go:110
↓ 4 callers
Function
GetMiddleField
(model, middleModel *Model, leftOrRight bool)
basic.go:259
↓ 4 callers
Method
GetUniqueIndexMap
()
model.go:121
↓ 4 callers
Method
InsertExecutor
some database like postgres not support LastInsertId, need QueryRow to get the return id
dialect.go:29
↓ 4 callers
Function
JsonEncode
(v interface{})
examples/join_example/join_example.go:241
↓ 4 callers
Method
ManyToManyPreload
(model *Model, field Field, isRight bool)
toy.go:157
↓ 4 callers
Function
ModelName
get model name with type
basic.go:323
↓ 4 callers
Method
OneToManyBind
(model, subModel *Model, containerField, relationField Field)
toy.go:216
↓ 4 callers
Method
OneToOneBind
(model, subModel *Model, containerField, relationField Field)
toy.go:205
↓ 4 callers
Method
SaveExec
(*Model, []ColumnNameValue)
dialect.go:41
↓ 4 callers
Method
SearchExec
(s SearchList)
dialect.go:183
↓ 4 callers
Method
TempField
(v interface{}, temp string)
brick_common.go:73
↓ 4 callers
Method
ToNameValueList
()
model_field.go:328
↓ 4 callers
Method
ToStack
()
search.go:94
↓ 4 callers
Function
columnsValueToColumn
(values []ColumnValue)
basic.go:449
↓ 4 callers
Method
getFieldValuePairWithRecord
collection not support table alias
collection_brick.go:681
↓ 4 callers
Function
skillTestDB
(t testing.TB, dbs ...string)
main_test.go:840
↓ 3 callers
Method
AffectData
()
result.go:196
↓ 3 callers
Method
Begin
()
toy_brick.go:551
↓ 3 callers
Function
CollectionHandlerPreloadInsertOrSave
(option string)
collection_handlers.go:16
↓ 3 callers
Method
Copy
()
join.go:46
↓ 3 callers
Method
CustomManyToManyPreload
(middleStruct interface{}, container FieldSelection, relation, subRelation interface{}, args ...interface{})
toy_brick.go:366
↓ 3 callers
Method
DBIndex
(i int)
collection_brick.go:340
↓ 3 callers
Function
GetStructValueFields
get all Value with struct field and its embed struct field
basic.go:87
↓ 3 callers
Function
HandlerPreloadInsertOrSave
(option string)
handlers.go:16
↓ 3 callers
Method
HashPassword
(password string)
examples/website/website.go:29
↓ 3 callers
Method
IsPrimary
relation position by model struct
model_field.go:29
↓ 3 callers
Function
JsonEncode
(v interface{})
examples/preload_example/preload_example.go:61
↓ 3 callers
Function
LoopTypeIndirectSliceAndPtr
loop to get ptr/slice type elem when its type is not ptr/slice
basic.go:120
↓ 3 callers
Method
ManyToManyPreloadBind
(model, subModel, middleModel *Model, containerField, relationField, subRelationField Field)
toy.go:229
↓ 3 callers
Function
NewStructRecord
(model *Model, value reflect.Value)
record_struct.go:60
↓ 3 callers
Function
PostsEncode
(p *Post, indent string)
examples/collection_example/collection_example.go:27
↓ 3 callers
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{
toy_brick.go:124
↓ 3 callers
Method
USave
save with exist data
toy_brick.go:773
↓ 3 callers
Method
condition
(expr SearchExpr, key FieldSelection, args ...interface{})
collection_brick_condition.go:87
↓ 3 callers
Method
condition
(expr SearchExpr, key FieldSelection, args ...interface{})
toy_brick.go:431
↓ 3 callers
Method
conditionGroup
(expr SearchExpr, group interface{})
collection_brick_condition.go:101
↓ 3 callers
Method
conditionGroup
(expr SearchExpr, group interface{})
toy_brick.go:445
↓ 3 callers
Method
debugPrint
(i int)
collection_brick.go:595
↓ 3 callers
Method
delete
(records ModelRecords)
toy_brick.go:630
↓ 3 callers
Function
getFieldsWithRecords
(fields []Field, records ModelRecordFieldTypes)
basic.go:276
↓ 3 callers
Method
getScanFields
(records ModelRecordFieldTypes)
brick_common.go:56
↓ 3 callers
Method
getSelectFields
(records ModelRecordFieldTypes)
toy_brick.go:958
↓ 3 callers
Function
makeRange
(min, max int)
basic.go:268
↓ 3 callers
Function
newMiddleModel
(model, subModel *Model, tag reflect.StructTag)
model.go:146
↓ 3 callers
Function
newModel
(val reflect.Value, modelName string)
model.go:168
↓ 3 callers
Function
safeSet
if value type is different with current value type ,try to convert it
basic.go:198
↓ 2 callers
Method
BelongToPreload
(model *Model, field Field)
toy.go:107
↓ 2 callers
Method
BindDefaultFields
(args ...FieldSelection)
toy_brick.go:404
← previous
next →
101–200 of 754, ranked by callers