https://github.com/whoabhisheksah/worlds-simplest-database
https://github.com/whoabhisheksah/worlds-simplest-database
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/whoabhisheksah/worlds-simplest-database
- Owner: whoAbhishekSah
- Created: 2020-06-17T15:03:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T15:08:32.000Z (almost 5 years ago)
- Last Synced: 2025-01-21T15:28:31.898Z (5 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simplest Database
### How it works
- To set a key in database:
```sh
$ db_set 123456 '{"name":"London","attractions":["Big Ben","London Eye"]}'
$ db_set 42 '{"name":"San Francisco","attractions":["Golden Gate Bridge"]}'
```- To get value of a key from database:
```sh
$ db_get 42
//{"name":"San Francisco","attractions":["Golden Gate Bridge"]}
```
Note: This is taken from the book [DDIA](https://www.amazon.com/Designing-Data-Intensive-Applications-Reliable-Maintainable/dp/1449373321)