## New Features
+The new features in version 4.1 are nothing.
+
+
The new features in version 4 are listed below:
Special command "-s" - Executing file as script
-: Execute a file as script (JavaScript).
+: Execute a file as script.
This feature can be used instead of a command class.
+ (On version 4.0, only JavaScript was supported.)
Special command "?" - display environment info (not OS ENV)
: Display System Properties. (System.getProperty)
## Changes
+The major changes on version 4.1 are listed below:
+
+Enhance Scripting support
+: On version 4.0, the scripting feature (command "-s") was limited,
+ such as only JavaScript, only by file, and stateless.
+ On version 4.1, it has been improved as follows:
+
+ * Any Script Language (as long as its Script Engine exists)
+ * Parameters As Script
+ * Script Context (global scope bindings)
+
+
+Change the layout of Text Search Panel
+: In version 3.0, the information tree had been added, but the search panel
+ still had been left below the console window.
+ In version 4.1, the search panel has been moved below the status bar
+ of the window.
+
+
The major changes since version 3 are listed below:
Requires Java6 and later
## 新機能
+バージョン4.1で追加された新機能はありません。
+
+
バージョン4の主な新機能は以下のとおりです。
各機能の詳細については、マニュアル(MANUAL_ja.html)をご覧ください。
## 変更点
+バージョン4.1での主な変更は以下のとおりです。
+
+スクリプト機能の強化
+: バージョン4.0では、スクリプト機能("-s"コマンド)は、
+ JavaScriptのみ使用可能、ファイルからだけ実行可能、ステートレス
+ のように限定的でした。
+ バージョン4.1で、スクリプト機能は次のように強化されました。
+
+ * どのスクリプト言語でも使える (スクリプトエンジンに対応していれば)
+ * パラメータをスクリプトとして使える
+ * Script Context の導入 (グローバルスコープバインディング)
+
+
+検索パネルの位置を変更
+: バージョン3.0から、情報ツリーが追加され、そのツリー内も検索が
+ できるようになっているのにも関わらず、検索パネルの位置は
+ テキスト入力欄の下になっていました。
+ バージョン4.1で、検索パネルをステータスバーの上に表示するように
+ 変更しました。
+
+
バージョン3から4への主な変更点は以下のとおりです。
Java6以降のみサポート
<p>In CUI mode, to start edit tool, specifies --edit option.</p>\r
<pre><code># command line\r
$ stew --edit\r
+\r
# running stew\r
> --edit</code></pre>\r
<p>In GUI mode, executes "Edit Connectors" to start edit dialog.</p>\r
<h3 id="load---executes-file-content-as-sql"><a href="#TOC">load - Executes file content as SQL</a></h3>\r
<pre><code>> load [<SQL-file> | <data-file> <table-name> [ HEADER ]]</code></pre>\r
<p>This command executes the SQL read from specified file.</p>\r
-<p>When If a parameter is specified, executes file content as SQL, otherwise, two or more parameters, imports the file as data file. The file format is automatically selected by file extension. *. .csv : CSV format *. .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd) *. otherwise: TSV format</p>\r
+<p>When If a parameter is specified, executes file content as SQL, otherwise, two or more parameters, imports the file as data file. The file format is automatically selected by file extension.</p>\r
+<ul>\r
+<li>.csv : CSV format</li>\r
+<li>.xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)</li>\r
+<li>otherwise: TSV format</li>\r
+</ul>\r
<p>(implementation detail: this is basically same as import command, executes as not batch but executes by record)</p>\r
<h3 id="import---imports-from-file"><a href="#TOC">import - Imports from file</a></h3>\r
<pre><code>import <data-file> <table-name> [ HEADER ]</code></pre>\r
-<p>This command imports from file as data file. The file format is automatically selected by file extension. *. .csv : CSV format *. .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd) *. otherwise: TSV format</p>\r
+<p>This command imports from file as data file. The file format is automatically selected by file extension.</p>\r
+<ul>\r
+<li>.csv : CSV format</li>\r
+<li>.xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)</li>\r
+<li>otherwise: TSV format</li>\r
+</ul>\r
<p>(implementation detail: this is basically same as load command, but uses Statement#addBatch.)</p>\r
<h3 id="export---exports-to-file"><a href="#TOC">export - Exports to file</a></h3>\r
-<p>This command exports result of command to the specified file. The file format is automatically selected by file extension. *. .htm,html : HTML format *. .csv : CSV format *. .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd) *. others: TSV format</p>\r
+<p>This command exports result of command to the specified file. The file format is automatically selected by file extension.</p>\r
+<ul>\r
+<li>.htm,html : HTML format</li>\r
+<li>.csv : CSV format</li>\r
+<li>.xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)</li>\r
+<li>others: TSV format</li>\r
+</ul>\r
<h3 id="time---measures-time-to-execute-sql"><a href="#TOC">time - Measures time to execute SQL</a></h3>\r
<pre><code>> time [<count>] <SQL></code></pre>\r
<p>This command executes specified SQL and measures its execution time.</p>\r
<pre><code>> upload <file> <SQL(UPDATE|INSERT)></code></pre>\r
<p>This command registers a data file to the column that specified by place-holder.</p>\r
<h3 id="wait---waits-for-specified-interval"><a href="#TOC">wait - Waits for specified interval</a></h3>\r
-<pre><code>> wait seconds()</code></pre>\r
-<p>This command waits for the interval that specified number of seconds. It may be useful for executing multiple commands.</p>\r
+<pre><code>> wait seconds</code></pre>\r
+<p>This command waits for the interval that specified number (mixed decimal) of seconds. It may be useful for executing multiple commands.</p>\r
<h2 id="the-gui-mode"><a href="#TOC">The GUI Mode</a></h2>\r
<h3 id="common-behaviors"><a href="#TOC">Common Behaviors</a></h3>\r
<p>Standard commands, "undo", "redo", "cut", "copy", "paste", and "select all", can use in all text components via context menu or shortcut key.</p>\r
# command line
$ stew --edit
+
# running stew
> --edit
When If a parameter is specified, executes file content as SQL,
otherwise, two or more parameters, imports the file as data file.
The file format is automatically selected by file extension.
- *. .csv : CSV format
- *. .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)
- *. otherwise: TSV format
+
+ * .csv : CSV format
+ * .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)
+ * otherwise: TSV format
(implementation detail: this is basically same as import command,
executes as not batch but executes by record)
This command imports from file as data file.
The file format is automatically selected by file extension.
- *. .csv : CSV format
- *. .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)
- *. otherwise: TSV format
+
+ * .csv : CSV format
+ * .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)
+ * otherwise: TSV format
(implementation detail: this is basically same as load command,
but uses Statement#addBatch.)
This command exports result of command to the specified file.
The file format is automatically selected by file extension.
- *. .htm,html : HTML format
- *. .csv : CSV format
- *. .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)
- *. others: TSV format
+
+ * .htm,html : HTML format
+ * .csv : CSV format
+ * .xml : XML format (definition: src/net/argius/stew/io/stew-table.dtd)
+ * others: TSV format
### time - Measures time to execute SQL
### wait - Waits for specified interval
- > wait seconds()
+ > wait seconds
-This command waits for the interval that specified number of seconds.
+This command waits for the interval that specified number (mixed decimal) of seconds.
It may be useful for executing multiple commands.
インストール
リリースパッケージのZIPファイルを適当なディレクトリに展開するだけです。
- 最小限にしたい場合は本体JARファイル(stew.jar)と起動スクリプト(stew.bat or stew.sh)です。
- 起動スクリプトも自前で用意していただくのであれば不要です。
+ 最小限にしたい場合は本体JARファイル(stew.jar)だけ取り出してください。
バージョンアップ
インストールしたファイルの最新版を上書きしてください。
- "connector.properties"はバージョン2以降は互換性がありますので、
+ 接続設定ファイル"connector.properties"はバージョン2以降は互換性がありますので、
移行の際はそのままお使いいただけます。
アンインストール
## 4. 既知の問題
-æ\9b´æ\96°æ¨©é\99\90ã\81®ã\83\81ã\82§ã\83\83ã\82¯ã\81¯ã\80\81æ\9b´æ\96°æ¨©é\99\90の参照権限が無いと正しく判定できないという問題があります。
+æ\9b´æ\96°æ¨©é\99\90ã\81®ã\83\81ã\82§ã\83\83ã\82¯ã\81¯ã\80\81権é\99\90è¨å®\9aè\87ªä½\93の参照権限が無いと正しく判定できないという問題があります。
Look&Feelの実装によっては上手く動作しない機能があるかもしれません。