{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/persistent/issues/526","repository_url":"https://api.github.com/repos/yesodweb/persistent","labels_url":"https://api.github.com/repos/yesodweb/persistent/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/persistent/issues/526/comments","events_url":"https://api.github.com/repos/yesodweb/persistent/issues/526/events","html_url":"https://github.com/yesodweb/persistent/issues/526","id":124593635,"number":526,"title":"Connection string using URI in Sqlite","user":{"login":"phonje","id":16517010,"avatar_url":"https://avatars.githubusercontent.com/u/16517010?v=3","gravatar_id":"","url":"https://api.github.com/users/phonje","html_url":"https://github.com/phonje","followers_url":"https://api.github.com/users/phonje/followers","following_url":"https://api.github.com/users/phonje/following{/other_user}","gists_url":"https://api.github.com/users/phonje/gists{/gist_id}","starred_url":"https://api.github.com/users/phonje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phonje/subscriptions","organizations_url":"https://api.github.com/users/phonje/orgs","repos_url":"https://api.github.com/users/phonje/repos","events_url":"https://api.github.com/users/phonje/events{/privacy}","received_events_url":"https://api.github.com/users/phonje/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yesodweb/persistent/labels/Sqlite","name":"Sqlite","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-02T14:35:16Z","updated_at":"2016-04-12T16:51:33Z","closed_at":null,"body":"The connection functions of the persistent-sqlite packege seem not to accept a connection string in URI format. For excample,\r\n\r\n    withSqliteConn \"file:///tmp/test.db\" $ runSqlConn $ do ...\r\n    withSqliteConn \"file:test.db?mode=memory\" $ runSqlConn $ do ...\r\n\r\nIn the former case, the error which can't open the file occurs. In the latter case, the database file of the same name (that is \"file:test.db?mode=memory\") is made in the current directory.\r\n\r\nIs this a bug or a feature?"},"comment":{"url":"https://api.github.com/repos/yesodweb/persistent/issues/comments/209003662","html_url":"https://github.com/yesodweb/persistent/issues/526#issuecomment-209003662","issue_url":"https://api.github.com/repos/yesodweb/persistent/issues/526","id":209003662,"user":{"login":"MaxGabriel","id":1274145,"avatar_url":"https://avatars.githubusercontent.com/u/1274145?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxGabriel","html_url":"https://github.com/MaxGabriel","followers_url":"https://api.github.com/users/MaxGabriel/followers","following_url":"https://api.github.com/users/MaxGabriel/following{/other_user}","gists_url":"https://api.github.com/users/MaxGabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxGabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxGabriel/subscriptions","organizations_url":"https://api.github.com/users/MaxGabriel/orgs","repos_url":"https://api.github.com/users/MaxGabriel/repos","events_url":"https://api.github.com/users/MaxGabriel/events{/privacy}","received_events_url":"https://api.github.com/users/MaxGabriel/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T16:51:33Z","updated_at":"2016-04-12T16:51:33Z","body":"If I understand it right, supporting the query string sounds much better than rewriting parsing code for all potential SQLite configuration options"}}