分享
 
 
 

A REVIEW OF SQLEXPLORER PLUG-IN

王朝java/jsp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

Plug-in Overview

SQLExplorer perspective contains the following views: Drivers, Aliases (in a tabbed dialog to the top left), Connections (by itself in the bottom left), SQL Results (again, by itself in the bottom middle), Database Structure View, Connection Info, and SQL History (in the right-hand tabbed panel). The middle of the SQLExplorer perspective is reserved for editors. Note that you enter SQL statements by editing files with the .sql suffix.

To start using SQLExplorer, you need to select your database in the Drivers view. (When it is selected, it will have a red X beside it.) Next, click your right mouse button and select Change Selected Driver. The Modify Driver panel will pop up. Next, you'll need to click on the Extra Class Path tab, click the Add button, and then search and select your JDBC driver's JAR file. Note the JDBC driver name you already be qualified.

To connect to your database, you'll want to set up an Alias that points back to your driver. Select the Alias tab, then click on the new Create New Alias icon. In the New Alias dialog, key the name of your database and set the URL, user name, and password.

The Aliases view displays a list of all database aliases. To connect to that database, select your alias and click the Open menu option. The Connection panel then prompts you to specify a user and password. (The one specified in the Create New Alias will be the default.) Click the OK button, and you should have a connection.

To key database commands, go to the Connections view in the bottom left section. Select the active connection, click the right mouse button, and select New SQL Editor in the pop-up menu. SQLExplorer will then open the SQL editor in the middle of the perspective. The SQL Editor has three icons and the name of the database the SQL editor is associated with. The icons are a running man, a folder, and an eraser. The running man runs the SQL, the folder lets you search for an open a .sql file, and the eraser clears any SQL statements that may be in the editor.

The results of SQL execution is shown in tabbed views in the SQL Results. For instance, if you run a select statement two times, you'd have two tabs, labeled "1" and "2," in the SQL Results view. Note that the SQL Result view shows the retrieved rows with the column name as buttons. A click of the button will sort the rows by that column.

As you'd expect, the contents of an SQL Editor can be saved. Once SQLExplorer is installed, the default editor for files with the .sql suffix will be opened in the SQL Editor.

The SQL History view that appears in the right-hand panel (along with Database Structure view and Connection info) can be quite handy because you can use it to re-execute a statement. To do that, select a statement in the history, click the right mouse button, and select Open in Editor. Then click the running man icon.

The Database Structure View also has a number of convenient features. Besides listing all the tables in your database, you can perform the following:

Open a table-edit GUI.

Generate an SQL select statement for that table and place it in an SQL Editor.

Create a table script (which didn't work on my Postgresql database).

When you select a table, the Database Structure View will also list the columns, indexes, primary keys, foreign keys, and row count for that table.

The Edit Table menu option could be quite handy, but it was not yet implemented in the version of SQLExplorer that I have been using. But you can see how it will work by selecting a table, clicking the right mouse button, and selecting Edit Table Data from the context menu. The Editing panel will pop up with a list of a set of rows from the table. To limit the rows displayed, you can key a where clause. To modify a data element, simply click on that item. The entry will then turn into an modifiable input field. After you change the data, you'll finally get the "Error updating: This method is not yet implemented" message. I suppose they're hoping that a user of SQLExplorer will take it upon himself to implement that feature.

Review

SQLExplorer is a fork of the JFaceDBC project. From what I understand, other forks have turned into commercial products, whereas SQLExplorer is LGPL. SQLExplorer works with Eclipse 3.0.

I tested SQLExplorer 2.2.2 7 on Eclipse 3.0. One problem I have with SQLExplorer is that it doesn't have integrated Eclipse help. A little bit of help would have gone a long way, especially since I had problems figuring out how where to key the SQL statements. I kind of expected a console or something for me to use to key the statements, and I had to stumble on the use of the SQL Editor. But once you understand that the SQL statement are keyed and executed from the SQL Editor -- and that the editor can be launched from an existing file (with a .sql suffix), the New SQL Editor context menu option in the Connections view, from the SQL History view, or from a context pop-up menu of a table selected in the Database Structure View -- you're ready to dance with your database.

I'm giving SQLExplorer a rating of 8.5 (out of 10). SQLExplorer is now a standard plug-in for my Eclipse workspaces. If it had Eclipse help and the completed implementation of features that are already being shipped, I'd give SQLExplorer a 9 or better.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有