(key []byte)
| 162 | } |
| 163 | |
| 164 | func (rds *RocksDbStore) GetUint64(key []byte) (uint64, error) { |
| 165 | if len(key) == 0 { |
| 166 | return 0, _const.ErrKeyIsEmpty |
| 167 | } |
| 168 | ro := gorocksdb.NewDefaultReadOptions() |
| 169 | defer ro.Destroy() |
| 170 | |
| 171 | val, err := rds.conn.Get(ro, key) |
| 172 | if err != nil { |
| 173 | return 0, err |
| 174 | } |
| 175 | return bytesToUint64(val.Data()), nil |
| 176 | } |
nothing calls this directly
no test coverage detected