https://github.com/teodev1611/darth-db
A tiny database for the Dark Side
https://github.com/teodev1611/darth-db
database golang golang-library golang-module golang-package help-wanted
Last synced: 4 months ago
JSON representation
A tiny database for the Dark Side
- Host: GitHub
- URL: https://github.com/teodev1611/darth-db
- Owner: TeoDev1611
- License: apache-2.0
- Created: 2021-06-06T21:33:33.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T15:57:43.000Z (about 3 years ago)
- Last Synced: 2025-03-31T06:51:13.468Z (over 1 year ago)
- Topics: database, golang, golang-library, golang-module, golang-package, help-wanted
- Language: Go
- Homepage:
- Size: 1.45 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
The Darth Database for the Dark Side
## 🤔 What is that?
This is a tiny database for small projects using many formats inspired in **lowdb**
## 💻 How install?
```
go get github.com/TeoDev1611/darth-db
```
## Examples 👌
Write a json database with the data:
```go
package main
import (
"github.com/TeoDev1611/darth-db/json"
)
func main() {
data := map[string]interface{}{
"database": "darth-db",
"awesome": true,
"easy": true,
"description": "A little db for the dark side",
}
json.WriteDB("sampledb.json", " ", false, data)
}
```
## 💁 Todo
- [x] Write Json Files
- [x] Parse String to Map String interface
- [x] Get all data from the json
- [x] Get a single value of the json
- [x] Support for toml
- [ ] Encrypt function
- [x] Examples
- [ ] Support for Yaml
## ✅ Authors
Special thanks to [GolangUA](https://github.com/GolangUA/gopher-logos) and [Red Panda](http://panda-art.red/) for this beautiful illustration 🤟.
Project made by @TeoDev1611