Skip to content

Simple fast database that doesn't get in your way

Notifications You must be signed in to change notification settings

simvux/sfsdb-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pure-Go implementation of sfsdb

import (
    "github.com/AlmightyFloppyFish/sfsdb-go"
    "fmt"
)

// Must be exported
type User struct {
    Name string
    Id int
}

func main() {
    db := sfsdb.New("db", 10) // Cache up to 10 objects
    user := User { "some_name", 13142 }

    db.Save("some_key", user)

    var retrieved User
    db.Load("some_key", &retrieved)

    fmt.Println(user, "is same as", retrieved)
}

About

Simple fast database that doesn't get in your way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages