{"id":27456535,"url":"https://github.com/ckampfe/kvqlite","last_synced_at":"2025-04-15T18:28:46.042Z","repository":{"id":276679871,"uuid":"929952424","full_name":"ckampfe/kvqlite","owner":"ckampfe","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-09T19:38:57.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T20:27:12.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/ckampfe.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":"2025-02-09T19:18:52.000Z","updated_at":"2025-02-09T19:39:01.000Z","dependencies_parsed_at":"2025-02-09T20:27:53.981Z","dependency_job_id":"774f2506-703b-4f67-bd98-100651d01476","html_url":"https://github.com/ckampfe/kvqlite","commit_stats":null,"previous_names":["ckampfe/kvqlite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fkvqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fkvqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fkvqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fkvqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckampfe","download_url":"https://codeload.github.com/ckampfe/kvqlite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249128455,"owners_count":21217145,"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":"2025-04-15T18:28:45.595Z","updated_at":"2025-04-15T18:28:46.029Z","avatar_url":"https://github.com/ckampfe.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kvqlite\n\n[![Rust](https://github.com/ckampfe/kvqlite/actions/workflows/rust.yml/badge.svg)](https://github.com/ckampfe/kvqlite/actions/workflows/rust.yml)\n\nkey/value db backed by sqlite, with two storage strategies: update-in-place, and append.\n\n## update in place\n\n- writes update values in place\n- deletes remove the entire key/value from the database\n- reads read the given key and value\n\n```rust\nlet db: Db\u003cUpdateInPlace\u003e = Db::builder().in_memory().finish().await.unwrap();\n\ndb.write(\"hello\", \"world\").await.unwrap();\nlet value: String = db.read(\"hello\").await.unwrap().unwrap();\n\nassert_eq!(value, \"world\");\n```\n\n## append\n\n- writes append a new value that references the given key\n- deletes remove the key and all associated values\n- reads read the given key and the latest value associated with the given key\n\n```rust\nlet db: Db\u003cAppend\u003e = Db::builder().in_memory().finish().await.unwrap();\n\ndb.write(\"hello\", \"world\").await.unwrap();\nlet value: String = db.read(\"hello\").await.unwrap().unwrap();\nassert_eq!(value, \"world\");\n\ntokio::time::sleep(std::time::Duration::from_millis(1)).await;\n\ndb.write(\"hello\", \"joe\").await.unwrap();\nlet value: String = db.read(\"hello\").await.unwrap().unwrap();\nassert_eq!(value, \"joe\");\n\nlet count = db.entries_count().await.unwrap();\nassert_eq!(count, 2);\n\nlet keys_count = db.keys_count().await.unwrap();\nassert_eq!(keys_count, 1);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fkvqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckampfe%2Fkvqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fkvqlite/lists"}