asdine / storm

Simple and powerful toolkit for BoltDB
MIT License
2.07k stars 139 forks source link

how can I have records by index #267

Closed nicewook closed 4 years ago

nicewook commented 4 years ago

This is my code

TransactionID field is int32 type, tag is

TransactionID int32json:"transactionID" storm:"id,index,increment"``

So I want to have records from since with amount of limit db.AllByIndex("TransactionID", &txLogs, storm.Limit(limit), storm.Skip(since))

But, I think storm fetch them as if it is string, not int32