ostafen / clover

A lightweight document-oriented NoSQL database written in pure Golang.
MIT License
677 stars 54 forks source link

Memory store was removed in v2 #141

Closed daenney closed 9 months ago

daenney commented 9 months ago

Looking at the README, there's a line for c.Open("", c.InMemory(true)) suggesting that there's a way to use Clover with memory-backed storage. I wanted to use this in tests. However, the import path there is for the original/v1 version of the package. Trying the same thing in v2, it seems this option is gone and Open() no longer accepts such options.

Digging into the store package a bit, there doesn't seem to be an in-memory option anymore either. Was this removed in v2? I assume that now the only option is to use Badger with their in-memory implementation?

ostafen commented 9 months ago

Yes, you're right