{"id":16189387,"url":"https://github.com/caolan/chicken-leveldb","last_synced_at":"2026-01-20T21:33:48.639Z","repository":{"id":16216414,"uuid":"18963535","full_name":"caolan/chicken-leveldb","owner":"caolan","description":"CHICKEN Scheme bindings to LevelDB","archived":false,"fork":false,"pushed_at":"2016-07-05T07:39:32.000Z","size":52,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T14:15:42.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scheme","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caolan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-20T11:57:54.000Z","updated_at":"2025-02-16T12:49:44.000Z","dependencies_parsed_at":"2022-09-10T18:20:59.769Z","dependency_job_id":null,"html_url":"https://github.com/caolan/chicken-leveldb","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/caolan/chicken-leveldb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-leveldb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-leveldb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-leveldb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-leveldb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caolan","download_url":"https://codeload.github.com/caolan/chicken-leveldb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-leveldb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28614618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-10T07:35:17.199Z","updated_at":"2026-01-20T21:33:48.620Z","avatar_url":"https://github.com/caolan.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leveldb\n\nBindings to [LevelDB][1], a fast and lightweight key/value database library by\nGoogle. Provides an implementation of the [level][2] egg. Include both eggs to\nprovide the API used in these examples.\n\n## Examples\n\n### Basic operation\n\n```scheme\n(use level leveldb)\n\n(define db (open-db \"./example\"))\n\n(db-put db \"hello\" \"world\")\n(display (db-get db \"hello\")) ;; =\u003e world\n(db-delete db \"hello\")\n\n(close-db db)\n```\n\n### Batches and ranges\n\n```scheme\n(use level leveldb lazy-seq)\n\n(define operations\n  '((put \"name:123\" \"jane\")\n    (put \"name:456\" \"joe\")))\n\n(define (print-names pairs)\n  (lazy-each print pairs))\n\n(call-with-db \"./example\"\n  (lambda (db)\n    (db-batch db operations)\n    (print-names (db-stream db start: \"name:\" end: \"name::\"))))\n\n;; prints\n;; =\u003e (name:123 jane)\n;; =\u003e (name:456 joe)\n```\n\n## API\n\n### Open and close\n\n```scheme\n(open-db loc #!key (create #t) (exists #t))\n```\n\nOpens database with path `loc` and returns a database object. By default,\nthis method will create the database if it does not exist at `loc` and will\nnot error if the database already exists. This behaviour can be modified\nusing the keyword arguments. Setting `exists` to `#f` will mean an\nexception occurs if the database already exists. Setting `create` to `#f`\nwill mean an exception occurs if the database does not exist.\n\n```scheme\n(close-db db)\n```\n\nCloses database `db`.\n\n```scheme\n(call-with-db loc proc #!key (create #t) (exists #t))\n```\n\nOpens database at `loc` and calls (proc db). The database will be closed when\nproc returns or raises an exception.\n\n[1]: https://code.google.com/p/leveldb/\n[2]: https://github.com/caolan/chicken-level\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaolan%2Fchicken-leveldb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaolan%2Fchicken-leveldb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaolan%2Fchicken-leveldb/lists"}