SimpleDB is a lightweight, document-based database built on top of leveldb. It provides efficient storage and retrieval of documents using a simple interface.
- Lightweight and fast
- Document-based storage
- Built on top of leveldb for high-performance read write.
- Ubuntu (or other Linux distributions)
- Node.js (bundled with the SimpleDB package)
- Systemd for service management
-
Download and Install SimpleDB
Download the
.debpackage for AMD64 Machine from the GitHub release page and install. -
Starting the service
sudo systemctl start simpledb -
Enable to start on boot
sudo systemctl enable simpledb
-
Open terminal and type simplesh
simpleshIt will open the shell to connect to the database, there is no authentication implemented, so it is not recommended to use in production environmnet, just to test it out.
Once connected to the shell you can perform crud operations.
Create Collection
collection.create({collectionName: "users"})List Collections
collection.listCollection()Delete Collection
collection.delete({collectionName: "users"})Create document
users.createOne({name: "John Doe"})Read one document
users.findOne({name: "John Doe"})Read all document(arg optional)
users.find({name: "John Doe"})Update document
users.updateOne({name: "John Doe"}, {name: "Doe John"})Delete document
users.deleteOne({name: "Doe John"})