{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/1684","repository_url":"https://api.github.com/repos/tgriesser/knex","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/1684/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/1684/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/1684/events","html_url":"https://github.com/tgriesser/knex/issues/1684","id":178664502,"number":1684,"title":"API for retrieving knex config from a connection?","user":{"login":"jtlapp","id":138133,"avatar_url":"https://avatars.githubusercontent.com/u/138133?v=3","gravatar_id":"","url":"https://api.github.com/users/jtlapp","html_url":"https://github.com/jtlapp","followers_url":"https://api.github.com/users/jtlapp/followers","following_url":"https://api.github.com/users/jtlapp/following{/other_user}","gists_url":"https://api.github.com/users/jtlapp/gists{/gist_id}","starred_url":"https://api.github.com/users/jtlapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtlapp/subscriptions","organizations_url":"https://api.github.com/users/jtlapp/orgs","repos_url":"https://api.github.com/users/jtlapp/repos","events_url":"https://api.github.com/users/jtlapp/events{/privacy}","received_events_url":"https://api.github.com/users/jtlapp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-22T16:53:36Z","updated_at":"2016-09-27T16:08:26Z","closed_at":null,"body":"Is there an API I can use to retrieve the knex configuration from a connection handle?\r\n\r\nI'm passing the connection handle around and under certain circumstances want to log the name of the database being accessed. I'd rather not also pass the configuration around or monkey-patch the connection handle with a configuration property that might ultimately conflict with knex."},"comment":{"url":"https://api.github.com/repos/tgriesser/knex/issues/comments/249913318","html_url":"https://github.com/tgriesser/knex/issues/1684#issuecomment-249913318","issue_url":"https://api.github.com/repos/tgriesser/knex/issues/1684","id":249913318,"user":{"login":"tgriesser","id":154748,"avatar_url":"https://avatars.githubusercontent.com/u/154748?v=3","gravatar_id":"","url":"https://api.github.com/users/tgriesser","html_url":"https://github.com/tgriesser","followers_url":"https://api.github.com/users/tgriesser/followers","following_url":"https://api.github.com/users/tgriesser/following{/other_user}","gists_url":"https://api.github.com/users/tgriesser/gists{/gist_id}","starred_url":"https://api.github.com/users/tgriesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgriesser/subscriptions","organizations_url":"https://api.github.com/users/tgriesser/orgs","repos_url":"https://api.github.com/users/tgriesser/repos","events_url":"https://api.github.com/users/tgriesser/events{/privacy}","received_events_url":"https://api.github.com/users/tgriesser/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T16:08:26Z","updated_at":"2016-09-27T16:08:26Z","body":"Actually `knex.client.database()` is probably the best way to get this info, as this probably won't change. If it does, there'll be a documented upgrade path"}}
{"actor":{"display_login":"tgriesser"}}