Skip to content

Commit e6185ba

Browse files
committed
README: Update description DMLs, DESC and EDIT
1 parent 9f62e8a commit e6185ba

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ SQL-Bless is the result of that lesson — a tool that values safety over conven
5858
Supported commands
5959
------------------
6060

61-
- `SELECT` / `INSERT` / `UPDATE` / `DELETE`
62-
- `INSERT`, `UPDATE` and `DELETE` begin the transaction automatically.
61+
- `SELECT` / `INSERT` / `UPDATE` / `DELETE` / `MERGE` ... `;`
62+
- `INSERT`, `UPDATE`, `DELETE`, and `MERGE` automatically start a transaction.
63+
- For these commands, input continues across lines until a semicolon (`;`) or the string specified with the `-term` option is entered.
6364
- `COMMIT` / `ROLLBACK`
6465
- `SPOOL`
6566
- `spool FILENAME` .. open FILENAME and write log and output.
@@ -69,12 +70,16 @@ Supported commands
6970
- `START filename`
7071
- Start the SQL script given with filename
7172
- `REM comments`
73+
7274
- `DESC [tablename]` / `\D [tablename]`
73-
- When the tablename is given, show the specification of the the table
74-
- Without the tablename, show the list of tables.
75+
- When a table name is specified, shows the schema of that table.
76+
- If omitted, displays a list of tables.
77+
- In the table list view, the following keys are available:
78+
- `r`: Open the `EDIT` command for the selected table.
79+
- `Enter`: Show the schema of the selected table.
7580
- `HISTORY`
7681
- Show the history of input SQLs
77-
- `EDIT tablename [WHERE conditions...]`
82+
- `EDIT [tablename [WHERE conditions...]]`
7883
- Start an [editor][csvi] to modify the selected records of the table.
7984
- In the editor, these keys are bound.
8085
- `x` or `d`: set NULL to the current cell

README_ja.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ SQL-Bless は、そうした現場での教訓から生まれた、安全で再
5656
サポートコマンド
5757
---------------
5858

59-
- `SELECT` / `INSERT` / `UPDATE` / `DELETE`
59+
- `SELECT` / `INSERT` / `UPDATE` / `DELETE` / `MERGE` ... `;`
6060
- `INSERT`, `UPDATE` , `DELETE` は自動的にトランザクションを開始します
61+
- これらのコマンドは、セミコロン `;`、もしくは `-term string` で指定された文字列があるまで、Enter を押下しても入力が継続します。
6162
- `COMMIT` / `ROLLBACK`
6263
- `SPOOL`
6364
- `spool FILENAME` .. FILENAME を開いて、ログや出力を書き込みます
@@ -68,11 +69,14 @@ SQL-Bless は、そうした現場での教訓から生まれた、安全で再
6869
- ファイル名で指定した SQL スクリプトを実行します。
6970
- `REM comments`
7071
- `DESC [tablename]` / `\D [tablename]`
71-
- テーブル名が指定された場合、そのテーブルの使用を表示します
72+
- テーブル名が指定された場合、そのテーブルのスキーマを表示します
7273
- テーブル名が省略された場合、テーブルの一覧を表示します
74+
- テーブル一覧では以下のキーが拡張されます
75+
- `r`: そのテーブルのデータの編集モードに入ります
76+
- `Enter`: そのテーブルのスキーマを表示します
7377
- `HISTORY`
7478
- 入力履歴を表示します
75-
- `EDIT tablename [WHERE conditions...]`
79+
- `EDIT [tablename [WHERE conditions...]]`
7680
- 選択したテーブルのレコードを修正するため [エディタ][csvi] を起動します
7781
- エディタ中では以下のキーが拡張されます
7882
- `x` or `d`: セルに NULL をセットする

0 commit comments

Comments
 (0)