{"id":50613,"library":"cockroachdb-pebble","title":"Pebble","description":"Pebble is a key-value store inspired by LevelDB and RocksDB, designed for use in CockroachDB.","status":"active","version":"1.1.5","language":"go","source_language":null,"source_url":"https://github.com/cockroachdb/pebble","tags":["key-value","storage","database","embedded"],"install":[{"cmd":"go get github.com/cockroachdb/pebble","lang":"bash","label":"Install github.com/cockroachdb/pebble"}],"dependencies":[],"imports":[{"symbol":"pebble","correct":"github.com/cockroachdb/pebble"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/cockroachdb/pebble\"\n)\n\nfunc main() {\n\tdb, err := pebble.Open(\"/tmp/pebble\", &pebble.Options{})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer db.Close()\n\tkey := []byte(\"hello\")\n\tvalue := []byte(\"world\")\n\tif err := db.Set(key, value, pebble.Sync); err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(\"Key-value pair stored successfully\")\n}","lang":"go","description":"Opens a Pebble database, stores a key-value pair, and prints a success message."},"warnings":[{"fix":"Use for embedded storage needs; consider higher-level abstractions for complex queries.","message":"Pebble is not a full SQL database; it is a low-level key-value store.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'cockroachdb':18 'databas':23 'design':14 'embed':24 'inspir':9 'key':6,20 'key-valu':5,19 'leveldb':11 'pebbl':1,2 'rocksdb':13 'storag':22 'store':8 'use':16 'valu':7,21","created_at":"2026-06-15T05:01:04.552414+00:00","updated_at":"2026-06-15T05:01:04.552414+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/cockroachdb/pebble","github":"https://github.com/cockroachdb/pebble","docs":"https://pkg.go.dev/github.com/cockroachdb/pebble#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}