Skip to content

Releases: hymkor/sqlbless

v0.13.0

03 Jun 16:16

Choose a tag to compare

Changes on v0.13.0 (English)

  • Modify the error message of desc with no arguments when no tables exist.
    : table not foundno 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'
  • select and edit: implment -debug instead of -print-type to 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---\n before SQL is displayed.
  • When confirming SQL execution, keys other than y and n are 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.
  • x and d store NULL into the current column
  • Fix: edit could not be started when no data records were selected.

Changes from csvi v1.10

  • Fix: o and O: 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 foundno 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 で区切るようにした
  • 実行の確認で、yn 以外のキーは無視するようにした(要再入力)
  • SQLがエラーになった時、残りの SQL の実行を継続するか(c)、中断するか(a)確認するようにした
  • エディターでのセル入力時に必要最小限の入力チェックを行うようにした
  • xd で NULL をセットできるようにした
  • 1行も存在しない時に data not found となって起動できなかった問題を修正

csvi v1.10.0 での修正

  • oO で入力されたテキストが記入される列がカーソルのあった列ではなく常に先頭列になっていた不具合を修正
  • O でテキストを入力する時の反転セルの行位置がずれている不具合を修正
  • ヘッダー部を変更できないようにした
  • 末尾のデータがない行を作らないようにした

v0.12.0

29 May 06:32

Choose a tag to compare

  • (#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

27 May 11:25

Choose a tag to compare

  • Create new statement: edit TABLENAME [WHERE...] to edit the records of table like a spreadsheet.
  • Fix: The command START did not show error-messages
  • start: do not include the contents of script into history
  • select: Fix: all columns were joined when -tsv was 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

09 May 10:46

Choose a tag to compare

  • Fix: CSV pager was called even when SQL Statement raised error
  • Fix: Escape Sequences were inserted into the spooled file
  • Fix: desc TABLE called pager even when TABLE did not exist
  • Fix: EOF was reported as an error when Ctrl-D or exit is typed.

  • SQL がエラーの時でも CSV ページャが呼ばれる問題を修正
  • エスケープシーケンスがスプールファイルに含まれてしまう問題を修正
  • desc TABLE で TABLE が存在しない時もページャが呼ばれる問題を修正
  • Ctrl-D もしくは exit で終了した時、EOF がエラーとして表示される問題を修正

v0.10.0

08 May 11:52

Choose a tag to compare

  • Implement -auto option (for test and benchmark)
  • Replace the test code written by ExpectLua-Script to PowerShell
  • Use CSVI as a pager for the output of SELECT statement

  • テストやベンチマークのため -auto オプションを実装
  • ExpectLua スクリプトで書かれたテストコードを PowerShell へ置き換えた
  • SELECT文の出力のため、CSVI をページャーとして使用するようにした

image

v0.9.0

04 Sep 07:16

Choose a tag to compare

  • When lines end with ;, Enter-key works as submiting

  • 入力行が ; で終わっていた場合、Enter キーを入力終結として機能するようにした。

v0.8.0

14 May 16:28

Choose a tag to compare

  • Added input completion for some keywords such as SELECT and INSERT with TAB-key

  • TABキーで、SELECT や INPUT といったキーワードの入力補完ができるようになった。

v0.7.1

04 May 03:13

Choose a tag to compare

  • 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

24 Apr 21:10

Choose a tag to compare

  • 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-type that enables to print types of columns output by SELECT for debug )

  • オプション: -f - で標準入力よりスクリプトを読むようにした
  • 標準入力が端末ではない時、 go-readline-ny を使わず、標準入力をシーケンシャルに読むようにした
  • MySQL をサポート
  • (デバッグオプションとして、SELECT結果の各列の型を表示する -print-type を追加)

v0.6.0

22 Apr 02:42

Choose a tag to compare

  • 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 filename and -f filename that execute SQLs in the file. (The terminator of SQL is ;)
  • Implement REM for comments
  • Spool: append ; at the tail of SQL
  • Print Ok after DDL succeeds.

  • (複数行対応していないので)インクリメンタルサーチの Ctrl-S と Ctrl-R を無効化
  • オプション -submit-enter を追加(Enter と Ctrl-Enter を入れ替える)
  • PostgrelSQL のコマンド psql もやっていないようなので、エラー時の自動ロールバックを廃止
  • ファイルの SQL を実行するコマンド START filename とオプション -f filename を実装(SQLの終端子は ; になります)
  • コメント用の REM 文を追加
  • spool 文:SQL の末尾に ; を追加するようにした
  • DDL文が成功したときは Ok を表示するようにした