{"id":18820864,"url":"https://github.com/hashrocket/ecto_pg_extras","last_synced_at":"2025-04-14T00:17:16.988Z","repository":{"id":57493520,"uuid":"86389897","full_name":"hashrocket/ecto_pg_extras","owner":"hashrocket","description":"A collection of custom functions for PostgreSQL features in Ecto","archived":false,"fork":false,"pushed_at":"2017-04-02T17:33:21.000Z","size":20,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-27T14:21:15.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/ecto_pg_extras","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/hashrocket.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":"2017-03-27T22:25:23.000Z","updated_at":"2024-12-19T10:36:42.000Z","dependencies_parsed_at":"2022-08-28T15:13:07.815Z","dependency_job_id":null,"html_url":"https://github.com/hashrocket/ecto_pg_extras","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Fecto_pg_extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Fecto_pg_extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Fecto_pg_extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Fecto_pg_extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashrocket","download_url":"https://codeload.github.com/hashrocket/ecto_pg_extras/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487687,"owners_count":21112191,"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-11-08T00:31:11.157Z","updated_at":"2025-04-14T00:17:16.957Z","avatar_url":"https://github.com/hashrocket.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecto_pg_extras\n\n\u003e A collection of custom functions for PostgreSQL features in Ecto\n\n```elixir\ndef deps do\n  [{:ecto_pg_extras, \"~\u003e 0.1.0\"}]\nend\n```\n\n## Usage\n\nImport `ecto_pg_extras` in any module where you want access to the custom\nfunctions for use with Ecto queries.\n\n```elixir\nimport EctoPgExtras\n```\n\nThen use any of the functions as part of a query as you would anything else\ndefined in `Ecto.Query.API`. For example, here is the `coalesce` function in\naction:\n\n```elixir\nfrom(posts in Posts,\nwhere: posts.id == 1,\nselect: {\n  posts.title,\n  coalesce(posts.description, posts.short_description, \"N/A\")\n})\n```\n\n## About\n\n[![Hashrocket logo](https://hashrocket.com/hashrocket_logo.svg)](https://hashrocket.com)\n\nEctoPgExtras is supported by the team at [Hashrocket](https://hashrocket.com), a multidisciplinary design \u0026 development consultancy. If you'd like to [work with us](https://hashrocket.com/contact-us/hire-us) or [join our team](https://hashrocket.com/contact-us/jobs), don't hesitate to get in touch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrocket%2Fecto_pg_extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashrocket%2Fecto_pg_extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrocket%2Fecto_pg_extras/lists"}