{"action":"opened","issue":{"url":"https://api.github.com/repos/stephencelis/SQLite.swift/issues/151","labels_url":"https://api.github.com/repos/stephencelis/SQLite.swift/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/stephencelis/SQLite.swift/issues/151/comments","events_url":"https://api.github.com/repos/stephencelis/SQLite.swift/issues/151/events","html_url":"https://github.com/stephencelis/SQLite.swift/issues/151","id":94794961,"number":151,"title":"Access is needed to columnNames private variable in Query object","user":{"login":"Hexidecibel","id":1633846,"avatar_url":"https://avatars.githubusercontent.com/u/1633846?v=3","gravatar_id":"","url":"https://api.github.com/users/Hexidecibel","html_url":"https://github.com/Hexidecibel","followers_url":"https://api.github.com/users/Hexidecibel/followers","following_url":"https://api.github.com/users/Hexidecibel/following{/other_user}","gists_url":"https://api.github.com/users/Hexidecibel/gists{/gist_id}","starred_url":"https://api.github.com/users/Hexidecibel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hexidecibel/subscriptions","organizations_url":"https://api.github.com/users/Hexidecibel/orgs","repos_url":"https://api.github.com/users/Hexidecibel/repos","events_url":"https://api.github.com/users/Hexidecibel/events{/privacy}","received_events_url":"https://api.github.com/users/Hexidecibel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T19:38:11Z","updated_at":"2015-07-13T19:38:11Z","closed_at":null,"body":"When iterating through a result set obtained via a select * query, the exact number of columns is unknown. The columnNames variable is needed to properly iterate through this kind of result set and this commit provides access to it via the Query object.\r\n\r\n    var aliasByColumnName = [String: String]\r\n    var aliases = database(\"SELECT * FROM ALIASES\")\r\n    for alias in aliases {\r\n      var columnNames:[String: Int] = alias.getColumnNames()\r\n      for (key, value) in columnNames {\r\n        aliasByColumnName[key] = alias.values[value]\r\n      }\r\n    }\r\n\r\nI've created a pull request that implements this."}}