Releases: hymkor/sqlbless
Releases · hymkor/sqlbless
v0.5.0
v0.4.0
- 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
- select: when data is []byte and valid as utf8, print it as string
- Implement
descand\dcommand 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
historycommand to print command-line histories - Improve
spoolcommand- 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
- Insert
#at the beginning of each line of spooled SQL (grep -v "^#" FILENAMEcan extract only CSV data ) - Fix for go-readline-ny v0.10.1 ( The return values of
Coloringinterface methods are changed from int toreadline.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 で終了する際、トランザクションを自動的にロールバックするようにした。