{"id":15394298,"url":"https://github.com/xyproto/simplebolt","last_synced_at":"2025-04-15T06:12:09.679Z","repository":{"id":32433273,"uuid":"36011239","full_name":"xyproto/simplebolt","owner":"xyproto","description":":nut_and_bolt: Simple way to use the Bolt database","archived":false,"fork":false,"pushed_at":"2023-06-30T12:32:24.000Z","size":3787,"stargazers_count":67,"open_issues_count":0,"forks_count":8,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-15T06:11:59.205Z","etag":null,"topics":["bolt","bolt-database","boltdb","go","strings"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-21T12:23:40.000Z","updated_at":"2025-02-19T04:28:35.000Z","dependencies_parsed_at":"2024-06-18T17:05:58.695Z","dependency_job_id":null,"html_url":"https://github.com/xyproto/simplebolt","commit_stats":{"total_commits":192,"total_committers":5,"mean_commits":38.4,"dds":"0.20833333333333337","last_synced_commit":"0818724770623dd447ec5034c403b3a09ae3d8ae"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsimplebolt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsimplebolt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsimplebolt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsimplebolt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/simplebolt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016637,"owners_count":21198833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bolt","bolt-database","boltdb","go","strings"],"created_at":"2024-10-01T15:23:06.025Z","updated_at":"2025-04-15T06:12:09.661Z","avatar_url":"https://github.com/xyproto.png","language":"Go","readme":"# Simple Bolt ![Build](https://github.com/xyproto/simplebolt/workflows/Build/badge.svg) [![GoDoc](https://godoc.org/github.com/xyproto/simplebolt?status.svg)](http://godoc.org/github.com/xyproto/simplebolt) [![Go Report Card](https://goreportcard.com/badge/github.com/xyproto/simplebolt)](https://goreportcard.com/report/github.com/xyproto/simplebolt) [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/xyproto/simplebolt/main/LICENSE)\n\nSimple way to use the [Bolt](https://github.com/coreos/bbolt) database. Similar design to [simpleredis](https://github.com/xyproto/simpleredis).\n\n## Features and limitations\n\n* Supports simple use of lists, hashmaps, sets and key/values.\n* Deals mainly with strings.\n* Requires Go 1.17 or later.\n* Note that `HashMap` is implemented only for API-compatibility with [simpleredis](https://github.com/xyproto/simpleredis), and does not have the same performance profile as the `HashMap` implementation in [simpleredis](https://github.com/xyproto/simpleredis), [simplemaria](https://github.com/xyproto/simplemaria) (MariaDB/MySQL) or [simplehstore](https://github.com/xyproto/simplehstore) (PostgreSQL w/ HSTORE).\n\n## Example usage\n\n~~~go\npackage main\n\nimport (\n    \"log\"\n\n    \"github.com/xyproto/simplebolt\"\n)\n\nfunc main() {\n    // New bolt database struct\n    db, err := simplebolt.New(\"bolt.db\")\n    if err != nil {\n        log.Fatalf(\"Could not create database! %s\", err)\n    }\n    defer db.Close()\n\n    // Create a list named \"greetings\"\n    list, err := simplebolt.NewList(db, \"greetings\")\n    if err != nil {\n        log.Fatalf(\"Could not create a list! %s\", err)\n    }\n\n    // Add \"hello\" to the list\n    if err := list.Add(\"hello\"); err != nil {\n        log.Fatalf(\"Could not add an item to the list! %s\", err)\n    }\n\n    // Get the last item of the list\n    if item, err := list.Last(); err != nil {\n        log.Fatalf(\"Could not fetch the last item from the list! %s\", err)\n    } else {\n        log.Println(\"The value of the stored item is:\", item)\n    }\n\n    // Remove the list\n    if err := list.Remove(); err != nil {\n        log.Fatalf(\"Could not remove the list! %s\", err)\n    }\n}\n~~~\n\n## Contributors\n\n* Luis Villegas, for the linked list functionality.\n\n## Version, license and author\n\n* License: BSD-3\n* Version: 5.2.1\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fsimplebolt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Fsimplebolt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fsimplebolt/lists"}