{"action":"created","issue":{"url":"https://api.github.com/repos/MagicStack/asyncpg/issues/22","repository_url":"https://api.github.com/repos/MagicStack/asyncpg","labels_url":"https://api.github.com/repos/MagicStack/asyncpg/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/MagicStack/asyncpg/issues/22/comments","events_url":"https://api.github.com/repos/MagicStack/asyncpg/issues/22/events","html_url":"https://github.com/MagicStack/asyncpg/issues/22","id":170675357,"number":22,"title":"How do I implement a custom data type?","user":{"login":"fmariluis","id":360428,"avatar_url":"https://avatars.githubusercontent.com/u/360428?v=3","gravatar_id":"","url":"https://api.github.com/users/fmariluis","html_url":"https://github.com/fmariluis","followers_url":"https://api.github.com/users/fmariluis/followers","following_url":"https://api.github.com/users/fmariluis/following{/other_user}","gists_url":"https://api.github.com/users/fmariluis/gists{/gist_id}","starred_url":"https://api.github.com/users/fmariluis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmariluis/subscriptions","organizations_url":"https://api.github.com/users/fmariluis/orgs","repos_url":"https://api.github.com/users/fmariluis/repos","events_url":"https://api.github.com/users/fmariluis/events{/privacy}","received_events_url":"https://api.github.com/users/fmariluis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-11T15:31:40Z","updated_at":"2016-08-11T19:20:46Z","closed_at":null,"body":"Hi, our db uses ltrees (https://www.postgresql.org/docs/current/static/ltree.html) and asyncpg fails with \r\n\r\n`asyncpg.exceptions.UndefinedFunctionError: no binary output function available for type ltree`\r\n\r\nIn psycopg2 you could write an adapter to cast the SQL type to a python object (http://initd.org/psycopg/docs/advanced.html#type-casting-of-sql-types-into-python-objects). \r\n\r\nIs there a way to do something like that for this driver? \r\n\r\nVery interesting project, btw!"},"comment":{"url":"https://api.github.com/repos/MagicStack/asyncpg/issues/comments/239263522","html_url":"https://github.com/MagicStack/asyncpg/issues/22#issuecomment-239263522","issue_url":"https://api.github.com/repos/MagicStack/asyncpg/issues/22","id":239263522,"user":{"login":"elprans","id":347119,"avatar_url":"https://avatars.githubusercontent.com/u/347119?v=3","gravatar_id":"","url":"https://api.github.com/users/elprans","html_url":"https://github.com/elprans","followers_url":"https://api.github.com/users/elprans/followers","following_url":"https://api.github.com/users/elprans/following{/other_user}","gists_url":"https://api.github.com/users/elprans/gists{/gist_id}","starred_url":"https://api.github.com/users/elprans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elprans/subscriptions","organizations_url":"https://api.github.com/users/elprans/orgs","repos_url":"https://api.github.com/users/elprans/repos","events_url":"https://api.github.com/users/elprans/events{/privacy}","received_events_url":"https://api.github.com/users/elprans/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T19:20:46Z","updated_at":"2016-08-11T19:20:46Z","body":"I'll see if I can put a PostgreSQL patch together to support binary I/O for ltree."}}
{"actor":{"display_login":"elprans"}}