Skip to content

v0.21.0

Choose a tag to compare

@hymkor hymkor released this 27 Sep 13:37
· 310 commits to master since this release

Changes in v0.21.0 (English)

  • edit command
    • Changed to use placeholders for value specification
    • Modified SQLite3 datetime column updates to normalize values in WHERE clauses according to column type:
      • DATETIME / TIMESTAMP columns → datetime()
      • DATE columns → date()
      • TIME columns → time()
        This ensures updates work regardless of whether ISO8601 strings contain T or Z
    • Aligned behavior with other commands: if the number of affected rows is zero, no transaction is started and the prompt remains at SQL>
    • Removed the behavior where the edit command wrote the pre-edit SELECT results to the spool destination.
      ( The select command continues to output to the spool destination as before. )
  • In command-line input, pressing Enter alone previously did not terminate input unless the last line ended with a semicolon. This has been changed so that if the input line begins with one of the following command names, it is executed immediately without requiring a semicolon.
    • DESC, EDIT, EXIT, HISTORY, HOST, QUIT, REM, SPOOL, START, \D
  • Added the -spool FILENAME option to enable spooling from startup.
  • Added the host command to execute operating system commands.

Changes in v0.21.0 (Japanese)

  • edit コマンド
    • 値の指定にプレースホルダーを利用するよう変更
    • SQLite3 の日時列更新において、列の型に応じて以下の関数で正規化して比較するよう変更
      • DATETIME / TIMESTAMP 列 → datetime()
      • DATE 列 → date()
      • TIME 列 → time()
        この結果、ISO8601 文字列に TZ が含まれていても、含まれていなくても更新できるよう改善
    • 他のコマンドと同様、更新件数が 0 件の場合はトランザクションを開始せず、プロンプトを SQL> のまま維持するように変更
    • edit コマンドで、編集前の SELECT 結果を spool 先に出力していた動作を廃止
      ( select コマンドについては、従来どおり spool 先にも出力する動作を維持 )
  • コマンドライン入力で Enter のみを押下した場合、従来は末尾にセミコロンがなければ入力継続とみなしていたが、入力行が以下のコマンド名で始まる場合は、セミコロンがなくても即時に実行するように変更した。
    • DESC, EDIT, EXIT, HISTORY, HOST, QUIT, REM, SPOOL, START, \D
  • 起動時からスプール可能にする -spool FILENAME オプションを追加。
  • OSコマンドを実行する host コマンドを追加。