Skip to content

crud: typed batches #365

Closed
Closed

Description

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions