c#的跨平台嵌入式数据库/键值存储

时间:2022-06-28 03:20:36

I'm looking for a fast, embeddable key/value store with cursor semantics over key collections (or a simple embeddable DB) that I can use in .NET and mono. Need it to be open-source, would prefer an MIT or Apache style license over a GPL license. Not opposed to a library that needs bindings to be written, as long as binaries are available for both windows and linux.

我正在寻找一个快速的、可嵌入的键/值存储,在键集合(或者一个简单的可嵌入的DB)上有游标语义,我可以在。net和mono中使用它。需要它是开源的,宁愿使用MIT或Apache风格的许可证,也不愿使用GPL许可证。不反对需要编写绑定的库,只要windows和linux都可以使用二进制文件。

Options considered:

选择考虑:

  • SQLite - has bindings and native implementation, but single-threaded and not all that fast
  • SQLite -有绑定和本地实现,但是单线程的,而且不是那么快
  • Embedded InnoDB - no .NET bindings i can find and it's GPLv2
  • 嵌入式InnoDB——我找不到。net绑定,它是GPLv2
  • Berkley DB - no .NET bindings i can find
  • 我找不到。net绑定
  • Tokyo Cabinet - no .NET bindings i can find and problematic to build on windows
  • 东京内阁-没有。net绑定我可以找到和问题建立在windows上
  • MadCow Memory-mapped data structures - GPLv2
  • MadCow内存映射数据结构- GPLv2

Is there an option better than the above that i'm missing, or bindings for the above i don't know about?

是否有更好的选项比上面我所遗漏的,或以上我不知道的绑定更好?

UPDATE: Used Oracle's official BDB bindings with 4.8 and 5.0 but couldn't get them working under mono. Also had some other issues (C# drivers for BDB are still immature). Wrote a BitCask inspired K/V store called Firkin ( http://github.com/sdether/Firkin ) store and using that now instead.

更新:使用Oracle的官方BDB绑定,有4.8和5.0,但不能让他们在mono下工作。还有其他问题(BDB的c#驱动程序还不成熟)。写了一个名为Firkin (http://github.com/sdether/Firkin)的BitCask启发了K/V商店,现在改为使用它。

2 个解决方案

#1


5  

A quick search for Berkeley DB Bindings for C# turned up - Berkeley DB for .NET

快速搜索Berkeley DB绑定到c# - Berkeley DB到。net

#2


0  

i vote for Berkley DB. it is very fast and wrapper is good. i used it a lot

我投Berkley DB的票。它速度很快,包装很好。我经常用它

#1


5  

A quick search for Berkeley DB Bindings for C# turned up - Berkeley DB for .NET

快速搜索Berkeley DB绑定到c# - Berkeley DB到。net

#2


0  

i vote for Berkley DB. it is very fast and wrapper is good. i used it a lot

我投Berkley DB的票。它速度很快,包装很好。我经常用它