{"id":13508770,"url":"https://github.com/s-m-i-t-a/database_url","last_synced_at":"2025-10-08T03:41:47.759Z","repository":{"id":32113949,"uuid":"35686353","full_name":"s-m-i-t-a/database_url","owner":"s-m-i-t-a","description":"Database URL parser for Elixir","archived":false,"fork":false,"pushed_at":"2024-01-30T11:59:54.000Z","size":17,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-22T01:55:15.262Z","etag":null,"topics":["database","elixir","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/s-m-i-t-a.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":"2015-05-15T17:09:11.000Z","updated_at":"2024-07-15T10:02:14.000Z","dependencies_parsed_at":"2024-05-01T17:20:58.825Z","dependency_job_id":"805fc6ed-60de-48b7-9e16-8351ed7457bc","html_url":"https://github.com/s-m-i-t-a/database_url","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"f10b9403bda4be4a0caea1007591e7a28dd11947"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s-m-i-t-a/database_url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-m-i-t-a%2Fdatabase_url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-m-i-t-a%2Fdatabase_url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-m-i-t-a%2Fdatabase_url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-m-i-t-a%2Fdatabase_url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-m-i-t-a","download_url":"https://codeload.github.com/s-m-i-t-a/database_url/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-m-i-t-a%2Fdatabase_url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886405,"owners_count":26062973,"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-08T02:00:06.501Z","response_time":56,"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","elixir","hacktoberfest"],"created_at":"2024-08-01T02:00:58.161Z","updated_at":"2025-10-08T03:41:47.729Z","avatar_url":"https://github.com/s-m-i-t-a.png","language":"Elixir","funding_links":[],"categories":["ORM and Datamapping"],"sub_categories":[],"readme":"# DatabaseUrl\n\n[![Build Status](https://semaphoreci.com/api/v1/projects/91fb642e-351c-40c4-a0d4-7c45e4e0f7bf/431905/shields_badge.svg)](https://semaphoreci.com/smita/database_url)\n[![Coverage Status](https://coveralls.io/repos/s-m-i-t-a/database_url/badge.svg?branch=master)](https://coveralls.io/r/s-m-i-t-a/database_url?branch=master)\n\nParse database URL and renturn keyword list for use with Ecto.\n\n\n## Installation\n\n```elixir\ndefp deps do\n  [ {:database_url, \"~\u003e 0.1\"}, ]\nend\n```\n\n\n## Usage\n\n### API\n\n```elixir\n    iex\u003e url = \"postgres://localhost/database?size=30\u0026ssl=true\u0026encoding=utf-8\"\n    iex\u003e options = DatabaseUrl.parse(url)\n    [host: \"localhost\", database: \"database\", adapter: Ecto.Adapters.Postgres,\n    size: 30, ssl: true, encoding: \"utf-8\"]\n```\n\n\n### Use with Phoenix + Ecto\n\nUse in project config and assume `DATABASE_URL` environment variable is set.\n\n```elixir\nCode.require_file(\"../deps/database_url/lib/database_url.ex\", __DIR__)\n\n# Configure your database\nconfig :myapp, MyApp.Repo, DatabaseUrl.parse(System.get_env(\"DATABASE_URL\"))\n```\n\nOn first line in `config.exs` must be added `Code.require_file(\"../deps/database_url/lib/database_url.ex\", __DIR__)`,\notherwise isn't module loaded.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-m-i-t-a%2Fdatabase_url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-m-i-t-a%2Fdatabase_url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-m-i-t-a%2Fdatabase_url/lists"}