SQuirrel SQL Client: A Front End To Interact With CSQL Database
SQuirrel SQL Client: A Front End To Interact With CSQL Database
1.2. Prerequisites
Before we start talking about the usage of SQuirrel, let’s download and install it in your
machine.
1.2.2. Download
Any of the squirrel-sql-xxxf-install.jar files can be downloaded from
http://squirrel-sql.sourceforge.net/ . At the time of writing this manual, SQuirrel Client’s
version is 2.6.9.
$. ./setupenv.ksh
$cd SQuirrelSQLClient
$java –jar squirrel-sql.jar
After getting this screen, now the job is to create a Driver and Alias in SQuirrel to work
with CSQL databases.
Name: Type in the name you want here for the driver (Example --
CsqlEmbedded)
Example URL: jdbc: csql
Click on ‘Extra
Extra Class Path’ tab and on the ‘Add’ button, Select the
<csql_driver>.jar file, which is present in /csql/install/lib directory
(Illustrated in Figure 2a.)
Return to the ‘Java Classpath’ tab, at the bottom, there is a drop-down box. Paste
the following class name: csql.jdbc.JdbcSqlDriver (Illustrated in Figure 2b.)
Click OK
Name: Type a name of your choice for the alias (In Figure 3. -- it is
CSQLEmbeddedAlias).
Driver: choose the driver that you configured above URL.(it is CsqlEmbedded)
URL: jdbc:csql
Figure 3.
3 Create a New Alias
Now you will see your newly created Alias in the Alias Scrollable list.(In Figure
4)
Double click the Alias that you created (CSQLEmbeddedAlias). A pop-up will
appear
Click on Connect (Figure 4.)
Now it is connected to the CSQL database
To execute SQL queries, select the SQL tab, enter your query, select the query and click
on the running-man icon. You will see the results of your SQL statements in the resulting
pane (Figure 6.)