{"action":"created","issue":{"url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/523","repository_url":"https://api.github.com/repos/vitaly-t/pg-promise","labels_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/523/comments","events_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/523/events","html_url":"https://github.com/vitaly-t/pg-promise/issues/523","id":332022701,"node_id":"MDU6SXNzdWUzMzIwMjI3MDE=","number":523,"title":"Simpler interface for array.parse()","user":{"login":"daveisfera","id":1686193,"node_id":"MDQ6VXNlcjE2ODYxOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1686193?v=4","gravatar_id":"","url":"https://api.github.com/users/daveisfera","html_url":"https://github.com/daveisfera","followers_url":"https://api.github.com/users/daveisfera/followers","following_url":"https://api.github.com/users/daveisfera/following{/other_user}","gists_url":"https://api.github.com/users/daveisfera/gists{/gist_id}","starred_url":"https://api.github.com/users/daveisfera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveisfera/subscriptions","organizations_url":"https://api.github.com/users/daveisfera/orgs","repos_url":"https://api.github.com/users/daveisfera/repos","events_url":"https://api.github.com/users/daveisfera/events{/privacy}","received_events_url":"https://api.github.com/users/daveisfera/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-13T14:32:42Z","updated_at":"2018-06-13T15:32:39Z","closed_at":"2018-06-13T15:32:39Z","author_association":"NONE","body":"### Expected behavior\r\n`array.parse()` can be used directly.\r\n\r\n### Actual behavior\r\nA function has to be written to call `create()` and `parse()`\r\n\r\n### Steps to reproduce\r\n[This issue](https://github.com/vitaly-t/pg-promise/issues/22#issuecomment-111827775) shows an example of using `arrayParser` and it's fairly complicated. It would be nice to be able to use `array.parse()` directly like the following (without needing to import `postgres-array`):\r\n\r\n```\r\nconst array = require('postgres-array');\r\nconst replace = require('lodash/fp/replace');\r\npgp.pg.types.setTypeParser(1115, str => array.parse(str, replace(' ', 'T')));\r\n```\r\n\r\n### Environment\r\n\r\n* Version of pg-promise: 8.4.4\r\n* OS type (Linux/Windows/Mac): Mac OS X 10.13.3\r\n* Version of Node.js: 8.11.2\r\n"},"comment":{"url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/comments/396981338","html_url":"https://github.com/vitaly-t/pg-promise/issues/523#issuecomment-396981338","issue_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/523","id":396981338,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njk4MTMzOA==","user":{"login":"daveisfera","id":1686193,"node_id":"MDQ6VXNlcjE2ODYxOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1686193?v=4","gravatar_id":"","url":"https://api.github.com/users/daveisfera","html_url":"https://github.com/daveisfera","followers_url":"https://api.github.com/users/daveisfera/followers","following_url":"https://api.github.com/users/daveisfera/following{/other_user}","gists_url":"https://api.github.com/users/daveisfera/gists{/gist_id}","starred_url":"https://api.github.com/users/daveisfera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveisfera/subscriptions","organizations_url":"https://api.github.com/users/daveisfera/orgs","repos_url":"https://api.github.com/users/daveisfera/repos","events_url":"https://api.github.com/users/daveisfera/events{/privacy}","received_events_url":"https://api.github.com/users/daveisfera/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T15:32:39Z","updated_at":"2018-06-13T15:32:39Z","author_association":"NONE","body":"I can, but it's 1 line of code vs 10+ lines of code. It sounds like you're not interested in addressing something like this, so go ahead and close it."}}
{"actor":{"display_login":"daveisfera"}}