xyproto / Simplebolt
Licence: mit
π© Simple way to use the Bolt database
Stars: β 58
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
Redix
a persistent real-time key-value store, with the same redis protocol with powerful features
Stars: β 907 (+1463.79%)
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
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
Simple Bolt
Simple way to use the Bolt database. Similar design to simpleredis.
Online API Documentation
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 theHashMap
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
- License: MIT
- Version: 5.1.0
- Author: Alexander F. RΓΈdseth <[email protected]>
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].