{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/casbin/gorm-adapter/pulls/4","id":145106472,"html_url":"https://github.com/casbin/gorm-adapter/pull/4","diff_url":"https://github.com/casbin/gorm-adapter/pull/4.diff","patch_url":"https://github.com/casbin/gorm-adapter/pull/4.patch","issue_url":"https://api.github.com/repos/casbin/gorm-adapter/issues/4","number":4,"state":"open","locked":false,"title":"Compatible with sqlite3","user":{"login":"maranqz","id":3991984,"avatar_url":"https://avatars3.githubusercontent.com/u/3991984?v=4","gravatar_id":"","url":"https://api.github.com/users/maranqz","html_url":"https://github.com/maranqz","followers_url":"https://api.github.com/users/maranqz/followers","following_url":"https://api.github.com/users/maranqz/following{/other_user}","gists_url":"https://api.github.com/users/maranqz/gists{/gist_id}","starred_url":"https://api.github.com/users/maranqz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maranqz/subscriptions","organizations_url":"https://api.github.com/users/maranqz/orgs","repos_url":"https://api.github.com/users/maranqz/repos","events_url":"https://api.github.com/users/maranqz/events{/privacy}","received_events_url":"https://api.github.com/users/maranqz/received_events","type":"User","site_admin":false},"body":"I create new adapter.\r\n```\r\ngormadapter.NewAdapter(\"sqlite3\", \"assets/database.db\")\r\n```\r\nAfter i get panic `near \"DATABASE\": syntax error`. I think it's happened because connection string connect to database and not server.\r\nI change https://github.com/casbin/gorm-adapter/blob/8e3239544c1cf4bab113bd2311d8d0842086abe8/adapter.go#L101\r\nto `if a.driverName != \"sqlite3\"` and all is worked.","created_at":"2017-10-06T09:21:58Z","updated_at":"2017-10-06T09:21:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/casbin/gorm-adapter/pulls/4/commits","review_comments_url":"https://api.github.com/repos/casbin/gorm-adapter/pulls/4/comments","review_comment_url":"https://api.github.com/repos/casbin/gorm-adapter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/casbin/gorm-adapter/issues/4/comments","statuses_url":"https://api.github.com/repos/casbin/gorm-adapter/statuses/2b25d81f7770fd9e7b162a58d7419b1366cc43a9","head":{"label":"maranqz:master","ref":"master","sha":"2b25d81f7770fd9e7b162a58d7419b1366cc43a9","user":{"login":"maranqz","id":3991984,"avatar_url":"https://avatars3.githubusercontent.com/u/3991984?v=4","gravatar_id":"","url":"https://api.github.com/users/maranqz","html_url":"https://github.com/maranqz","followers_url":"https://api.github.com/users/maranqz/followers","following_url":"https://api.github.com/users/maranqz/following{/other_user}","gists_url":"https://api.github.com/users/maranqz/gists{/gist_id}","starred_url":"https://api.github.com/users/maranqz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maranqz/subscriptions","organizations_url":"https://api.github.com/users/maranqz/orgs","repos_url":"https://api.github.com/users/maranqz/repos","events_url":"https://api.github.com/users/maranqz/events{/privacy}","received_events_url":"https://api.github.com/users/maranqz/received_events","type":"User","site_admin":false},"repo":{"id":105986271,"name":"gorm-adapter","full_name":"maranqz/gorm-adapter","owner":{"login":"maranqz","id":3991984,"avatar_url":"https://avatars3.githubusercontent.com/u/3991984?v=4","gravatar_id":"","url":"https://api.github.com/users/maranqz","html_url":"https://github.com/maranqz","followers_url":"https://api.github.com/users/maranqz/followers","following_url":"https://api.github.com/users/maranqz/following{/other_user}","gists_url":"https://api.github.com/users/maranqz/gists{/gist_id}","starred_url":"https://api.github.com/users/maranqz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maranqz/subscriptions","organizations_url":"https://api.github.com/users/maranqz/orgs","repos_url":"https://api.github.com/users/maranqz/repos","events_url":"https://api.github.com/users/maranqz/events{/privacy}","received_events_url":"https://api.github.com/users/maranqz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maranqz/gorm-adapter","description":"Gorm adapter for Casbin","fork":true,"url":"https://api.github.com/repos/maranqz/gorm-adapter","forks_url":"https://api.github.com/repos/maranqz/gorm-adapter/forks","keys_url":"https://api.github.com/repos/maranqz/gorm-adapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maranqz/gorm-adapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maranqz/gorm-adapter/teams","hooks_url":"https://api.github.com/repos/maranqz/gorm-adapter/hooks","issue_events_url":"https://api.github.com/repos/maranqz/gorm-adapter/issues/events{/number}","events_url":"https://api.github.com/repos/maranqz/gorm-adapter/events","assignees_url":"https://api.github.com/repos/maranqz/gorm-adapter/assignees{/user}","branches_url":"https://api.github.com/repos/maranqz/gorm-adapter/branches{/branch}","tags_url":"https://api.github.com/repos/maranqz/gorm-adapter/tags","blobs_url":"https://api.github.com/repos/maranqz/gorm-adapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maranqz/gorm-adapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maranqz/gorm-adapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/maranqz/gorm-adapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maranqz/gorm-adapter/statuses/{sha}","languages_url":"https://api.github.com/repos/maranqz/gorm-adapter/languages","stargazers_url":"https://api.github.com/repos/maranqz/gorm-adapter/stargazers","contributors_url":"https://api.github.com/repos/maranqz/gorm-adapter/contributors","subscribers_url":"https://api.github.com/repos/maranqz/gorm-adapter/subscribers","subscription_url":"https://api.github.com/repos/maranqz/gorm-adapter/subscription","commits_url":"https://api.github.com/repos/maranqz/gorm-adapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/maranqz/gorm-adapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/maranqz/gorm-adapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/maranqz/gorm-adapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/maranqz/gorm-adapter/contents/{+path}","compare_url":"https://api.github.com/repos/maranqz/gorm-adapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maranqz/gorm-adapter/merges","archive_url":"https://api.github.com/repos/maranqz/gorm-adapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maranqz/gorm-adapter/downloads","issues_url":"https://api.github.com/repos/maranqz/gorm-adapter/issues{/number}","pulls_url":"https://api.github.com/repos/maranqz/gorm-adapter/pulls{/number}","milestones_url":"https://api.github.com/repos/maranqz/gorm-adapter/milestones{/number}","notifications_url":"https://api.github.com/repos/maranqz/gorm-adapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maranqz/gorm-adapter/labels{/name}","releases_url":"https://api.github.com/repos/maranqz/gorm-adapter/releases{/id}","deployments_url":"https://api.github.com/repos/maranqz/gorm-adapter/deployments","created_at":"2017-10-06T09:11:32Z","updated_at":"2017-10-06T09:11:34Z","pushed_at":"2017-10-06T09:16:02Z","git_url":"git://github.com/maranqz/gorm-adapter.git","ssh_url":"git@github.com:maranqz/gorm-adapter.git","clone_url":"https://github.com/maranqz/gorm-adapter.git","svn_url":"https://github.com/maranqz/gorm-adapter","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"casbin:master","ref":"master","sha":"8e3239544c1cf4bab113bd2311d8d0842086abe8","user":{"login":"casbin","id":27810343,"avatar_url":"https://avatars0.githubusercontent.com/u/27810343?v=4","gravatar_id":"","url":"https://api.github.com/users/casbin","html_url":"https://github.com/casbin","followers_url":"https://api.github.com/users/casbin/followers","following_url":"https://api.github.com/users/casbin/following{/other_user}","gists_url":"https://api.github.com/users/casbin/gists{/gist_id}","starred_url":"https://api.github.com/users/casbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casbin/subscriptions","organizations_url":"https://api.github.com/users/casbin/orgs","repos_url":"https://api.github.com/users/casbin/repos","events_url":"https://api.github.com/users/casbin/events{/privacy}","received_events_url":"https://api.github.com/users/casbin/received_events","type":"Organization","site_admin":false},"repo":{"id":98703066,"name":"gorm-adapter","full_name":"casbin/gorm-adapter","owner":{"login":"casbin","id":27810343,"avatar_url":"https://avatars0.githubusercontent.com/u/27810343?v=4","gravatar_id":"","url":"https://api.github.com/users/casbin","html_url":"https://github.com/casbin","followers_url":"https://api.github.com/users/casbin/followers","following_url":"https://api.github.com/users/casbin/following{/other_user}","gists_url":"https://api.github.com/users/casbin/gists{/gist_id}","starred_url":"https://api.github.com/users/casbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casbin/subscriptions","organizations_url":"https://api.github.com/users/casbin/orgs","repos_url":"https://api.github.com/users/casbin/repos","events_url":"https://api.github.com/users/casbin/events{/privacy}","received_events_url":"https://api.github.com/users/casbin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/casbin/gorm-adapter","description":"Gorm adapter for Casbin","fork":false,"url":"https://api.github.com/repos/casbin/gorm-adapter","forks_url":"https://api.github.com/repos/casbin/gorm-adapter/forks","keys_url":"https://api.github.com/repos/casbin/gorm-adapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casbin/gorm-adapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casbin/gorm-adapter/teams","hooks_url":"https://api.github.com/repos/casbin/gorm-adapter/hooks","issue_events_url":"https://api.github.com/repos/casbin/gorm-adapter/issues/events{/number}","events_url":"https://api.github.com/repos/casbin/gorm-adapter/events","assignees_url":"https://api.github.com/repos/casbin/gorm-adapter/assignees{/user}","branches_url":"https://api.github.com/repos/casbin/gorm-adapter/branches{/branch}","tags_url":"https://api.github.com/repos/casbin/gorm-adapter/tags","blobs_url":"https://api.github.com/repos/casbin/gorm-adapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casbin/gorm-adapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casbin/gorm-adapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/casbin/gorm-adapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casbin/gorm-adapter/statuses/{sha}","languages_url":"https://api.github.com/repos/casbin/gorm-adapter/languages","stargazers_url":"https://api.github.com/repos/casbin/gorm-adapter/stargazers","contributors_url":"https://api.github.com/repos/casbin/gorm-adapter/contributors","subscribers_url":"https://api.github.com/repos/casbin/gorm-adapter/subscribers","subscription_url":"https://api.github.com/repos/casbin/gorm-adapter/subscription","commits_url":"https://api.github.com/repos/casbin/gorm-adapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/casbin/gorm-adapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/casbin/gorm-adapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/casbin/gorm-adapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/casbin/gorm-adapter/contents/{+path}","compare_url":"https://api.github.com/repos/casbin/gorm-adapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casbin/gorm-adapter/merges","archive_url":"https://api.github.com/repos/casbin/gorm-adapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casbin/gorm-adapter/downloads","issues_url":"https://api.github.com/repos/casbin/gorm-adapter/issues{/number}","pulls_url":"https://api.github.com/repos/casbin/gorm-adapter/pulls{/number}","milestones_url":"https://api.github.com/repos/casbin/gorm-adapter/milestones{/number}","notifications_url":"https://api.github.com/repos/casbin/gorm-adapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casbin/gorm-adapter/labels{/name}","releases_url":"https://api.github.com/repos/casbin/gorm-adapter/releases{/id}","deployments_url":"https://api.github.com/repos/casbin/gorm-adapter/deployments","created_at":"2017-07-29T02:34:31Z","updated_at":"2017-10-03T11:35:26Z","pushed_at":"2017-09-08T15:15:45Z","git_url":"git://github.com/casbin/gorm-adapter.git","ssh_url":"git@github.com:casbin/gorm-adapter.git","clone_url":"https://github.com/casbin/gorm-adapter.git","svn_url":"https://github.com/casbin/gorm-adapter","homepage":null,"size":12,"stargazers_count":62,"watchers_count":62,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/casbin/gorm-adapter/pulls/4"},"html":{"href":"https://github.com/casbin/gorm-adapter/pull/4"},"issue":{"href":"https://api.github.com/repos/casbin/gorm-adapter/issues/4"},"comments":{"href":"https://api.github.com/repos/casbin/gorm-adapter/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/casbin/gorm-adapter/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/casbin/gorm-adapter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/casbin/gorm-adapter/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/casbin/gorm-adapter/statuses/2b25d81f7770fd9e7b162a58d7419b1366cc43a9"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"maranqz"}}