We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我有个kv生态建设项目: https://github.com/simpleKV/kvt
主要功能是维护kv对象的index, 当然支持index查询, 对就是类似sql的索引查询
目前已经支持boltdb, buntdb
但添加支持nutsdb的时候发现匹配有几个问题,当然也有可能是我没发掘出对应的api
问题1最好像boltdb一样, 支持直接iterate loop: for k, v := b.Cursor().Seek(prefix); k != nil && bytes.HasPrefix(k, prefix); k, v = c.Next()
或者如buntdb 一样支持传入一个函数: tx.AscendKeys(prerefix, func(key, value string) bool { return true })
最次的方案是把key和value 一起返回, 我需要在外层再loop 一把, low一点
The text was updated successfully, but these errors were encountered:
哈喽,可以看一下现在有个 pr 能不能满足你的需求:#592
Sorry, something went wrong.
不行哦, 首先我key和value我都需要
其次最好新api能接受一个用户的filter函数,让用户自己来选择哪些需要返回
参加主贴中的buntdb的函数吧
No branches or pull requests
我有个kv生态建设项目: https://github.com/simpleKV/kvt
主要功能是维护kv对象的index, 当然支持index查询, 对就是类似sql的索引查询
目前已经支持boltdb, buntdb
但添加支持nutsdb的时候发现匹配有几个问题,当然也有可能是我没发掘出对应的api
问题1最好像boltdb一样, 支持直接iterate loop:
for k, v := b.Cursor().Seek(prefix); k != nil && bytes.HasPrefix(k, prefix); k, v = c.Next()
或者如buntdb 一样支持传入一个函数: tx.AscendKeys(prerefix, func(key, value string) bool { return true })
最次的方案是把key和value 一起返回, 我需要在外层再loop 一把, low一点
The text was updated successfully, but these errors were encountered: