rosedb icon indicating copy to clipboard operation
rosedb copied to clipboard

add GetAllKeys

Open roseduan opened this issue 2 years ago • 2 comments

A new feature: list all stored keys conatain all datastructure types.

Here is my idea:

  • add GetKeys command in different data types respectively(GetStrsKeys, GetListKeys, GetHashKeys...)
  • add GetAllKeys command in db.go, retrieve all data types GetKeys concurrently

The GetAllKeys method like this: func (db *RoseDB) GetAllKeys(dataTypes... DataType) (map[DataType][][]byte, error)

roseduan avatar Jul 02 '22 15:07 roseduan

I have add a GetStrsKeys method in strs.go

roseduan avatar Jul 03 '22 13:07 roseduan

I have added pr https://github.com/flower-corp/rosedb/pull/190

Reid00 avatar Jul 05 '22 08:07 Reid00