Skip to content

dovics/pangolin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pangolin

Pangolin is a minio-based time series storage using lsm-tree

Example

package main

import (
	"fmt"
	"log"

	"github.com/dovics/pangolin"
	_ "github.com/dovics/pangolin/lsmt"
	"github.com/google/uuid"
)

func main() {
	db, err := pangolin.OpenDB(pangolin.DefaultOption(uuid.NewString()))
	if err != nil {
		log.Fatal(err)
	}

	for i := 0; i < 100; i++ {
		if err := db.Insert(int64(i), i); err != nil {
			log.Fatal(err)
		}
	}

	result, err := db.GetRange(20, 40, nil)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(result)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages