Skip to content

crud: typed batches #365

Closed
Closed
@a1div0

Description

@a1div0

Improvement suggested.
Let's say I set the following line:

enter Row struct {
   _msgpack struct{} `msgpack:",asArray"` //nolint: structcheck,unused
   Identifier uint `msgpack:"id"`
   BucketId *uint `msgpack:"bucket_id"`
   Too uint `msgpack:"too"`
   Foo string `msgpack:"foo"`
}

Make an improvement so that you can pass data in this structure in batches, for example to a method

// Row --> batch --> and ..
req := crud.MakeInsertObjectManyRequest("test").Objects(batches[i]) // <-- here

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions