Releases: hymkor/sqlbless
Releases · hymkor/sqlbless
v0.13.0
Changes on v0.13.0 (English)
- Modify the error message of
descwith no arguments when no tables exist.
: table not found→no tables are found - Change the time format of spooled files:
# (2024-05-30 18:15:52)→### <2024-05-30 18:46:13> ### - Insert blank line before the message
Spooling to '%s' selectandedit: implment-debuginstead of-print-typeto insert the type-information into the header- For types that can store time zones, the time zone is now included in date and time literals
- Support fractional seconds, Oracle TIMESTAMP type, and SQL Server SMALLDATETIME and DATETIMEOFFSET type
Changes of EDIT command
- Executed SQLs are recorded to spooled file now.
- Print
\n---\nbefore SQL is displayed. - When confirming SQL execution, keys other than
yandnare ignored. - When SQL fails, ask whether continue(
c) or abort(a) - Minimal input check is now performed when entering data into cells in the editor.
xanddstore NULL into the current column- Fix:
editcould not be started when no data records were selected.
Changes from csvi v1.10
- Fix:
oandO: inserted column was always the first one of the new line - Fix:
O: the line of cursor is incorrect before new cell text is input - Header can not be modified now.
- Do not create an empty row at the tail
v0.13.0 での変更点 (日本語)
- テーブルが一つもない時の
descコマンドのメッセージを修正
: table not found→no tables are found - スプールファイルの日時フォーマットを変更
# (2024-05-30 18:15:52)→### <2024-05-30 18:46:13> ### Spooling to '%s'というメッセージの前に空行を追加edit&select:-print-typeに かわって-debugを実装。SELECT/EDIT時にヘッダに型情報を載せる- タイムゾーンを格納できる型では、日時のリテラルにタイムゾーンを含めるようにした
- 小数秒、OracleのTIMESTAMP型、SQL ServerのSMALLDATETIME型,DATETIMEOFFSET などをサポート
edit コマンドの修正
- 発行されるSQLもスプールファイルに記録するようにした
- 実行するSQLを表示する前に
\n---\nで区切るようにした - 実行の確認で、
yとn以外のキーは無視するようにした(要再入力) - SQLがエラーになった時、残りの SQL の実行を継続するか(
c)、中断するか(a)確認するようにした - エディターでのセル入力時に必要最小限の入力チェックを行うようにした
xやdで NULL をセットできるようにした- 1行も存在しない時に
data not foundとなって起動できなかった問題を修正
csvi v1.10.0 での修正
oやOで入力されたテキストが記入される列がカーソルのあった列ではなく常に先頭列になっていた不具合を修正Oでテキストを入力する時の反転セルの行位置がずれている不具合を修正- ヘッダー部を変更できないようにした
- 末尾のデータがない行を作らないようにした
v0.12.0
- (#1) Support SQLite3. For windows-386, use "mattn/go-sqlite3" and for others, "glebarez/go-sqlite".
- Fix: error was not displayed even when not supported driver name was given
- (Fixed the problem that the test script was not compatible with the latest specifications and moved it to ./test)
- (#1) SQLite3 をサポート。windows-386向けには "mattn/go-sqlite3" を、他の組合せには "glebarez/go-sqlite" を使うようにした。
- サポートしていないドライバー名が与えられた時、エラーにならない問題を修正
- ( テストスクリプトが最新仕様に対応していなかった点を修正し、./test へ移動 )
Thanks to @emisjerry and @spiegel-im-spiegel for their valuable contributions.
v0.11.0
- Create new statement:
edit TABLENAME [WHERE...]to edit the records of table like a spreadsheet. - Fix: The command
STARTdid not show error-messages start: do not include the contents of script into historyselect: Fix: all columns were joined when-tsvwas specified- (go-multiline-ny) The text before the first Ctrl-P/N is treated as if it were the latest entry in the history not to lose them
- テーブルデータをスプレッド風に編集するコマンド:
edit テーブル名 [where ...]を用意 - START コマンドがエラーメッセージを返さない不具合を修正
- START コマンド用のスクリプトの内容はヒストリに含めないようにした
-tsvオプションを使用すると SELECT の列がすべて連結されてしまう不具合を修正- (go-multiline-ny) Ctrl-P/N を入力する前のテキストを、ヒストリの最新エントリ扱いにして、失なわれないようにした
v0.10.1
- Fix: CSV pager was called even when SQL Statement raised error
- Fix: Escape Sequences were inserted into the spooled file
- Fix:
desc TABLEcalled pager even when TABLE did not exist - Fix: EOF was reported as an error when Ctrl-D or
exitis typed.
- SQL がエラーの時でも CSV ページャが呼ばれる問題を修正
- エスケープシーケンスがスプールファイルに含まれてしまう問題を修正
desc TABLEで TABLE が存在しない時もページャが呼ばれる問題を修正- Ctrl-D もしくは
exitで終了した時、EOF がエラーとして表示される問題を修正
v0.10.0
v0.9.0
v0.8.0
v0.7.1
- Update importing libraries
- go-readline-ny from v0.10.1 to v0.11.2
- go-multiline-ny from v0.6.7 to v0.7.0
- Ctrl-B can move cursor to the end of the previous line when cursor exists at the beginning of the line
- Ctrl-F can move cursor to the beginning of the next line when cursor exists at the end of the line
- インポートしているライブラリを更新
- go-readline-ny from v0.10.1 to v0.11.2
- go-multiline-ny from v0.6.7 to v0.7.0
- 行頭にカーソルがあるとき、← や Ctrl-B でも前の行末にカーソルを移動できるようにした。
- 行末にカーソルがあるとき、→ や Ctrl-F でも次の行頭にカーソルを移動できるようにした。
v0.7.0
- Option
-f -: read a script from STDIN - When STDIN is not a terminal, do not use go-readline-ny and read STDIN sequentially
- Support MySQL
- ( Add debug option
-print-typethat enables to print types of columns output by SELECT for debug )
- オプション:
-f -で標準入力よりスクリプトを読むようにした - 標準入力が端末ではない時、 go-readline-ny を使わず、標準入力をシーケンシャルに読むようにした
- MySQL をサポート
- (デバッグオプションとして、SELECT結果の各列の型を表示する
-print-typeを追加)
v0.6.0
- Disable Ctrl-S and Ctrl-R (incremental search) because they do not support multilines.
- Add the option -submit-enter that swaps Enter and Ctrl-Enter
- Remove automatic-rollback on error because the command psql (PostgreSQL) does not do it
- Implement
START filenameand-f filenamethat execute SQLs in the file. (The terminator of SQL is;) - Implement
REMfor comments - Spool: append
;at the tail of SQL - Print
Okafter DDL succeeds.
- (複数行対応していないので)インクリメンタルサーチの Ctrl-S と Ctrl-R を無効化
- オプション -submit-enter を追加(Enter と Ctrl-Enter を入れ替える)
- PostgrelSQL のコマンド psql もやっていないようなので、エラー時の自動ロールバックを廃止
- ファイルの SQL を実行するコマンド
START filenameとオプション-f filenameを実装(SQLの終端子は;になります) - コメント用の
REM文を追加 spool文:SQL の末尾に;を追加するようにした- DDL文が成功したときは
Okを表示するようにした
