Skip to content

Releases: hymkor/sqlbless

v0.5.0

19 Apr 05:12

Choose a tag to compare

  • spool writes program version also
  • Support Microsoft SQL Server
  • Fix: login error was not raised until the first SQL was input.

  • spool でプログラムのバージョンも記録するようにした
  • Microsoft SQL Server もサポート
  • 最初の SQL が入力されるまでログインエラーが起きない問題を修正

v0.4.0

17 Apr 14:57

Choose a tag to compare

  • On start, print version, GOOS, GOARCH, and runtime-version at building
  • Add the options
    • -null "string" : set the string represeting NULL
    • -fs "string" : set field separator character instead of comma
    • -crlf : use CRLF for newline
    • -tsv : use TAB as field separator

  • 起動時にバージョン、ビルド時の GOOS,GOARCH,Goのバージョンを表示するようにした
  • オプション追加
    • -null "string" : NULL を表現する文字列を設定
    • -fs "string" : カンマの代わりの区切り文字を指定
    • -crlf : 改行に CRLF を使う
    • -tsv : 区切り文字として TAB を使う

v0.3.0

16 Apr 06:17

Choose a tag to compare

  • select: when data is []byte and valid as utf8, print it as string
  • Implement desc and \d command to display the list of tables with no arguments, or print specifications for the table given as parameter
  • Improve the editor: Print text enclosed with double quotations with magenta
  • Implement history command to print command-line histories
  • Improve spool command
    • With no arguments show the current status instead of stopping spooling
    • Output timestamp into the spooling file for each command
    • Show the current spooling filename on prompt
    • Open as append-mode. Do not truncate existing spooled file.

  • select: フィールドが utf8 として妥当な []byte の時、文字列として表示するようにした
  • desc\d: 引数なしでテーブル一覧表示、引数指定のテーブル仕様表示を実装
  • エディター改良: 二重引用符で囲まれたテキストをマゼンタで表示
  • spool コマンド改良
    • 引数なしがない場合、スプールを終了するのではなく、現在の状況を表示するようにした
    • コマンドごとにタイムスタンプをスプールファイルに出力するようにした
    • プロンプトにスプール中のファイル名を表示
    • アペンドモードでオープンし、既存のファイルを空にしないようにした

v0.2.0

15 Apr 09:43

Choose a tag to compare

  • Insert # at the beginning of each line of spooled SQL ( grep -v "^#" FILENAME can extract only CSV data )
  • Fix for go-readline-ny v0.10.1 ( The return values of Coloring interface methods are changed from int to readline.ColorSequence )
  • Enabled automatic rollback by default on errors except for Oracle (Previously, when using PostgreSQL, we used to roll back. The point is, when the number of supported DBs increases in the future, which one will be the default)
  • On error, contain "(%T)" (type of error) into error message
  • Implemented automatic rollback of a transaction on 'exit', 'quit', or EOF

  • スプールされた SQL の各行の先頭に # を挿入 ( grep -v "^#" FILENAME で、CSVデータのみが取り出せる)
  • go-readline-ny v0.10 のための修正(色付けinterfaceの戻り値が int から readline.ColorSequence 型にかえる対応)
  • Oracle以外ではデフォルトでエラー時に自動でロールバックするようにした(前は PosgreSQL の時はロールバックするようにしていた。要は今後サポート DB が増えたときにどちらがデフォルトにするかという話)
  • エラー時、メッセージに (%T) (エラーの型)を含むようにした
  • exit , quit , EOF で終了する際、トランザクションを自動的にロールバックするようにした。

v0.1.0

10 Apr 13:18

Choose a tag to compare

The first version ( prototype )