{"id":31933033,"url":"https://github.com/elonsoft/pg_case","last_synced_at":"2025-10-14T05:51:21.817Z","repository":{"id":57531297,"uuid":"322601856","full_name":"Elonsoft/pg_case","owner":"Elonsoft","description":"Elixir helper macros to work with PostgreSQL `case` expression","archived":false,"fork":false,"pushed_at":"2020-12-18T13:30:21.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T16:02:38.945Z","etag":null,"topics":["ecto","elixir","postgresql"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/pg_case/0.1.0","language":"Elixir","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/Elonsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-18T13:23:57.000Z","updated_at":"2022-06-17T08:35:59.000Z","dependencies_parsed_at":"2022-09-05T09:51:15.422Z","dependency_job_id":null,"html_url":"https://github.com/Elonsoft/pg_case","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Elonsoft/pg_case","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elonsoft%2Fpg_case","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elonsoft%2Fpg_case/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elonsoft%2Fpg_case/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elonsoft%2Fpg_case/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elonsoft","download_url":"https://codeload.github.com/Elonsoft/pg_case/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elonsoft%2Fpg_case/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018011,"owners_count":26086237,"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-14T02:00:06.444Z","response_time":60,"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":["ecto","elixir","postgresql"],"created_at":"2025-10-14T05:51:18.354Z","updated_at":"2025-10-14T05:51:21.812Z","avatar_url":"https://github.com/Elonsoft.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PgCase\n\n`ecto` and `postgrex` Elixir extension to work with PostgreSQL `case`\nexpression.\n\n## Example\n\n  ```elixir\n      import Ecto.Query, only: [from: 2]\n      import PgCase, only: [pg_case: 1]\n\n      def query do\n        from e in Entity,\n          select: %{\n            value: pg_case do\n              e.x \u003c 0 -\u003e \"negative\"\n              e.x \u003e 0 -\u003e \"positive\"\n            else\n              \"zero\"\n            end\n          }\n      end\n  ```\n\n## Installation\n\nDocs are [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `pg_case` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:pg_case, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felonsoft%2Fpg_case","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felonsoft%2Fpg_case","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felonsoft%2Fpg_case/lists"}