issues
search
noborus
/
trdsql
CLI tool that can execute SQL queries on CSV, LTSV, JSON, YAML and TBLN. Can output to various formats.
https://noborus.github.io/trdsql/
MIT License
1.96k
stars
73
forks
source link
Added Context support
#137
Closed
noborus
closed
4 years ago
noborus
commented
4 years ago
Changed the query to database to use with context.
Functions with Context are added to NewTRDSQL, NewImporter and NewExporter.
Changed public Table struct to private importTable struct.
Stopped running db.stmtClose with defer. Since it is not canceled at context.Cancel, it is closed only when it is normal.