Create a New Database

Everything, that fits not well into other forums - Questions, Talk, Beta-Versions ...
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
OnezerO
Posts: 5
Joined: 3. Mar 06, 23:32
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Create a New Database

Postby OnezerO » 31. Jul 07, 04:02

Can anyone instruct me on how to create a new database? I currently have all of my album collection in one large database and what I would like to do is create several new databases based on my playlists. This way I can use the commandline to load a new database into silverjuke while it is running.

I have been able to successfully use the "open" command to load a playlist, but this method also enques all of the tracks and reverts to the "Full" database when you click on any search letter. I want to be able to load a new database with no tracks enqued and not have acess to the full database.

Thank you in advance for any responses. If anyone is curious why I need to do this please ask.

User avatar
OnezerO
Posts: 5
Joined: 3. Mar 06, 23:32
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Create a New Database

Postby OnezerO » 1. Aug 07, 05:18

An alternative to creating new databases that contain only the music selections that I want to load into Silverjuke is to write a small menu application to load "Music Selections" into Silverjuke while in KIOSK mode with the search feature turned off.

The reason I want to do this via a script/program is to keep the user interface as clean as possible when choosing a "music selection". I have built a jukebox and the only interface I have is buttons. I do not want the user to use a mouse or keyboard.

Any suggestions or references that would help me to accomplish my goal will be greatly appreciated. Thanks.


OnezerO wrote:
> Can anyone instruct me on how to create a new
> database? I currently have all of my album
> collection in one large database and what I would
> like to do is create several new databases based
> on my playlists. This way I can use the
> commandline to load a new database into
> silverjuke while it is running.
>
> I have been able to successfully use the
> "open" command to load a playlist, but
> this method also enques all of the tracks and
> reverts to the "Full" database when you
> click on any search letter. I want to be able to
> load a new database with no tracks enqued and not
> have acess to the full database.
>
> Thank you in advance for any responses. If anyone
> is curious why I need to do this please ask.

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Create a New Database

Postby Guest » 1. Aug 07, 23:03

Hi onezerO

Please check this link http://forum.silverjuke.net/viewtopic.php?t=28

This way your database is written to a .bin file instead of the registry database. This way it should be possible to use databases "on the fly".

Best regards
Dolce24

Dolce24
Posts: 27
Joined: 19. Jan 06, 19:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Create a New Database

Postby Dolce24 » 1. Aug 07, 23:05

Oops forgot to login earlier.

This way it should be possible to switch between your databases.

User avatar
OnezerO
Posts: 5
Joined: 3. Mar 06, 23:32
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Create a New Database

Postby OnezerO » 1. Aug 07, 23:24

Thank you for your reply.

I had already read the link you referenced which is what gave me the idea of creating separate databases and then just switching between them using the --db=<file> option.

The link has several sections, which one are you referring to specifically; which will allow me to write a database to a .bin file?

However, what I don't know how to do is create a new database based on a playlist.

Thanks again.


Guest wrote:
> Hi onezerO
>
> Please check this link
> http://forum.silverjuke.net/viewtopic.php?t=28
>
> This way your database is written to a .bin file
> instead of the registry database. This way it
> should be possible to use databases "on the
> fly".
>
> Best regards
> Dolce24

Dolce24
Posts: 27
Joined: 19. Jan 06, 19:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Create a New Database

Postby Dolce24 » 2. Aug 07, 22:22

Sorry i meant .ini file I was a bit tired yesterday


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Main Forum”