{"id":13430836,"url":"https://github.com/nanobox-io/golang-scribble","last_synced_at":"2025-12-30T14:29:44.018Z","repository":{"id":57480692,"uuid":"138226933","full_name":"nanobox-io/golang-scribble","owner":"nanobox-io","description":"A tiny Golang JSON database","archived":false,"fork":true,"pushed_at":"2019-03-09T22:57:36.000Z","size":53,"stargazers_count":174,"open_issues_count":1,"forks_count":29,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-25T04:09:54.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sdomino/scribble","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanobox-io.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}},"created_at":"2018-06-21T22:13:33.000Z","updated_at":"2024-09-25T08:40:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nanobox-io/golang-scribble","commit_stats":null,"previous_names":["nanobox-io/scribble"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fgolang-scribble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fgolang-scribble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fgolang-scribble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fgolang-scribble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanobox-io","download_url":"https://codeload.github.com/nanobox-io/golang-scribble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221656435,"owners_count":16858769,"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":[],"created_at":"2024-07-31T02:00:58.266Z","updated_at":"2025-12-15T15:26:00.202Z","avatar_url":"https://github.com/nanobox-io.png","language":"Go","funding_links":[],"categories":["Go","Database","\u003cspan id=\"数据库-database\"\u003e数据库 Database\u003c/span\u003e","数据库","数据库  `go语言实现的数据库`","Uncategorized"],"sub_categories":["Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","标准 CLI"],"readme":"Scribble [![GoDoc](https://godoc.org/github.com/boltdb/bolt?status.svg)](http://godoc.org/github.com/nanobox-io/golang-scribble) [![Go Report Card](https://goreportcard.com/badge/github.com/nanobox-io/golang-scribble)](https://goreportcard.com/report/github.com/nanobox-io/golang-scribble)\n--------\n\nA tiny JSON database in Golang\n\n### Installation\n\nInstall using `go get github.com/nanobox-io/golang-scribble`.\n\n### Usage\n\n```go\n// a new scribble driver, providing the directory where it will be writing to,\n// and a qualified logger if desired\ndb, err := scribble.New(dir, nil)\nif err != nil {\n  fmt.Println(\"Error\", err)\n}\n\n// Write a fish to the database\nfish := Fish{}\nif err := db.Write(\"fish\", \"onefish\", fish); err != nil {\n  fmt.Println(\"Error\", err)\n}\n\n// Read a fish from the database (passing fish by reference)\nonefish := Fish{}\nif err := db.Read(\"fish\", \"onefish\", \u0026onefish); err != nil {\n  fmt.Println(\"Error\", err)\n}\n\n// Read all fish from the database, unmarshaling the response.\nrecords, err := db.ReadAll(\"fish\")\nif err != nil {\n  fmt.Println(\"Error\", err)\n}\n\nfishies := []Fish{}\nfor _, f := range records {\n  fishFound := Fish{}\n  if err := json.Unmarshal([]byte(f), \u0026fishFound); err != nil {\n    fmt.Println(\"Error\", err)\n  }\n  fishies = append(fishies, fishFound)\n}\n\n// Delete a fish from the database\nif err := db.Delete(\"fish\", \"onefish\"); err != nil {\n  fmt.Println(\"Error\", err)\n}\n\n// Delete all fish from the database\nif err := db.Delete(\"fish\", \"\"); err != nil {\n  fmt.Println(\"Error\", err)\n}\n```\n\n## Documentation\n- Complete documentation is available on [godoc](http://godoc.org/github.com/nanobox-io/golang-scribble).\n- Coverage Report is available on [gocover](https://gocover.io/github.com/nanobox-io/golang-scribble)\n\n## Todo/Doing\n- Support for windows\n- Better support for concurrency\n- Better support for sub collections\n- More methods to allow different types of reads/writes\n- More tests (you can never have enough!)\n\n## Contributing\nContributions to scribble are welcome and encouraged. Scribble is a [Nanobox](https://nanobox.io) project and contributions should follow the [Nanobox Contribution Process \u0026 Guidelines](https://docs.nanobox.io/contributing/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanobox-io%2Fgolang-scribble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanobox-io%2Fgolang-scribble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanobox-io%2Fgolang-scribble/lists"}