{"action":"created","issue":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/606","labels_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/606/labels{/name}","comments_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/606/comments","events_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/606/events","html_url":"https://github.com/MongoEngine/mongoengine/issues/606","id":29235866,"number":606,"title":"connect and register_connection use different parameters for db name.","user":{"login":"adamlwgriffiths","id":1239156,"avatar_url":"https://avatars.githubusercontent.com/u/1239156?v=3","gravatar_id":"","url":"https://api.github.com/users/adamlwgriffiths","html_url":"https://github.com/adamlwgriffiths","followers_url":"https://api.github.com/users/adamlwgriffiths/followers","following_url":"https://api.github.com/users/adamlwgriffiths/following{/other_user}","gists_url":"https://api.github.com/users/adamlwgriffiths/gists{/gist_id}","starred_url":"https://api.github.com/users/adamlwgriffiths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamlwgriffiths/subscriptions","organizations_url":"https://api.github.com/users/adamlwgriffiths/orgs","repos_url":"https://api.github.com/users/adamlwgriffiths/repos","events_url":"https://api.github.com/users/adamlwgriffiths/events{/privacy}","received_events_url":"https://api.github.com/users/adamlwgriffiths/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MongoEngine/mongoengine/labels/Client/Connect","name":"Client/Connect","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-03-12T03:49:10Z","updated_at":"2015-06-14T17:47:46Z","closed_at":null,"body":"`connect` uses `db` as the database name, `register_connection` uses `name`.\r\n```\r\nmongoengine.connect(db, alias='default', **kwargs)\r\nmongoengine.register_connection(alias, name, ... )\r\n```\r\n\r\nThis causes problems for configuration, for example, I load my config from a json file. This means I need to translate `{'db': 'xyz'}` to `{'name': 'xyz'}` when using `register_connection` and ensure that the 'db' value is removed, or the register_connection function complains that it is an unknown argument and fails."},"comment":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/comments/111855466","html_url":"https://github.com/MongoEngine/mongoengine/issues/606#issuecomment-111855466","issue_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/606","id":111855466,"user":{"login":"MRigal","id":2190327,"avatar_url":"https://avatars.githubusercontent.com/u/2190327?v=3","gravatar_id":"","url":"https://api.github.com/users/MRigal","html_url":"https://github.com/MRigal","followers_url":"https://api.github.com/users/MRigal/followers","following_url":"https://api.github.com/users/MRigal/following{/other_user}","gists_url":"https://api.github.com/users/MRigal/gists{/gist_id}","starred_url":"https://api.github.com/users/MRigal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRigal/subscriptions","organizations_url":"https://api.github.com/users/MRigal/orgs","repos_url":"https://api.github.com/users/MRigal/repos","events_url":"https://api.github.com/users/MRigal/events{/privacy}","received_events_url":"https://api.github.com/users/MRigal/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T17:47:46Z","updated_at":"2015-06-14T17:47:46Z","body":"immm, a hard one. We will make people unsatisfied with either both of the situations. This is why I've created the label for Client/Connect, because it actually needs a big refactoring and a strong clarification of the terms used. Unfortunately, it is not the area of the code which I am the most familiar with, as I am used to pretty standard configurations"}}