What is Membin?
The Membin database system is in-memory database smiliar to key-value databases, target to efficieny and performance. Datas store in hashmap with keys and values, values parse to JSON and stored as byte array.
Example of local using without server on Go
package main
import (
"fmt"
"github.com/membin/membin/store"
)
type User struct {
Id int
Username string
}
func main() {
source := store.Init()
source.Append("admin", User{
Id: 1,
Username: "Mertcan",
})
source.Append("users", []User{})
fmt.Println(source.Source()) // Print data source as map[string][]byte
}