Skip to content

NandaAmanta/Amanta-DB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AmantaDB 🚀

AmantaDB is a lightweight, high performance In Memory Cache with JSON Persistence for Go. It provides a simple SQL-like interface to manage key value data organized by prefixes (tables).

Features

  • In Memory Speed: Lightning fast data access as all operations are performed in RAM.
  • Auto Persistence: Data is automatically flushed to a JSON file on every write operation.
  • SQL Interface: Familiar syntax for developers (SELECT, INSERT, DELETE).
  • Dot Notation Storage: Keys are automatically formatted as prefix.key for easy organization.
  • Thread Safe: Built-in concurrency control using sync.RWMutex, making it safe for production use.

Installation

Initialize your Go module and install AmantaDB:

go get [github.com/username/amantadb](https://github.com/username/amantadb)

Quick Start

A. Using make

  1. git clone or download the repository
  2. run make install
  3. then type amantadb
  4. here we go, now you access amantadb CLI
amantadb>

Storage Format

{
  "orders.id:101": "{\"item\": \"Laptop\", \"price\": 1500}",
  "users.u1": "Amanta"
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

AmantaDB is a lightweight, high performance In Memory Cache with JSON Persistence for Go. It provides a simple SQL-like interface to manage key value data organized by prefixes (tables).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors