All Projects β†’ xyproto β†’ Simplebolt

xyproto / Simplebolt

Licence: mit
πŸ”© Simple way to use the Bolt database

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Simplebolt

Stringz
A lightweight and powerful editor for localizing iOS, macOS, tvOS, and watchOS applications.
Stars: ✭ 440 (+658.62%)
Mutual labels:  strings
Xstrings
Implements string functions widely used in other languages but absent in Go.
Stars: ✭ 888 (+1431.03%)
Mutual labels:  strings
Cracking The Coding Interview
Solutions for Cracking the Coding Interview - 6th Edition
Stars: ✭ 35 (-39.66%)
Mutual labels:  strings
Bolthold
BoltHold is an embeddable NoSQL store for Go types built on BoltDB
Stars: ✭ 467 (+705.17%)
Mutual labels:  boltdb
Twine
String manipulation, leveled up!
Stars: ✭ 496 (+755.17%)
Mutual labels:  strings
Redix
a persistent real-time key-value store, with the same redis protocol with powerful features
Stars: ✭ 907 (+1463.79%)
Mutual labels:  boltdb
Stringr
A fresh approach to string manipulation in R
Stars: ✭ 397 (+584.48%)
Mutual labels:  strings
Telepyth
Telegram notification with IPython magics.
Stars: ✭ 54 (-6.9%)
Mutual labels:  boltdb
Glue
Glue strings to data in R. Small, fast, dependency free interpreted string literals.
Stars: ✭ 512 (+782.76%)
Mutual labels:  strings
Coding Ninjas Java Solutions
This will have solutions to all the problems that are included in Coding Ninja's 2020 Java Course. Star the repo if you like it.
Stars: ✭ 32 (-44.83%)
Mutual labels:  strings
Stringsifter
A machine learning tool that ranks strings based on their relevance for malware analysis.
Stars: ✭ 469 (+708.62%)
Mutual labels:  strings
Sweep
Fast and powerful Swift string scanning made simple
Stars: ✭ 485 (+736.21%)
Mutual labels:  strings
Frosty
serialize native Nim types to strings, streams, or sockets β›„
Stars: ✭ 25 (-56.9%)
Mutual labels:  strings
Philology
An easy way to dynamically replace Strings of your Android App or provide new languages Over-the-air without needed to publish a new release on Google Play.
Stars: ✭ 458 (+689.66%)
Mutual labels:  strings
Pgo
Go library for PHP community with convenient functions
Stars: ✭ 51 (-12.07%)
Mutual labels:  strings
Cracking The Coding Interview
πŸ“š C++ and Python solutions with automated tests for Cracking the Coding Interview 6th Edition.
Stars: ✭ 396 (+582.76%)
Mutual labels:  strings
Chr
πŸ”€ Lightweight R package for manipulating [string] characters
Stars: ✭ 18 (-68.97%)
Mutual labels:  strings
Cello
A string library
Stars: ✭ 54 (-6.9%)
Mutual labels:  strings
Golang Combinations
Golang library which provide an algorithm to generate all combinations out of a given string array.
Stars: ✭ 51 (-12.07%)
Mutual labels:  strings
Mightystring
Making Ruby Strings Powerful
Stars: ✭ 28 (-51.72%)
Mutual labels:  strings

Simple Bolt Build Status GoDoc Go Report Card

Simple way to use the Bolt database. Similar design to simpleredis.

Online API Documentation

godoc.org

Features and limitations

  • Supports simple use of lists, hashmaps, sets and key/values.
  • Deals mainly with strings.
  • Requires Go 1.9 or later.
  • Note that HashMap is implemented only for API-compatibility with simpleredis, and does not have the same performance profile as the HashMap implementation in simpleredis, simplemaria (MariaDB/MySQL) or simplehstore (PostgreSQL w/ HSTORE).

Example usage

package main

import (
	"log"

	"github.com/xyproto/simplebolt"
)

func main() {
	// New bolt database struct
	db, err := simplebolt.New("bolt.db")
	if err != nil {
		log.Fatalf("Could not create database! %s", err)
	}
	defer db.Close()

	// Create a list named "greetings"
	list, err := simplebolt.NewList(db, "greetings")
	if err != nil {
		log.Fatalf("Could not create a list! %s", err)
	}

	// Add "hello" to the list
	if err := list.Add("hello"); err != nil {
		log.Fatalf("Could not add an item to the list! %s", err)
	}

	// Get the last item of the list
	if item, err := list.Last(); err != nil {
		log.Fatalf("Could not fetch the last item from the list! %s", err)
	} else {
		log.Println("The value of the stored item is:", item)
	}

	// Remove the list
	if err := list.Remove(); err != nil {
		log.Fatalf("Could not remove the list! %s", err)
	}
}

Contributors

  • Luis Villegas, for the linked list functionality.

Version, license and author

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].