Skip to content

Releases: noborus/trdsql

v0.7.6: Fixed error in long line of LTSV

21 May 02:03
a6c56c0
Compare
Choose a tag to compare
  • Fixed error in long line of LTSV.
  • Added -onowrap option. Avoid long column wrapping in at/md.
  • Added _example/writer. Here is an example of Writer.

v0.7.5: Enhanced support for compressed files

06 Mar 23:57
1e48cbd
Compare
Choose a tag to compare

Adds a compressed file type that can run uncompressed(gzip,bz2,zstd,lz4,xz).

Changed to determine compressed file from file signature.

Add an option to compress and output(-oz).

Add option to write output to file (-out).

Guess the output format and compressed file type from the output file name.

Improved usage

Changed usage output to customized instead of flag default.
Improved help messages.

v0.7.4: Add option to quote all for CSV output

04 Feb 03:31
Compare
Choose a tag to compare

Add option for CSV output.

Add option to quote all(-oaq)(resolve #33) .
Add option to specify quote character(-oq).
Add option to set CRLF at the end of line(-ocrlf).

Remove use of encoding/csv, and output CSV in writer.

Output performance was improved.

Improved parsing of function () in WITH clause and FROM clause.

Removed travis.yml and migrated to github actions.

v0.7.3.5: Test prerelease

31 Jan 06:25
Compare
Choose a tag to compare
Pre-release

test prelease

v0.7.3: Added JSONL output format.

27 Dec 11:07
Compare
Choose a tag to compare

Added JSONL output format.

-ojsonl option added.

Add JSONL output format separately from JSON.
JSONL is a JSON format separated by line breaks.
Output can be output line by line, so output starts quickly.
Also, JSONL output requires less memory than JSON output.
resolve #101.

Docker pull allows images to be downloaded.

You can download it with the following command.

docker pull noborus/trdsql

Fixed generate_series (1,10) error in FROM clause

Added check for table name not in list to replace.
Tables that did not successfully import the file
did not need to be replaced in the first place.

Added test

Added test to cmd/.
And then refactoring was performed to modify the behavior.
Run has been changed to a method of cmd.Cli.
-h changed to normal help.
Changed SQL error exit code.

v0.7.2: Add analyze option.

27 Dec 11:08
Compare
Choose a tag to compare

Add -a filename and -A filename options for analysis.
The -a option analyzes the file and prints a list of columns,
sample data, and SQL examples.
The -A option analyzes, but prints only SQL examples.

Added SQL reserved word list. At the time of analysis,
since it is automatically started after reservation,
an example that can be executed as it is will be output.

Replaced "\n" with "\n" in output to tbln format only.
In particular, the raw format could produce unintended output.

Wrap os.Stdin with bufio.NewReader.
There was large data that could be imported successfully in the file
but failed in stdin(when using sqlite3).
Change to use bufio.NewReader to stabilize input from os.Stdin.
(issue #83) Thanks to @jetzerb for this report.

Change TrimLeadingSpace set conditions.
Stop setting TrimLeadingSpace = true when the delimiter is not space.
Setting TrimLeadingSpace to true removes unicode.IsSpace as well as space.
This is not the intended behavior.
(issue #84) Thanks to @jetzerb for this report.

v0.7.1: Fix build failure on windows

22 Sep 03:07
Compare
Choose a tag to compare
Because only Windows failed to build, module was downgraded.

v0.7.0: Fix query table name escaping

22 Sep 02:04
623de79
Compare
Choose a tag to compare

Fix query table name escaping (thanks to @jetzerb ).
Enable command option rather than config.
Fixed INSERT order changing when using bulk insert.
Supported escaped file names.
Renamed from escape to quote.
Fixed a comment to a more appropriate one.
Change to embed version with ldflags.

v0.6.3: Minor problem fixed version

08 Aug 06:16
8db0797
Compare
Choose a tag to compare

Fixed tbln error when using wildcards.
Renamed listTable to TableNames and made it a public function.

v0.6.2: Fixed an issue that causes an error if there is a blank line.

02 Aug 12:49
09ce81c
Compare
Choose a tag to compare

Fixed an issue that causes an error if there is a blank line.
Occurs when using wildcards in tbln files.

Support various types of SliceReader.

Add Dockerfile.