{"id":32161288,"url":"https://github.com/cescobaz/ejdb2haskell","last_synced_at":"2026-05-02T23:32:53.574Z","repository":{"id":62435888,"uuid":"248840227","full_name":"cescobaz/ejdb2haskell","owner":"cescobaz","description":"EJDB2 Haskell binding","archived":false,"fork":false,"pushed_at":"2022-08-16T15:15:36.000Z","size":166,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T05:28:40.195Z","etag":null,"topics":["database","ejdb","ejdb2","embedded","haskell","json","nosql"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/cescobaz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-03-20T19:53:04.000Z","updated_at":"2022-08-16T15:06:35.000Z","dependencies_parsed_at":"2022-11-01T21:16:43.301Z","dependency_job_id":null,"html_url":"https://github.com/cescobaz/ejdb2haskell","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/cescobaz/ejdb2haskell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescobaz%2Fejdb2haskell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescobaz%2Fejdb2haskell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescobaz%2Fejdb2haskell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescobaz%2Fejdb2haskell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cescobaz","download_url":"https://codeload.github.com/cescobaz/ejdb2haskell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescobaz%2Fejdb2haskell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280272338,"owners_count":26302260,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["database","ejdb","ejdb2","embedded","haskell","json","nosql"],"created_at":"2025-10-21T13:52:54.216Z","updated_at":"2025-10-21T13:52:55.341Z","avatar_url":"https://github.com/cescobaz.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ejdb2haskell\n\nejdb2haskell is a Haskell binding to [ejdb2](https://github.com/Softmotions/ejdb), an embeddable JSON Database engine C library.\n\n## Requirements\n\n**libejdb2**\n\nInstall libejdb2 by installing [ejdb2](https://github.com/Softmotions/ejdb#use-cases)\n\nIn Arch Linux I do:\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr\nsudo make install\n```\n\n## Build\n\n```bash\ncabal build\n```\n\n## Usage\n\nEvery API are tested, so have a look to test folder.\n\n```haskell\nputNewTest :: IO Database -\u003e TestTree\nputNewTest databaseIO = testCase \"putNewTest\" $ do\n    database \u003c- databaseIO\n    id \u003c- putNew database \"plants\" plant\n    storedPlant \u003c- getById database \"plants\" id\n    storedPlant @?= Just plant\n  where\n    plant = Plant { name        = Just \"pinus\"\n                  , isTree      = Just True\n                  , year        = Just 1753\n                  , description = Just \"wow 🌲\"\n                  }\n\ngetListTest' :: IO Database -\u003e TestTree\ngetListTest' databaseIO = testCase \"getList'\" $ do\n    database \u003c- databaseIO\n    query \u003c- fromString \"@plants/[isTree=:tree] | asc /name\" $ setBool False \"tree\"\n    plants \u003c- getList' database query\n    plants @?= [ Just Plant { id          = Just 2\n                            , name        = Just \"gentiana brentae\"\n                            , isTree      = Just False\n                            , year        = Just 2008\n                            , description = Just \"violet 🌺flower\"\n                            , ratio       = Nothing\n                            }\n               , Just Plant { id          = Just 3\n                            , name        = Just \"leontopodium\"\n                            , isTree      = Just False\n                            , year        = Just 1817\n                            , description = Just \"tipical alpine flower\"\n                            , ratio       = Nothing\n                            }\n               , Just Plant { id          = Just 4\n                            , name        = Just \"leucanthemum vulgare\"\n                            , isTree      = Just False\n                            , year        = Just 1778\n                            , description =\n                                  Just \"very common flower in Italy 🍕\"\n                            , ratio       = Just 1.618\n                            }\n               ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcescobaz%2Fejdb2haskell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcescobaz%2Fejdb2haskell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcescobaz%2Fejdb2haskell/lists"}