{"action":"closed","issue":{"url":"https://api.github.com/repos/ribbons/RadioDownloader/issues/203","repository_url":"https://api.github.com/repos/ribbons/RadioDownloader","labels_url":"https://api.github.com/repos/ribbons/RadioDownloader/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/ribbons/RadioDownloader/issues/203/comments","events_url":"https://api.github.com/repos/ribbons/RadioDownloader/issues/203/events","html_url":"https://github.com/ribbons/RadioDownloader/issues/203","id":143199960,"number":203,"title":"Optional StoreConnectionString in Radio Downloader.exe.config","user":{"login":"Boris-Ockham","id":18029059,"avatar_url":"https://avatars.githubusercontent.com/u/18029059?v=3","gravatar_id":"","url":"https://api.github.com/users/Boris-Ockham","html_url":"https://github.com/Boris-Ockham","followers_url":"https://api.github.com/users/Boris-Ockham/followers","following_url":"https://api.github.com/users/Boris-Ockham/following{/other_user}","gists_url":"https://api.github.com/users/Boris-Ockham/gists{/gist_id}","starred_url":"https://api.github.com/users/Boris-Ockham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boris-Ockham/subscriptions","organizations_url":"https://api.github.com/users/Boris-Ockham/orgs","repos_url":"https://api.github.com/users/Boris-Ockham/repos","events_url":"https://api.github.com/users/Boris-Ockham/events{/privacy}","received_events_url":"https://api.github.com/users/Boris-Ockham/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-24T09:44:19Z","updated_at":"2016-03-26T16:29:22Z","closed_at":"2016-03-26T16:29:22Z","body":"Because store.db contains data that should be backed up, it would be helpful if this database could be placed in a different directory than the executable. A way to implement this might be to add a ConnectionString to Settings.settings. In Database.cs the definition of FetchDbConn could be changed as follows:\r\n```C#\r\n        protected internal static SQLiteConnection FetchDbConn()\r\n        {\r\n            if (dbConn == null)\r\n            {\r\n                dbConn = new SQLiteConnection(string.IsNullOrEmpty(Properties.Settings.Default.StoreConnectionString) ? \"Data Source=\" + Path.Combine(FileUtils.GetAppDataFolder(), \"store.db\") + \";Version=3;New=False\" : Properties.Settings.Default.StoreConnectionString);\r\n                dbConn.Open();\r\n            }\r\n\r\n            return dbConn;\r\n        }\r\n\r\n``` "}}