Closed ralphtheninja closed 10 years ago
I have another refactor coming for the linenoise stuff. It will be in a separate repl-function. I'm thinking we probably want to have support for piping data to ldb via stdin, kind of like the batch functionality in levelup. And in that case we want to separate repl-behavior with no repl at all, just streaming updates straight into the db.
Hehe we could probably even convert it into being a backend for levelup :)
A few things about this commit...
./test
db already.ldb(1)
is executed.Sure, no prob. Push your stuff and I'll apply my stuff on top of yours.
And not sure about how the piping would work. Playing with it at the moment.
Sorry about the diff. It's hard to see what happened because I got rid of indentation and at the same time reordered functions so the order in .h and .cc match. Probably easier if you just check ldb.h and ldb.cc manually.
Main goal is to try and keep the main() function super clean and start breaking out into functions. The functions can more easily be extracted into separate files later on. So should be easier to do https://github.com/hij1nx/ldb/issues/4