{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1964","repository_url":"https://api.github.com/repos/elixir-ecto/ecto","labels_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1964/labels{/name}","comments_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1964/comments","events_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1964/events","html_url":"https://github.com/elixir-ecto/ecto/issues/1964","id":210119092,"node_id":"MDU6SXNzdWUyMTAxMTkwOTI=","number":1964,"title":"Dynamic Repo configuration","user":{"login":"talentdeficit","id":4431,"node_id":"MDQ6VXNlcjQ0MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/4431?v=4","gravatar_id":"","url":"https://api.github.com/users/talentdeficit","html_url":"https://github.com/talentdeficit","followers_url":"https://api.github.com/users/talentdeficit/followers","following_url":"https://api.github.com/users/talentdeficit/following{/other_user}","gists_url":"https://api.github.com/users/talentdeficit/gists{/gist_id}","starred_url":"https://api.github.com/users/talentdeficit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talentdeficit/subscriptions","organizations_url":"https://api.github.com/users/talentdeficit/orgs","repos_url":"https://api.github.com/users/talentdeficit/repos","events_url":"https://api.github.com/users/talentdeficit/events{/privacy}","received_events_url":"https://api.github.com/users/talentdeficit/received_events","type":"User","site_admin":false},"labels":[{"id":169894591,"node_id":"MDU6TGFiZWwxNjk4OTQ1OTE=","url":"https://api.github.com/repos/elixir-ecto/ecto/labels/Level:Advanced","name":"Level:Advanced","color":"f7c6c7","default":false},{"id":48022447,"node_id":"MDU6TGFiZWw0ODAyMjQ0Nw==","url":"https://api.github.com/repos/elixir-ecto/ecto/labels/Note:Discussion","name":"Note:Discussion","color":"bfe5bf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/elixir-ecto/ecto/milestones/7","html_url":"https://github.com/elixir-ecto/ecto/milestone/7","labels_url":"https://api.github.com/repos/elixir-ecto/ecto/milestones/7/labels","id":2652995,"node_id":"MDk6TWlsZXN0b25lMjY1Mjk5NQ==","number":7,"title":"v3.0","description":null,"creator":{"login":"michalmuskala","id":477062,"node_id":"MDQ6VXNlcjQ3NzA2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/477062?v=4","gravatar_id":"","url":"https://api.github.com/users/michalmuskala","html_url":"https://github.com/michalmuskala","followers_url":"https://api.github.com/users/michalmuskala/followers","following_url":"https://api.github.com/users/michalmuskala/following{/other_user}","gists_url":"https://api.github.com/users/michalmuskala/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmuskala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmuskala/subscriptions","organizations_url":"https://api.github.com/users/michalmuskala/orgs","repos_url":"https://api.github.com/users/michalmuskala/repos","events_url":"https://api.github.com/users/michalmuskala/events{/privacy}","received_events_url":"https://api.github.com/users/michalmuskala/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":19,"state":"open","created_at":"2017-07-20T17:38:55Z","updated_at":"2018-06-18T21:36:01Z","due_on":null,"closed_at":null},"comments":42,"created_at":"2017-02-24T18:09:45Z","updated_at":"2018-08-09T18:33:01Z","closed_at":"2018-05-29T21:37:46Z","author_association":"NONE","body":"i have a use case where i'm unable to configure my database ahead of time via creating a Repo module. i know it's possible to compile at runtime but i'm uneasy about the possible security and performance implications of doing so. what i'd like is an alternative to `Repo` that accepts configuration at runtime\r\n\r\n```elixir\r\nrepo = [\r\n  adapter: Ecto.Adapters.Postgres,\r\n  database: \"ecto\",\r\n  ...\r\n]\r\nDynamicRepo.all(repo, query, opts)\r\n```\r\n\r\n`DynamicRepo` would be identical to modules generated via `using Ecto.Repo` apart from the arity change of functions to accept repo options\r\n\r\nthis is doable now as a library but i'm unsure how much of a `Repo`'s api is considered public and how much is considered private. if private, it may be beneficial to make the functionality part of ecto itself so the api's can be updated in tandem\r\n\r\ni'm also open to alternatives if there is a better path forward"},"comment":{"url":"https://api.github.com/repos/elixir-ecto/ecto/issues/comments/411854321","html_url":"https://github.com/elixir-ecto/ecto/issues/1964#issuecomment-411854321","issue_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1964","id":411854321,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTg1NDMyMQ==","user":{"login":"michalmuskala","id":477062,"node_id":"MDQ6VXNlcjQ3NzA2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/477062?v=4","gravatar_id":"","url":"https://api.github.com/users/michalmuskala","html_url":"https://github.com/michalmuskala","followers_url":"https://api.github.com/users/michalmuskala/followers","following_url":"https://api.github.com/users/michalmuskala/following{/other_user}","gists_url":"https://api.github.com/users/michalmuskala/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmuskala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmuskala/subscriptions","organizations_url":"https://api.github.com/users/michalmuskala/orgs","repos_url":"https://api.github.com/users/michalmuskala/repos","events_url":"https://api.github.com/users/michalmuskala/events{/privacy}","received_events_url":"https://api.github.com/users/michalmuskala/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T18:33:01Z","updated_at":"2018-08-09T18:33:01Z","author_association":"MEMBER","body":"Yes this is scheduled to be part of the 3.0 release. You can track progress with the [v3.0 milestone](https://github.com/elixir-ecto/ecto/milestone/7)."}}
{"actor":{"display_login":"michalmuskala"}}