You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I want to give a value to Key before saving each instance, the value is calculated with ID and Uid. So is there a way to get the next sequence before saving an object like the way you use BoltDB?
Yes, I can make this done by updating the key after saving the object, but that's several more lines of code and I'm afraid of two IO operations for every single creation of an object.
The text was updated successfully, but these errors were encountered:
I have a struct as follows
and I want to give a value to
Key
before saving each instance, the value is calculated withID
andUid
. So is there a way to get the next sequence before saving an object like the way you use BoltDB?Yes, I can make this done by updating the key after saving the object, but that's several more lines of code and I'm afraid of two IO operations for every single creation of an object.
The text was updated successfully, but these errors were encountered: