{"action":"created","issue":{"url":"https://api.github.com/repos/fantix/gino/issues/412","repository_url":"https://api.github.com/repos/fantix/gino","labels_url":"https://api.github.com/repos/fantix/gino/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/fantix/gino/issues/412/comments","events_url":"https://api.github.com/repos/fantix/gino/issues/412/events","html_url":"https://github.com/fantix/gino/issues/412","id":392248490,"node_id":"MDU6SXNzdWUzOTIyNDg0OTA=","number":412,"title":"Database profiler - Integration with SQLTap","user":{"login":"tng10","id":1923216,"node_id":"MDQ6VXNlcjE5MjMyMTY=","avatar_url":"https://avatars0.githubusercontent.com/u/1923216?v=4","gravatar_id":"","url":"https://api.github.com/users/tng10","html_url":"https://github.com/tng10","followers_url":"https://api.github.com/users/tng10/followers","following_url":"https://api.github.com/users/tng10/following{/other_user}","gists_url":"https://api.github.com/users/tng10/gists{/gist_id}","starred_url":"https://api.github.com/users/tng10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tng10/subscriptions","organizations_url":"https://api.github.com/users/tng10/orgs","repos_url":"https://api.github.com/users/tng10/repos","events_url":"https://api.github.com/users/tng10/events{/privacy}","received_events_url":"https://api.github.com/users/tng10/received_events","type":"User","site_admin":false},"labels":[{"id":651779915,"node_id":"MDU6TGFiZWw2NTE3Nzk5MTU=","url":"https://api.github.com/repos/fantix/gino/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"fantix","id":1751601,"node_id":"MDQ6VXNlcjE3NTE2MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/1751601?v=4","gravatar_id":"","url":"https://api.github.com/users/fantix","html_url":"https://github.com/fantix","followers_url":"https://api.github.com/users/fantix/followers","following_url":"https://api.github.com/users/fantix/following{/other_user}","gists_url":"https://api.github.com/users/fantix/gists{/gist_id}","starred_url":"https://api.github.com/users/fantix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantix/subscriptions","organizations_url":"https://api.github.com/users/fantix/orgs","repos_url":"https://api.github.com/users/fantix/repos","events_url":"https://api.github.com/users/fantix/events{/privacy}","received_events_url":"https://api.github.com/users/fantix/received_events","type":"User","site_admin":false},"assignees":[{"login":"fantix","id":1751601,"node_id":"MDQ6VXNlcjE3NTE2MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/1751601?v=4","gravatar_id":"","url":"https://api.github.com/users/fantix","html_url":"https://github.com/fantix","followers_url":"https://api.github.com/users/fantix/followers","following_url":"https://api.github.com/users/fantix/following{/other_user}","gists_url":"https://api.github.com/users/fantix/gists{/gist_id}","starred_url":"https://api.github.com/users/fantix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantix/subscriptions","organizations_url":"https://api.github.com/users/fantix/orgs","repos_url":"https://api.github.com/users/fantix/repos","events_url":"https://api.github.com/users/fantix/events{/privacy}","received_events_url":"https://api.github.com/users/fantix/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fantix/gino/milestones/9","html_url":"https://github.com/fantix/gino/milestone/9","labels_url":"https://api.github.com/repos/fantix/gino/milestones/9/labels","id":3283240,"node_id":"MDk6TWlsZXN0b25lMzI4MzI0MA==","number":9,"title":"v0.8.x","description":"1.0 release candidate.","creator":{"login":"fantix","id":1751601,"node_id":"MDQ6VXNlcjE3NTE2MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/1751601?v=4","gravatar_id":"","url":"https://api.github.com/users/fantix","html_url":"https://github.com/fantix","followers_url":"https://api.github.com/users/fantix/followers","following_url":"https://api.github.com/users/fantix/following{/other_user}","gists_url":"https://api.github.com/users/fantix/gists{/gist_id}","starred_url":"https://api.github.com/users/fantix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantix/subscriptions","organizations_url":"https://api.github.com/users/fantix/orgs","repos_url":"https://api.github.com/users/fantix/repos","events_url":"https://api.github.com/users/fantix/events{/privacy}","received_events_url":"https://api.github.com/users/fantix/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":4,"state":"open","created_at":"2018-04-20T06:46:49Z","updated_at":"2018-12-19T02:50:28Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-12-18T16:58:53Z","updated_at":"2018-12-19T12:19:17Z","closed_at":null,"author_association":"NONE","body":"Hi, I am trying to integrate SQLTap into a project with Sanic and GINO.\r\n\r\n* GINO version: 0.8.0\r\n* Python version: 3.6.6\r\n* asyncpg version: 0.17.0\r\n* aiocontextvars version: 0.2.0\r\n* PostgreSQL version: 10.6\r\n\r\n### Description\r\nI am basically using the most basic example of SQLTap, which is the following:\r\n\r\n```\r\nimport sqltap\r\n\r\nasync def get_users():\r\n    profiler = sqltap.start()\r\n    all_users = await User.query.gino.all()\r\n    statistics = profiler.collect()\r\n    sqltap.report(statistics, \"report.html\")\r\n    return all_users\r\n```\r\n\r\nWhat is going on behind the scenes on SQLTap is the class QueryStats is being instantiated and the parameter **results** which is suppose to be an instance of **[sqlalchemy.engine.ResultProxy](https://docs.sqlalchemy.org/en/latest/core/connections.html#sqlalchemy.engine.ResultProxy)**, actually is a instance of **gino.dialects.base._ResultProxy**. I did a very basic comparison between ResultProxy class from SQLAlchemy and _ResultProxy class from Gino and I noticed there are methods/attributes omitted. Is there any reason to not have these attributes there? Is there a way to access the **ResultProxy** instance from SQLAlchemy?\r\n\r\nWhen I execute this code, I receive the error described underneath.\r\n\r\n### Traceback\r\n```\r\n  File \"/home/jclacerda/PycharmProjects/dgae/colombus/venv/lib/python3.6/site-packages/sqltap/sqltap.py\", line 63, in __init__\r\n    self.rowcount = results.rowcount\r\nAttributeError: '_ResultProxy' object has no attribute 'rowcount'\r\n```\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/fantix/gino/issues/comments/448575296","html_url":"https://github.com/fantix/gino/issues/412#issuecomment-448575296","issue_url":"https://api.github.com/repos/fantix/gino/issues/412","id":448575296,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODU3NTI5Ng==","user":{"login":"fantix","id":1751601,"node_id":"MDQ6VXNlcjE3NTE2MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/1751601?v=4","gravatar_id":"","url":"https://api.github.com/users/fantix","html_url":"https://github.com/fantix","followers_url":"https://api.github.com/users/fantix/followers","following_url":"https://api.github.com/users/fantix/following{/other_user}","gists_url":"https://api.github.com/users/fantix/gists{/gist_id}","starred_url":"https://api.github.com/users/fantix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantix/subscriptions","organizations_url":"https://api.github.com/users/fantix/orgs","repos_url":"https://api.github.com/users/fantix/repos","events_url":"https://api.github.com/users/fantix/events{/privacy}","received_events_url":"https://api.github.com/users/fantix/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T12:19:17Z","updated_at":"2018-12-19T12:19:17Z","author_association":"OWNER","body":"Okay good to know! Let's get this merged and address the rest in a new issue. Thanks for the info!"}}
{"actor":{"display_login":"fantix"}}