Closed ivanjaros closed 3 years ago
Since there is support for unique indices, I am missing a method to load record by this unique field. The find method uses slice which requires more lines of code to return single result.
Yep, the sister project to this one BoltHold has a FindOne function, that sounds similar to what you are asking.
BoltHold
FindOne
FindOne has been added to master via #42
Since there is support for unique indices, I am missing a method to load record by this unique field. The find method uses slice which requires more lines of code to return single result.