kkli08 / KV-Store

Key-Value Storage Database
https://kkli08.github.io/VeloxDB/
MIT License
1 stars 0 forks source link

OPEN & CLOSE command #5

Closed kkli08 closed 2 months ago

kkli08 commented 2 months ago

The Open command in the API should create a directory with the name of the database you are creating and store all SSTs and other data relating to your database within this directory.

If the open command is called with the name of an existing directory, it should prepare that database for operation.

The close command should transform whatever is in the current Memtable into an SST and gracefully shut down the database without losing any data in memory.

When you subsequently open the same database, all data that had previously been inserted should still be available.

kkli08 commented 2 months ago

Open command finished with unit test added

kkli08 commented 2 months ago

finish api::open() and api::close() command, implement Index Class for retrieving SSTs info