SQuirreL SQLedit

This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

 

SQuirreL SQL is a graphical, [multi-platform] Java program that will allow you to view the structure of a JDBC compliant database […​].

 
 -- http://squirrel-sql.sourceforge.net/

Prerequisitesedit

Add Elasticsearch JDBC Driveredit

To add the Elasticsearch JDBC driver, use Windows > View Drivers menu (or Ctrl+Shift+D shortcut):

squirell 1 view drivers

This opens up the Drivers panel on the left. Click on the + sign to create a new driver:

squirell 2 new driver

Select the Extra Class Path tab and Add the JDBC jar. List Drivers to have the Class Name filled-in automatically and name the connection:

squirell 3 add driver

The driver should now appear in the list:

squirell 4 driver list

Add an alias for Elasticsearchedit

Add a new connection or in SQuirelL terminology an alias using the new driver. To do so, select the Aliases panel on the left and click the + sign:

squirell 5 add alias

Name the new alias and select the Elasticsearch driver previously added:

squirell 6 alias props

The setup is completed. Double check it by clicking on Test Connection.

Execute SQL queriesedit

The connection should open automatically (if it has been created before simply click on Connect in the Alias panel). SQuirelL SQL can now issue SQL commands to Elasticsearch:

squirell 7 data