parent
d70af38447
commit
a920fcfd91
10 changed files with 172 additions and 74 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
"xorm.io/builder"
|
||||
)
|
||||
|
||||
// Iterate iterate all the Bean object
|
||||
// Iterate iterates all the Bean object
|
||||
func Iterate[Bean any](ctx context.Context, cond builder.Cond, f func(ctx context.Context, bean *Bean) error) error {
|
||||
var start int
|
||||
batchSize := setting.Database.IterateBufferSize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue