Source:
This guide is based on the following instructions:
https://db.apache.org/derby/integrate/SQuirreL_Derby.html
You need to have java installed on your system.
Check if you have java installed by typing the following command in your terminal:
java -version
If you don't have java installed you can follow the instructions to install Java or OpenJDK.
Follow the instructions found on the homepage.
During the installation you can pick "plugins", make sure to select the "Apache Derby embedded" checkbox.
Download and extract the .zip file from this github, or clone it by using the following command:
git clone https://github.com/youphendriks/viewbridgefiles.git
Launch SQuirrel SQL and click "Drivers" on the far left.
Find "Apache Derby embedded" in the list, right-click on it and click "Modify Driver...".
Click "Add" on the pop-up window and navigate to the location of the .jar file you've downloaded in step 3.
Once added you can click "List Drivers", the bottom field, called "Class Name", should now be filled with text.
Select "org.apache.derby.jdbc.EmbeddedDriver" from the dropdown menu. Then click "Ok".
If everything went correct the "Apache Derby embedded" driver should have a checkmark in front of it.
You are now all set up to start adding and inspecting .bridge files!
First we need to find the directory SQuirreL SQL stores the files. For me it is:
~/.squirrel-sql/plugins/derby
I found out this was the directory by creating an alias with a wierd name and then searching for it on my system.
After establishing the used directory you can start extracting and placing the files. When extracting .bridge file a folder called "database" is found within, these are the files we need.
The resulting file structure for me is the following:
~/.squirrel-sql/plugins/derby/{{bridge-file-name}}
The contents of the directory is the following:
Now that the files are in the correct place, you can add the bridge file to SQuirreL SQL.
In the Alias tab you click the "+" to add an alias.
Now you can give the alias a name. For driver you select "Apache Derby embedded" from the dropdown menu.
The URL is as follows:
jdbc:derby:{{bridge-file-name}};
Replace {{bridge-file-name}} with the name you used for the directory before, and don't forget to add ";" at the end!
You can now test the connection, if it succeeds you can click "connect" to add the alias.
Finding the information you need is dependant on your .bridge file, but it is important to know you should click the "content" tab to view the contents of the .bridge file.
I hope this guide helped! If you run into any problems, let me know in person or create an issue on this github page.