{"action":"created","comment":{"url":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/comments/29276052","id":29276052,"diff_hunk":"@@ -108,3 +129,28 @@ func createMongoClient(clientName string) (*mgo.Session, error) {\n \t}\n \treturn client, nil\n }\n+\n+func createMySqlClient(clientName string) (client *sql.DB, err error) {\n+\tuser := Config.Get(fmt.Sprintf(\"mysql.%s.host\", clientName), \"root\")\n+\tpassword := Config.Get(fmt.Sprintf(\"mysql.%s.host\", clientName), \"\")\n+\thost := Config.Get(fmt.Sprintf(\"mysql.%s.host\", clientName), \"localhost\")\n+\tport := Config.GetInt(fmt.Sprintf(\"mysql.%s.port\", clientName), 3306)\n+\tdbName := Config.Get(fmt.Sprintf(\"mysql.%s.port\", clientName), \"fiverr_dev\")\n+\n+\tfmt.Println(\"connecting:\" + fmt.Sprintf(\"%s:%s@tcp(%s:%d)/%s\", user, password, host, port, dbName))\n+\tclient, err = sql.Open(\"mysql\", fmt.Sprintf(\"%s:%s@tcp(%s:%d)/%s\", user, password, host, port, dbName))\n+\tif err != nil {\n+\t\tfmt.Println(err)\n+\t\tlog.Print(err)\n+\t\treturn nil, err\n+\t}\n+\t// TODO: add close to\n+\t// defer client.Close()\n+\n+\t// Open doesn't open a connection. Validate DSN data:\n+\terr = client.Ping()","path":"shared/connectors.go","position":74,"original_position":74,"commit_id":"fef5cdbbef943e5243573ad5cbd09cdd5b272c81","original_commit_id":"fef5cdbbef943e5243573ad5cbd09cdd5b272c81","user":{"login":"nitsanfiverr","id":5755412,"avatar_url":"https://avatars.githubusercontent.com/u/5755412?v=3","gravatar_id":"","url":"https://api.github.com/users/nitsanfiverr","html_url":"https://github.com/nitsanfiverr","followers_url":"https://api.github.com/users/nitsanfiverr/followers","following_url":"https://api.github.com/users/nitsanfiverr/following{/other_user}","gists_url":"https://api.github.com/users/nitsanfiverr/gists{/gist_id}","starred_url":"https://api.github.com/users/nitsanfiverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitsanfiverr/subscriptions","organizations_url":"https://api.github.com/users/nitsanfiverr/orgs","repos_url":"https://api.github.com/users/nitsanfiverr/repos","events_url":"https://api.github.com/users/nitsanfiverr/events{/privacy}","received_events_url":"https://api.github.com/users/nitsanfiverr/received_events","type":"User","site_admin":false},"body":"why the ping ? is is necessary ?","created_at":"2015-04-28T18:56:24Z","updated_at":"2015-04-28T18:56:24Z","html_url":"https://github.com/roeepolegfiverr/go_live/pull/3#discussion_r29276052","pull_request_url":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/comments/29276052"},"html":{"href":"https://github.com/roeepolegfiverr/go_live/pull/3#discussion_r29276052"},"pull_request":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/3","id":34274786,"html_url":"https://github.com/roeepolegfiverr/go_live/pull/3","diff_url":"https://github.com/roeepolegfiverr/go_live/pull/3.diff","patch_url":"https://github.com/roeepolegfiverr/go_live/pull/3.patch","issue_url":"https://api.github.com/repos/roeepolegfiverr/go_live/issues/3","number":3,"state":"open","locked":false,"title":"Added MySql driver","user":{"login":"roeepolegfiverr","id":6695652,"avatar_url":"https://avatars.githubusercontent.com/u/6695652?v=3","gravatar_id":"","url":"https://api.github.com/users/roeepolegfiverr","html_url":"https://github.com/roeepolegfiverr","followers_url":"https://api.github.com/users/roeepolegfiverr/followers","following_url":"https://api.github.com/users/roeepolegfiverr/following{/other_user}","gists_url":"https://api.github.com/users/roeepolegfiverr/gists{/gist_id}","starred_url":"https://api.github.com/users/roeepolegfiverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roeepolegfiverr/subscriptions","organizations_url":"https://api.github.com/users/roeepolegfiverr/orgs","repos_url":"https://api.github.com/users/roeepolegfiverr/repos","events_url":"https://api.github.com/users/roeepolegfiverr/events{/privacy}","received_events_url":"https://api.github.com/users/roeepolegfiverr/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-28T14:50:38Z","updated_at":"2015-04-28T18:56:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be38013121b51a7825344e367d149552bc98332d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/3/commits","review_comments_url":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/3/comments","review_comment_url":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/comments{/number}","comments_url":"https://api.github.com/repos/roeepolegfiverr/go_live/issues/3/comments","statuses_url":"https://api.github.com/repos/roeepolegfiverr/go_live/statuses/fef5cdbbef943e5243573ad5cbd09cdd5b272c81","head":{"label":"roeepolegfiverr:sql_driver","ref":"sql_driver","sha":"fef5cdbbef943e5243573ad5cbd09cdd5b272c81","user":{"login":"roeepolegfiverr","id":6695652,"avatar_url":"https://avatars.githubusercontent.com/u/6695652?v=3","gravatar_id":"","url":"https://api.github.com/users/roeepolegfiverr","html_url":"https://github.com/roeepolegfiverr","followers_url":"https://api.github.com/users/roeepolegfiverr/followers","following_url":"https://api.github.com/users/roeepolegfiverr/following{/other_user}","gists_url":"https://api.github.com/users/roeepolegfiverr/gists{/gist_id}","starred_url":"https://api.github.com/users/roeepolegfiverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roeepolegfiverr/subscriptions","organizations_url":"https://api.github.com/users/roeepolegfiverr/orgs","repos_url":"https://api.github.com/users/roeepolegfiverr/repos","events_url":"https://api.github.com/users/roeepolegfiverr/events{/privacy}","received_events_url":"https://api.github.com/users/roeepolegfiverr/received_events","type":"User","site_admin":false},"repo":{"id":33810050,"name":"go_live","full_name":"roeepolegfiverr/go_live","owner":{"login":"roeepolegfiverr","id":6695652,"avatar_url":"https://avatars.githubusercontent.com/u/6695652?v=3","gravatar_id":"","url":"https://api.github.com/users/roeepolegfiverr","html_url":"https://github.com/roeepolegfiverr","followers_url":"https://api.github.com/users/roeepolegfiverr/followers","following_url":"https://api.github.com/users/roeepolegfiverr/following{/other_user}","gists_url":"https://api.github.com/users/roeepolegfiverr/gists{/gist_id}","starred_url":"https://api.github.com/users/roeepolegfiverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roeepolegfiverr/subscriptions","organizations_url":"https://api.github.com/users/roeepolegfiverr/orgs","repos_url":"https://api.github.com/users/roeepolegfiverr/repos","events_url":"https://api.github.com/users/roeepolegfiverr/events{/privacy}","received_events_url":"https://api.github.com/users/roeepolegfiverr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roeepolegfiverr/go_live","description":"","fork":false,"url":"https://api.github.com/repos/roeepolegfiverr/go_live","forks_url":"https://api.github.com/repos/roeepolegfiverr/go_live/forks","keys_url":"https://api.github.com/repos/roeepolegfiverr/go_live/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roeepolegfiverr/go_live/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roeepolegfiverr/go_live/teams","hooks_url":"https://api.github.com/repos/roeepolegfiverr/go_live/hooks","issue_events_url":"https://api.github.com/repos/roeepolegfiverr/go_live/issues/events{/number}","events_url":"https://api.github.com/repos/roeepolegfiverr/go_live/events","assignees_url":"https://api.github.com/repos/roeepolegfiverr/go_live/assignees{/user}","branches_url":"https://api.github.com/repos/roeepolegfiverr/go_live/branches{/branch}","tags_url":"https://api.github.com/repos/roeepolegfiverr/go_live/tags","blobs_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/refs{/sha}","trees_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roeepolegfiverr/go_live/statuses/{sha}","languages_url":"https://api.github.com/repos/roeepolegfiverr/go_live/languages","stargazers_url":"https://api.github.com/repos/roeepolegfiverr/go_live/stargazers","contributors_url":"https://api.github.com/repos/roeepolegfiverr/go_live/contributors","subscribers_url":"https://api.github.com/repos/roeepolegfiverr/go_live/subscribers","subscription_url":"https://api.github.com/repos/roeepolegfiverr/go_live/subscription","commits_url":"https://api.github.com/repos/roeepolegfiverr/go_live/commits{/sha}","git_commits_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/commits{/sha}","comments_url":"https://api.github.com/repos/roeepolegfiverr/go_live/comments{/number}","issue_comment_url":"https://api.github.com/repos/roeepolegfiverr/go_live/issues/comments{/number}","contents_url":"https://api.github.com/repos/roeepolegfiverr/go_live/contents/{+path}","compare_url":"https://api.github.com/repos/roeepolegfiverr/go_live/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roeepolegfiverr/go_live/merges","archive_url":"https://api.github.com/repos/roeepolegfiverr/go_live/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roeepolegfiverr/go_live/downloads","issues_url":"https://api.github.com/repos/roeepolegfiverr/go_live/issues{/number}","pulls_url":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls{/number}","milestones_url":"https://api.github.com/repos/roeepolegfiverr/go_live/milestones{/number}","notifications_url":"https://api.github.com/repos/roeepolegfiverr/go_live/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roeepolegfiverr/go_live/labels{/name}","releases_url":"https://api.github.com/repos/roeepolegfiverr/go_live/releases{/id}","created_at":"2015-04-12T09:00:33Z","updated_at":"2015-04-28T08:12:45Z","pushed_at":"2015-04-28T14:50:38Z","git_url":"git://github.com/roeepolegfiverr/go_live.git","ssh_url":"git@github.com:roeepolegfiverr/go_live.git","clone_url":"https://github.com/roeepolegfiverr/go_live.git","svn_url":"https://github.com/roeepolegfiverr/go_live","homepage":null,"size":692,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"roeepolegfiverr:master","ref":"master","sha":"dc380a49ed4501807f10c5ca42ede90bb6cbb468","user":{"login":"roeepolegfiverr","id":6695652,"avatar_url":"https://avatars.githubusercontent.com/u/6695652?v=3","gravatar_id":"","url":"https://api.github.com/users/roeepolegfiverr","html_url":"https://github.com/roeepolegfiverr","followers_url":"https://api.github.com/users/roeepolegfiverr/followers","following_url":"https://api.github.com/users/roeepolegfiverr/following{/other_user}","gists_url":"https://api.github.com/users/roeepolegfiverr/gists{/gist_id}","starred_url":"https://api.github.com/users/roeepolegfiverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roeepolegfiverr/subscriptions","organizations_url":"https://api.github.com/users/roeepolegfiverr/orgs","repos_url":"https://api.github.com/users/roeepolegfiverr/repos","events_url":"https://api.github.com/users/roeepolegfiverr/events{/privacy}","received_events_url":"https://api.github.com/users/roeepolegfiverr/received_events","type":"User","site_admin":false},"repo":{"id":33810050,"name":"go_live","full_name":"roeepolegfiverr/go_live","owner":{"login":"roeepolegfiverr","id":6695652,"avatar_url":"https://avatars.githubusercontent.com/u/6695652?v=3","gravatar_id":"","url":"https://api.github.com/users/roeepolegfiverr","html_url":"https://github.com/roeepolegfiverr","followers_url":"https://api.github.com/users/roeepolegfiverr/followers","following_url":"https://api.github.com/users/roeepolegfiverr/following{/other_user}","gists_url":"https://api.github.com/users/roeepolegfiverr/gists{/gist_id}","starred_url":"https://api.github.com/users/roeepolegfiverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roeepolegfiverr/subscriptions","organizations_url":"https://api.github.com/users/roeepolegfiverr/orgs","repos_url":"https://api.github.com/users/roeepolegfiverr/repos","events_url":"https://api.github.com/users/roeepolegfiverr/events{/privacy}","received_events_url":"https://api.github.com/users/roeepolegfiverr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roeepolegfiverr/go_live","description":"","fork":false,"url":"https://api.github.com/repos/roeepolegfiverr/go_live","forks_url":"https://api.github.com/repos/roeepolegfiverr/go_live/forks","keys_url":"https://api.github.com/repos/roeepolegfiverr/go_live/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roeepolegfiverr/go_live/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roeepolegfiverr/go_live/teams","hooks_url":"https://api.github.com/repos/roeepolegfiverr/go_live/hooks","issue_events_url":"https://api.github.com/repos/roeepolegfiverr/go_live/issues/events{/number}","events_url":"https://api.github.com/repos/roeepolegfiverr/go_live/events","assignees_url":"https://api.github.com/repos/roeepolegfiverr/go_live/assignees{/user}","branches_url":"https://api.github.com/repos/roeepolegfiverr/go_live/branches{/branch}","tags_url":"https://api.github.com/repos/roeepolegfiverr/go_live/tags","blobs_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/refs{/sha}","trees_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roeepolegfiverr/go_live/statuses/{sha}","languages_url":"https://api.github.com/repos/roeepolegfiverr/go_live/languages","stargazers_url":"https://api.github.com/repos/roeepolegfiverr/go_live/stargazers","contributors_url":"https://api.github.com/repos/roeepolegfiverr/go_live/contributors","subscribers_url":"https://api.github.com/repos/roeepolegfiverr/go_live/subscribers","subscription_url":"https://api.github.com/repos/roeepolegfiverr/go_live/subscription","commits_url":"https://api.github.com/repos/roeepolegfiverr/go_live/commits{/sha}","git_commits_url":"https://api.github.com/repos/roeepolegfiverr/go_live/git/commits{/sha}","comments_url":"https://api.github.com/repos/roeepolegfiverr/go_live/comments{/number}","issue_comment_url":"https://api.github.com/repos/roeepolegfiverr/go_live/issues/comments{/number}","contents_url":"https://api.github.com/repos/roeepolegfiverr/go_live/contents/{+path}","compare_url":"https://api.github.com/repos/roeepolegfiverr/go_live/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roeepolegfiverr/go_live/merges","archive_url":"https://api.github.com/repos/roeepolegfiverr/go_live/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roeepolegfiverr/go_live/downloads","issues_url":"https://api.github.com/repos/roeepolegfiverr/go_live/issues{/number}","pulls_url":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls{/number}","milestones_url":"https://api.github.com/repos/roeepolegfiverr/go_live/milestones{/number}","notifications_url":"https://api.github.com/repos/roeepolegfiverr/go_live/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roeepolegfiverr/go_live/labels{/name}","releases_url":"https://api.github.com/repos/roeepolegfiverr/go_live/releases{/id}","created_at":"2015-04-12T09:00:33Z","updated_at":"2015-04-28T08:12:45Z","pushed_at":"2015-04-28T14:50:38Z","git_url":"git://github.com/roeepolegfiverr/go_live.git","ssh_url":"git@github.com:roeepolegfiverr/go_live.git","clone_url":"https://github.com/roeepolegfiverr/go_live.git","svn_url":"https://github.com/roeepolegfiverr/go_live","homepage":null,"size":692,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/3"},"html":{"href":"https://github.com/roeepolegfiverr/go_live/pull/3"},"issue":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/issues/3"},"comments":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/roeepolegfiverr/go_live/statuses/fef5cdbbef943e5243573ad5cbd09cdd5b272c81"}}}}