{"action":"closed","issue":{"url":"https://api.github.com/repos/node-ffi/node-ffi/issues/392","repository_url":"https://api.github.com/repos/node-ffi/node-ffi","labels_url":"https://api.github.com/repos/node-ffi/node-ffi/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/node-ffi/node-ffi/issues/392/comments","events_url":"https://api.github.com/repos/node-ffi/node-ffi/issues/392/events","html_url":"https://github.com/node-ffi/node-ffi/issues/392","id":231133573,"number":392,"title":"sqlite3 example, how to got the col2 name and value?","user":{"login":"dragonview","id":12497354,"avatar_url":"https://avatars3.githubusercontent.com/u/12497354?v=3","gravatar_id":"","url":"https://api.github.com/users/dragonview","html_url":"https://github.com/dragonview","followers_url":"https://api.github.com/users/dragonview/followers","following_url":"https://api.github.com/users/dragonview/following{/other_user}","gists_url":"https://api.github.com/users/dragonview/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonview/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonview/subscriptions","organizations_url":"https://api.github.com/users/dragonview/orgs","repos_url":"https://api.github.com/users/dragonview/repos","events_url":"https://api.github.com/users/dragonview/events{/privacy}","received_events_url":"https://api.github.com/users/dragonview/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-24T18:39:02Z","updated_at":"2017-05-24T18:43:02Z","closed_at":"2017-05-24T18:43:02Z","body":"var rowCount = 0\r\nvar callback = ffi.Callback('int', ['void *', 'int', stringPtr, stringPtr], function (tmp, cols, **argv, colv**) {\r\n  var obj = {}\r\n\r\n  for (var i = 0; i < cols; i++) {\r\n    **var colName = colv.deref()\r\n    var colData = argv.deref()**\r\n    obj[colName] = colData\r\n  }\r\n\r\n  console.log('Row: %j', obj)\r\n  rowCount++\r\n\r\n  return 0\r\n})\r\n"}}
{"actor":{"display_login":"dragonview"}}