{"id":13411919,"url":"https://github.com/jmhodges/levigo","last_synced_at":"2025-05-16T06:07:51.101Z","repository":{"id":2243306,"uuid":"3197798","full_name":"jmhodges/levigo","owner":"jmhodges","description":"levigo is a Go wrapper for LevelDB","archived":false,"fork":false,"pushed_at":"2022-03-07T12:05:55.000Z","size":176,"stargazers_count":414,"open_issues_count":6,"forks_count":82,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-10-25T04:09:53.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmhodges.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":"2012-01-17T08:17:54.000Z","updated_at":"2024-06-20T01:42:34.000Z","dependencies_parsed_at":"2022-09-17T05:02:25.188Z","dependency_job_id":null,"html_url":"https://github.com/jmhodges/levigo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhodges%2Flevigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhodges%2Flevigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhodges%2Flevigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhodges%2Flevigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmhodges","download_url":"https://codeload.github.com/jmhodges/levigo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478193,"owners_count":22077676,"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-30T20:01:18.522Z","updated_at":"2025-05-16T06:07:46.087Z","avatar_url":"https://github.com/jmhodges.png","language":"Go","funding_links":[],"categories":["Database","数据库","数据库  `go语言实现的数据库`","Data Integration Frameworks","Generators","\u003cspan id=\"数据库-database\"\u003e数据库 Database\u003c/span\u003e","Go","Uncategorized"],"sub_categories":["Advanced Console UIs","Databases Implemented in Go","Go中实现的数据库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","标准 CLI"],"readme":"[![GoDoc](https://godoc.org/github.com/jmhodges/levigo?status.svg)](https://godoc.org/github.com/jmhodges/levigo)\n\n# levigo\n\nlevigo is a Go wrapper for LevelDB.\n\nThe API has been godoc'ed and [is available on the\nweb](http://godoc.org/github.com/jmhodges/levigo).\n\nQuestions answered at `golang-nuts@googlegroups.com`.\n\n## Building\n\nYou'll need the shared library build of\n[LevelDB](http://code.google.com/p/leveldb/) installed on your machine. The\ncurrent LevelDB will build it by default.\n\nThe minimum version of LevelDB required is currently 1.7. If you require the\nuse of an older version of LevelDB, see the [fork of levigo for LevelDB\n1.4](https://github.com/jmhodges/levigo_leveldb_1.4). Prefer putting in the\nwork to be up to date as LevelDB moves very quickly.\n\nNow, if you build LevelDB and put the shared library and headers in one of the\nstandard places for your OS, you'll be able to simply run:\n\n    go get github.com/jmhodges/levigo\n\nBut, suppose you put the shared LevelDB library somewhere weird like\n/path/to/lib and the headers were installed in /path/to/include. To install\nlevigo remotely, you'll run:\n\n    CGO_CFLAGS=\"-I/path/to/leveldb/include\" CGO_LDFLAGS=\"-L/path/to/leveldb/lib\" go get github.com/jmhodges/levigo\n\nand there you go.\n\nIn order to build with snappy, you'll have to explicitly add \"-lsnappy\" to the\n`CGO_LDFLAGS`. Supposing that both snappy and leveldb are in weird places,\nyou'll run something like:\n\n    CGO_CFLAGS=\"-I/path/to/leveldb/include -I/path/to/snappy/include\"\n    CGO_LDFLAGS=\"-L/path/to/leveldb/lib -L/path/to/snappy/lib -lsnappy\" go get github.com/jmhodges/levigo\n\n(and make sure the -lsnappy is after the snappy library path!).\n\nOf course, these same rules apply when doing `go build`, as well.\n\n## Caveats\n\nComparators and WriteBatch iterators must be written in C in your own\nlibrary. This seems like a pain in the ass, but remember that you'll have the\nLevelDB C API available to your in your client package when you import levigo.\n\nAn example of writing your own Comparator can be found in\n\u003chttps://github.com/jmhodges/levigo/blob/master/examples\u003e.\n\n## Status\n\nBuild: [![Build Status](https://travis-ci.org/jmhodges/levigo.svg)](https://travis-ci.org/jmhodges/levigo)\n\nDocumentation: [![GoDoc](https://godoc.org/github.com/jmhodges/levigo?status.svg)](https://godoc.org/github.com/jmhodges/levigo)\n\nLint: [Go Lint](http://go-lint.appspot.com/github.com/jmhodges/levigo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmhodges%2Flevigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmhodges%2Flevigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmhodges%2Flevigo/lists"}