github noborus/trdsql v0.7.2
v0.7.2: Add analyze option.

latest releases: v1.0.0, v1.0.0-alpha-1, v1.0.0-alpha...
4 years ago

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.

Don't miss a new trdsql release

NewReleases is sending notifications on new releases.