{"id":22199289,"url":"https://github.com/pmarkert/cdbsharp","last_synced_at":"2026-01-05T15:32:14.210Z","repository":{"id":145079869,"uuid":"4375301","full_name":"pmarkert/CDBSharp","owner":"pmarkert","description":"Library for reading/writing CDB (Constant Database) files","archived":false,"fork":false,"pushed_at":"2012-05-19T03:12:49.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T02:42:48.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/pmarkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2012-05-19T02:56:06.000Z","updated_at":"2013-11-01T16:10:55.000Z","dependencies_parsed_at":"2023-03-24T08:18:24.890Z","dependency_job_id":null,"html_url":"https://github.com/pmarkert/CDBSharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkert%2FCDBSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkert%2FCDBSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkert%2FCDBSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkert%2FCDBSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmarkert","download_url":"https://codeload.github.com/pmarkert/CDBSharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372216,"owners_count":20604488,"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-12-02T15:13:52.658Z","updated_at":"2026-01-05T15:32:14.165Z","avatar_url":"https://github.com/pmarkert.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"CDBSharp\n========\n\nLibrary for reading/writing CDB (Constant Database) files\n\n```c#\nclass Program {\n  static void Main(string[] args) {\n    using (var writer = new StringCDBWriter(\"verses.cdb\")) {\n      foreach (var verse in parseVerses(new StreamReader(new GZipStream(new WebClient().OpenRead(\"https://s3.amazonaws.com/mongol.ephisys.com/Data/kjv.rawtxt.gz\"), CompressionMode.Decompress)))) {\n        writer.AddEntry(verse.Key, verse.Value);\n      }\n    }\n\n    using (var cdb = new StringCDBReader(\"verses.cdb\")) {\n      Console.WriteLine(cdb.Find(\"John3:16\").Single());\n    }\n  }\n\n  private static IEnumerable\u003cKeyValuePair\u003cstring,string\u003e\u003e parseVerses(StreamReader sr) {\n    // Iterator to return verses as long as we keep finding more.  Loads about 31,000 verses.\n    while (!sr.EndOfStream) {\n      var match = Regex.Match(sr.ReadLine(), @\"(?\u003cReference\u003e\\d*[A-Za-z]+\\d+:\\d+)\\s(?\u003cVerse\u003e.+$)\");\n      if (match.Success) {\n        yield return new KeyValuePair\u003cstring, string\u003e(match.Groups[\"Reference\"].Value, match.Groups[\"Verse\"].Value);\n      }\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmarkert%2Fcdbsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmarkert%2Fcdbsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmarkert%2Fcdbsharp/lists"}