Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

pghq/go-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-store

High-performance persistence library for internal Go apps.

Installation

go-store may be installed using the go get command:

go get github.com/pghq/go-store

Usage

A typical usage scenario:

import (
    "context"
    
    "github.com/pghq/go-store"
)

// Create an instance
db, err := store.New()
if err != nil{
    panic(err)
}

// Add some data
err := db.Do(context.TODO(), func(tx store.Txn) error {
    return tx.Add("tests", map[string]interface{}{"id": "1234"})
})

if err != nil{
    panic(err)
}

About

High-performance persistence library for internal Go apps.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages