Is it true that SQLite does not support remote access as it does not support network functions? If so, is there a workaround for this?
Would be nice to remotely retrieve data and process it.
Frank
Results 1 to 10 of 21
Thread: Remote access of SQLite database
-
2009-07-23, 23:58 #1
Remote access of SQLite database
1xTouch, 1xSB3, 1xDuet, 3xRadio, Synology 412+ NAS, Devialet 120, Audio Physic Tempo 25 speakers
-
2009-07-24, 02:17 #2
Maybe one of these alternatives would work ?
http://www.sqlite.org/cvstrac/wiki?p=SqliteNetwork
The easiest is probably to share the directory where the squeezecenter.db file is stored. I'm not sure if you'll get into trouble if you modify the squeezecenter.db while SqueezeCenter is connected to it, to be safe it's probably a good idea to shutdown SqueezeCenter before you do any modifications.
If you just want to be able to run a SQL statement from a remote machine, you can always try toe Database Query plugin. It's only available as a beta version for SQLite yet, see this thread for more information:
http://forums.slimdevices.com/showthread.php?t=65439Erland Isaksson (My homepage)
Lead platform developer of ickStream Music Platform - A world of music at your fingertips
(Also developer of many plugins/applets)
-
2009-07-24, 04:40 #3
- Join Date
- Mar 2006
- Location
- NYC
- Posts
- 1,254
SilverRS8, I noticed that moose "first" copies the SQLite.db file to the moose folder (of the client PC) when an update is required (after a scan) to avoid any access conflicts with the running SC Server. One issue I found with this approach is that one has to share the cache folder to access the active .db file (not a fan of putting any critical data in the cache folder)... but when one clears the cache via the SC Control Panel the cache folder is deleted and the folder share is lost.
-
2009-07-24, 10:08 #4
Sigh. One of the reasons why I loved the MySQL versions ...
Moonbase: The Problem Solver
-
2009-07-24, 11:44 #5
Remote access of SQLite database
>not a fan of putting any critical data in the cache folder
Neither am I. Squeezebox Server is at a bit of a mess with various types of files and where they get written.
Normal users don't need to know and shouldn't care, but that don't make it right!
-
2009-07-24, 22:15 #6
-
2009-07-27, 00:37 #7
Remote access of SQLite database
> Neither am I. Squeezebox Server is at a bit of a mess with various
> types of files and where they get written.
What should be where?
--
Michael
-
2009-07-27, 04:40 #8
[QUOTE=mherger;443568What should be where?[/QUOTE]
There are things in the cache folder that are user-visible, not transitory behind the scenes to the app. eg. Extension Downloader installed plugins.
There are things in the user prefs folder that are not preferences, eg. the current playlist of each player.
Last time I did an install, the default Playlist folder was a sub-directory in the installation folder (this may have changed - it was some time ago!).
-
2009-07-27, 05:25 #9
Remote access of SQLite database
>> There are things in the cache folder that are user-visible, not
>> transitory behind the scenes to the app. eg. Extension Downloader
>> installed plugins.
The problem is we're restricted in where we are allowed to write. This
isn't a pref neither. And we can't write to the plugins folder. So what
would you suggest?
>> There are things in the user prefs folder that are not preferences, eg.
>> the current playlist of each player.
It used to be in cache - which you wouldn't like neither. What would you
suggest?
>> Last time I did an install, the default Playlist folder was a
>> sub-directory in the installation folder (this may have changed - it was
>> some time ago!).
What OS? This sounds like an awful fallback from very old times. In most
circumstances SC wouldn't even be able to even create that folder (Windows
XP+, OSX, Linux installed from package).
--
Michael
-
2009-07-27, 05:47 #10
- Join Date
- Mar 2006
- Location
- NYC
- Posts
- 1,254
I'm probably missing something obvious, but currently there are three places where plugins are installed. Why not have a single folder called Plugins with subfolders for the Default SC Plugins, the user Installed Plugins and the Extension Download Plugins. What's the logic for having plugins code in three different places? If security is the motive, then the user installed plugins should also be installed in the cache folder. If the cache is cleared the plugins installed via Extension Downloader need to be replaced. Clearing the Cache should not remove installed components by default. The SC downloaded Updates should not be installed there either as this is a volatile folder. If I clear the cache because of a server crash and find that after a restart the SC code is somehow corrupted... I have to download the installation executable again. I also find that the clear cache function of the SC Control Panel should not delete the actual folder, but its content. It might be necessary to share the cache folder to access the active .db file. Having to recreate the share is a pain. A work around for this issue could be to have the clear cache function refined to allow users to delete "all" or "selected" content in the cache. This should shorten the startup time of the server if one needs to clear some specific files that exist in the cache and not the whole kid and kaboodle.