{"action":"opened","number":54,"pull_request":{"url":"https://api.github.com/repos/jrf0110/dirac/pulls/54","id":72805846,"html_url":"https://github.com/jrf0110/dirac/pull/54","diff_url":"https://github.com/jrf0110/dirac/pull/54.diff","patch_url":"https://github.com/jrf0110/dirac/pull/54.patch","issue_url":"https://api.github.com/repos/jrf0110/dirac/issues/54","number":54,"state":"open","locked":false,"title":"v1.0.0 Wishlist","user":{"login":"jrf0110","id":767070,"avatar_url":"https://avatars.githubusercontent.com/u/767070?v=3","gravatar_id":"","url":"https://api.github.com/users/jrf0110","html_url":"https://github.com/jrf0110","followers_url":"https://api.github.com/users/jrf0110/followers","following_url":"https://api.github.com/users/jrf0110/following{/other_user}","gists_url":"https://api.github.com/users/jrf0110/gists{/gist_id}","starred_url":"https://api.github.com/users/jrf0110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrf0110/subscriptions","organizations_url":"https://api.github.com/users/jrf0110/orgs","repos_url":"https://api.github.com/users/jrf0110/repos","events_url":"https://api.github.com/users/jrf0110/events{/privacy}","received_events_url":"https://api.github.com/users/jrf0110/received_events","type":"User","site_admin":false},"body":"__Easily composable factory based API:__\r\n\r\n```javascript\r\nvar db = require('dirac')('postgres://localhost:5432/my_db?ssl=true');\r\n\r\n// More specific\r\nvar db = require('dirac')\r\n  .host('localhost')\r\n  .port(5432)\r\n  .ssl(true)\r\n  .db('my_db');\r\n\r\n// Use middleware for instance\r\ndb = require('dirac')('...')\r\n  .use( db.relationships() )\r\n  .use( myCustomMiddlewares );\r\n\r\n// Query by strings\r\ndb.query('select * from users where id = $1', [10])\r\n  .then( function( results ){\r\n    // Promised based API or node-style callbacks\r\n  });\r\n\r\n\r\ndb.query({\r\n  type: 'select'\r\n, table: 'users'\r\n, where: { id: 10 }\r\n}).then(...);\r\n\r\n// Setup dals\r\ndb.users = db.dal({ ... });\r\n\r\n// Initiate query objects\r\nvar query = db.users.find()\r\n  .where({ id: 10 })\r\n  .or({ id: 12 })\r\n  .one({ table: 'region' })\r\n  .many({ table: 'orders' })\r\n\r\nquery.exec().then( ... );\r\n```\r\n","created_at":"2016-06-07T02:07:58Z","updated_at":"2016-06-07T02:07:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jrf0110/dirac/pulls/54/commits","review_comments_url":"https://api.github.com/repos/jrf0110/dirac/pulls/54/comments","review_comment_url":"https://api.github.com/repos/jrf0110/dirac/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jrf0110/dirac/issues/54/comments","statuses_url":"https://api.github.com/repos/jrf0110/dirac/statuses/6f0ab589d5562ed18b54ed405c2bd44db1c05e35","head":{"label":"jrf0110:54-v1","ref":"54-v1","sha":"6f0ab589d5562ed18b54ed405c2bd44db1c05e35","user":{"login":"jrf0110","id":767070,"avatar_url":"https://avatars.githubusercontent.com/u/767070?v=3","gravatar_id":"","url":"https://api.github.com/users/jrf0110","html_url":"https://github.com/jrf0110","followers_url":"https://api.github.com/users/jrf0110/followers","following_url":"https://api.github.com/users/jrf0110/following{/other_user}","gists_url":"https://api.github.com/users/jrf0110/gists{/gist_id}","starred_url":"https://api.github.com/users/jrf0110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrf0110/subscriptions","organizations_url":"https://api.github.com/users/jrf0110/orgs","repos_url":"https://api.github.com/users/jrf0110/repos","events_url":"https://api.github.com/users/jrf0110/events{/privacy}","received_events_url":"https://api.github.com/users/jrf0110/received_events","type":"User","site_admin":false},"repo":{"id":10858210,"name":"dirac","full_name":"jrf0110/dirac","owner":{"login":"jrf0110","id":767070,"avatar_url":"https://avatars.githubusercontent.com/u/767070?v=3","gravatar_id":"","url":"https://api.github.com/users/jrf0110","html_url":"https://github.com/jrf0110","followers_url":"https://api.github.com/users/jrf0110/followers","following_url":"https://api.github.com/users/jrf0110/following{/other_user}","gists_url":"https://api.github.com/users/jrf0110/gists{/gist_id}","starred_url":"https://api.github.com/users/jrf0110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrf0110/subscriptions","organizations_url":"https://api.github.com/users/jrf0110/orgs","repos_url":"https://api.github.com/users/jrf0110/repos","events_url":"https://api.github.com/users/jrf0110/events{/privacy}","received_events_url":"https://api.github.com/users/jrf0110/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrf0110/dirac","description":"A Node Postgres DB layer built with MoSQL","fork":false,"url":"https://api.github.com/repos/jrf0110/dirac","forks_url":"https://api.github.com/repos/jrf0110/dirac/forks","keys_url":"https://api.github.com/repos/jrf0110/dirac/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrf0110/dirac/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrf0110/dirac/teams","hooks_url":"https://api.github.com/repos/jrf0110/dirac/hooks","issue_events_url":"https://api.github.com/repos/jrf0110/dirac/issues/events{/number}","events_url":"https://api.github.com/repos/jrf0110/dirac/events","assignees_url":"https://api.github.com/repos/jrf0110/dirac/assignees{/user}","branches_url":"https://api.github.com/repos/jrf0110/dirac/branches{/branch}","tags_url":"https://api.github.com/repos/jrf0110/dirac/tags","blobs_url":"https://api.github.com/repos/jrf0110/dirac/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrf0110/dirac/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrf0110/dirac/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrf0110/dirac/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrf0110/dirac/statuses/{sha}","languages_url":"https://api.github.com/repos/jrf0110/dirac/languages","stargazers_url":"https://api.github.com/repos/jrf0110/dirac/stargazers","contributors_url":"https://api.github.com/repos/jrf0110/dirac/contributors","subscribers_url":"https://api.github.com/repos/jrf0110/dirac/subscribers","subscription_url":"https://api.github.com/repos/jrf0110/dirac/subscription","commits_url":"https://api.github.com/repos/jrf0110/dirac/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrf0110/dirac/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrf0110/dirac/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrf0110/dirac/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrf0110/dirac/contents/{+path}","compare_url":"https://api.github.com/repos/jrf0110/dirac/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrf0110/dirac/merges","archive_url":"https://api.github.com/repos/jrf0110/dirac/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrf0110/dirac/downloads","issues_url":"https://api.github.com/repos/jrf0110/dirac/issues{/number}","pulls_url":"https://api.github.com/repos/jrf0110/dirac/pulls{/number}","milestones_url":"https://api.github.com/repos/jrf0110/dirac/milestones{/number}","notifications_url":"https://api.github.com/repos/jrf0110/dirac/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrf0110/dirac/labels{/name}","releases_url":"https://api.github.com/repos/jrf0110/dirac/releases{/id}","deployments_url":"https://api.github.com/repos/jrf0110/dirac/deployments","created_at":"2013-06-22T03:36:26Z","updated_at":"2016-03-09T19:40:18Z","pushed_at":"2016-06-07T02:07:58Z","git_url":"git://github.com/jrf0110/dirac.git","ssh_url":"git@github.com:jrf0110/dirac.git","clone_url":"https://github.com/jrf0110/dirac.git","svn_url":"https://github.com/jrf0110/dirac","homepage":"http://dirac.j0.hn","size":167,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":30,"forks":3,"open_issues":30,"watchers":7,"default_branch":"master"}},"base":{"label":"jrf0110:master","ref":"master","sha":"0a18519eabb36ce708a7e34a7b5c86777ac62e57","user":{"login":"jrf0110","id":767070,"avatar_url":"https://avatars.githubusercontent.com/u/767070?v=3","gravatar_id":"","url":"https://api.github.com/users/jrf0110","html_url":"https://github.com/jrf0110","followers_url":"https://api.github.com/users/jrf0110/followers","following_url":"https://api.github.com/users/jrf0110/following{/other_user}","gists_url":"https://api.github.com/users/jrf0110/gists{/gist_id}","starred_url":"https://api.github.com/users/jrf0110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrf0110/subscriptions","organizations_url":"https://api.github.com/users/jrf0110/orgs","repos_url":"https://api.github.com/users/jrf0110/repos","events_url":"https://api.github.com/users/jrf0110/events{/privacy}","received_events_url":"https://api.github.com/users/jrf0110/received_events","type":"User","site_admin":false},"repo":{"id":10858210,"name":"dirac","full_name":"jrf0110/dirac","owner":{"login":"jrf0110","id":767070,"avatar_url":"https://avatars.githubusercontent.com/u/767070?v=3","gravatar_id":"","url":"https://api.github.com/users/jrf0110","html_url":"https://github.com/jrf0110","followers_url":"https://api.github.com/users/jrf0110/followers","following_url":"https://api.github.com/users/jrf0110/following{/other_user}","gists_url":"https://api.github.com/users/jrf0110/gists{/gist_id}","starred_url":"https://api.github.com/users/jrf0110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrf0110/subscriptions","organizations_url":"https://api.github.com/users/jrf0110/orgs","repos_url":"https://api.github.com/users/jrf0110/repos","events_url":"https://api.github.com/users/jrf0110/events{/privacy}","received_events_url":"https://api.github.com/users/jrf0110/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrf0110/dirac","description":"A Node Postgres DB layer built with MoSQL","fork":false,"url":"https://api.github.com/repos/jrf0110/dirac","forks_url":"https://api.github.com/repos/jrf0110/dirac/forks","keys_url":"https://api.github.com/repos/jrf0110/dirac/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrf0110/dirac/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrf0110/dirac/teams","hooks_url":"https://api.github.com/repos/jrf0110/dirac/hooks","issue_events_url":"https://api.github.com/repos/jrf0110/dirac/issues/events{/number}","events_url":"https://api.github.com/repos/jrf0110/dirac/events","assignees_url":"https://api.github.com/repos/jrf0110/dirac/assignees{/user}","branches_url":"https://api.github.com/repos/jrf0110/dirac/branches{/branch}","tags_url":"https://api.github.com/repos/jrf0110/dirac/tags","blobs_url":"https://api.github.com/repos/jrf0110/dirac/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrf0110/dirac/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrf0110/dirac/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrf0110/dirac/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrf0110/dirac/statuses/{sha}","languages_url":"https://api.github.com/repos/jrf0110/dirac/languages","stargazers_url":"https://api.github.com/repos/jrf0110/dirac/stargazers","contributors_url":"https://api.github.com/repos/jrf0110/dirac/contributors","subscribers_url":"https://api.github.com/repos/jrf0110/dirac/subscribers","subscription_url":"https://api.github.com/repos/jrf0110/dirac/subscription","commits_url":"https://api.github.com/repos/jrf0110/dirac/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrf0110/dirac/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrf0110/dirac/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrf0110/dirac/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrf0110/dirac/contents/{+path}","compare_url":"https://api.github.com/repos/jrf0110/dirac/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrf0110/dirac/merges","archive_url":"https://api.github.com/repos/jrf0110/dirac/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrf0110/dirac/downloads","issues_url":"https://api.github.com/repos/jrf0110/dirac/issues{/number}","pulls_url":"https://api.github.com/repos/jrf0110/dirac/pulls{/number}","milestones_url":"https://api.github.com/repos/jrf0110/dirac/milestones{/number}","notifications_url":"https://api.github.com/repos/jrf0110/dirac/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrf0110/dirac/labels{/name}","releases_url":"https://api.github.com/repos/jrf0110/dirac/releases{/id}","deployments_url":"https://api.github.com/repos/jrf0110/dirac/deployments","created_at":"2013-06-22T03:36:26Z","updated_at":"2016-03-09T19:40:18Z","pushed_at":"2016-06-07T02:07:58Z","git_url":"git://github.com/jrf0110/dirac.git","ssh_url":"git@github.com:jrf0110/dirac.git","clone_url":"https://github.com/jrf0110/dirac.git","svn_url":"https://github.com/jrf0110/dirac","homepage":"http://dirac.j0.hn","size":167,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":30,"forks":3,"open_issues":30,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jrf0110/dirac/pulls/54"},"html":{"href":"https://github.com/jrf0110/dirac/pull/54"},"issue":{"href":"https://api.github.com/repos/jrf0110/dirac/issues/54"},"comments":{"href":"https://api.github.com/repos/jrf0110/dirac/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/jrf0110/dirac/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/jrf0110/dirac/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jrf0110/dirac/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/jrf0110/dirac/statuses/6f0ab589d5562ed18b54ed405c2bd44db1c05e35"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":2593,"deletions":2882,"changed_files":34}}
{"actor":{"display_login":"jrf0110"}}