{"action":"created","issue":{"url":"https://api.github.com/repos/lib/pq/issues/710","repository_url":"https://api.github.com/repos/lib/pq","labels_url":"https://api.github.com/repos/lib/pq/issues/710/labels{/name}","comments_url":"https://api.github.com/repos/lib/pq/issues/710/comments","events_url":"https://api.github.com/repos/lib/pq/issues/710/events","html_url":"https://github.com/lib/pq/issues/710","id":294987287,"number":710,"title":"What would it take to support the Interval Type in lib/pq?","user":{"login":"lrosenman","id":2868525,"avatar_url":"https://avatars1.githubusercontent.com/u/2868525?v=4","gravatar_id":"","url":"https://api.github.com/users/lrosenman","html_url":"https://github.com/lrosenman","followers_url":"https://api.github.com/users/lrosenman/followers","following_url":"https://api.github.com/users/lrosenman/following{/other_user}","gists_url":"https://api.github.com/users/lrosenman/gists{/gist_id}","starred_url":"https://api.github.com/users/lrosenman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrosenman/subscriptions","organizations_url":"https://api.github.com/users/lrosenman/orgs","repos_url":"https://api.github.com/users/lrosenman/repos","events_url":"https://api.github.com/users/lrosenman/events{/privacy}","received_events_url":"https://api.github.com/users/lrosenman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-07T02:42:20Z","updated_at":"2018-02-07T13:09:40Z","closed_at":null,"author_association":"NONE","body":"I have a go library for the AmbientWeather.net API, and I write those responses to a PostgreSQL database.  One of the fields returned is time.Duration which I was putting into an interval field.\r\n\r\nIn order to satisfy pq, I had to fmt.Sprintf(\"%v\",time.DurationField).  \r\n\r\nI was wondering if there was any objection to my trying to hack/add support for interval/duration support into this library. "},"comment":{"url":"https://api.github.com/repos/lib/pq/issues/comments/363763804","html_url":"https://github.com/lib/pq/issues/710#issuecomment-363763804","issue_url":"https://api.github.com/repos/lib/pq/issues/710","id":363763804,"user":{"login":"cbandy","id":106560,"avatar_url":"https://avatars0.githubusercontent.com/u/106560?v=4","gravatar_id":"","url":"https://api.github.com/users/cbandy","html_url":"https://github.com/cbandy","followers_url":"https://api.github.com/users/cbandy/followers","following_url":"https://api.github.com/users/cbandy/following{/other_user}","gists_url":"https://api.github.com/users/cbandy/gists{/gist_id}","starred_url":"https://api.github.com/users/cbandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbandy/subscriptions","organizations_url":"https://api.github.com/users/cbandy/orgs","repos_url":"https://api.github.com/users/cbandy/repos","events_url":"https://api.github.com/users/cbandy/events{/privacy}","received_events_url":"https://api.github.com/users/cbandy/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T13:09:40Z","updated_at":"2018-02-07T13:09:40Z","author_association":"CONTRIBUTOR","body":"They aren't exactly compatible. See discussion in #78.\r\n\r\nTo control how `sql.DB` interprets a type, implement the [`driver.Valuer` interface](https://golang.org/pkg/database/sql/driver/#Valuer)."}}
{"actor":{"display_login":"cbandy"}}