Commit Graph

137 Commits

Author SHA1 Message Date
neilotoole
39ac854920 CHANGELOG: fixed broken link 2023-07-03 10:38:03 -06:00
neilotoole
7cd8e2711c CHANGELOG: fixed broken link 2023-07-03 10:31:52 -06:00
Neil O'Toole
7396aadb9e
#12: multiple joins (#280)
* The query language now supports multiple joins.
2023-07-03 09:34:19 -06:00
Neil O'Toole
1edc02c378
Table alias implemented (#278) 2023-06-25 10:29:24 -06:00
neilotoole
d81c50d687 Changelog for v0.39.1 2023-06-22 11:37:12 -06:00
neilotoole
6a00c29f65 Changelog for v0.39.1 2023-06-22 11:36:39 -06:00
Neil O'Toole
99af5151b4
#263: Enhancements to 'sq version' and 'sq inspect`. (#274)
* Refactor tablew md writer

* wip: cmd inspect -v

* cmd inspect output improved

* cmd inspect tests

* cmd inspect: help text

* sq inspect enhancements
2023-06-22 09:50:12 -06:00
Neil O'Toole
97739da1e1
#263: sq version host info (#271)
* sq version host info

* workflow: update bug_report.md with version instructions
2023-06-21 06:28:15 -06:00
Neil O'Toole
eedc11ec46
#261: jsonw: deadlock occurred when record was large, due to mutex on Flush() call (#262)
* jsonw: deadlock occurred when record was large, due to mutex on Flush() call
2023-06-19 10:55:38 -06:00
neilotoole
955e56e040 Release v0.38.0 2023-06-18 07:17:36 -06:00
neilotoole
cdd94b0f86 Release v0.38.0 2023-06-18 07:15:30 -06:00
Neil O'Toole
2ba633fc2a
#258: Alias can be an arbitrary string. (#259)
* Fixed space issues with expressions

* Alias can now be an arbitrary string

* Alias can now be an arbitrary string (fixed)

* Alias now automatically applied to expressions

* Ignore .run

* Fixed issue with TestRun not logging correctly to testing.T

* Fiddling with sqlite3 temp file closing

* Re-enable tests
2023-06-18 00:05:09 -06:00
Neil O'Toole
44d27207f8
#256: column-only queries (#257)
* Column-only queries
2023-06-17 19:28:11 -06:00
neilotoole
9ebb4c546c CHANGELOG update 2023-06-16 23:31:10 -06:00
neilotoole
a21f3f3c7e v0.37.1 fix for #252 2023-06-15 08:06:08 -06:00
neilotoole
089bfb7cec CHANGELOG for v0.37.0 2023-06-13 11:37:17 -06:00
Neil O'Toole
24b5fafd78
Proprietary functions now require leading underscore (#241) 2023-05-26 21:11:38 -06:00
Neil O'Toole
debb282386
diff: renamed --count flag to --counts as intended (#240)
* diff: renamed --count flag to --counts as intended

* CHANGELOG for v0.36.1
2023-05-26 14:45:08 -06:00
Neil O'Toole
c810d17eec
#229: sq diff ready for beta release (#239)
* sq config edit: fixed glaring bug that prevented editing a source

* Refine sq diff
2023-05-25 21:58:43 -06:00
Neil O'Toole
76d48154e7
#229: Yet more sq diff implementation. (#237)
* sq config edit: fixed glaring bug that prevented editing a source

* Refine sq diff
2023-05-24 17:36:10 -06:00
Neil O'Toole
2f2dfd6e47
#229: More diff (#233)
- Implement `sq diff --data`.
2023-05-22 09:08:14 -06:00
Neil O'Toole
1ea24dac4a
#229: sq diff core (#230)
* "sq diff" initial implementation

* Refactor "cli" pkg.
2023-05-19 08:24:18 -06:00
neilotoole
5b69a7b6ed CHANGELOG update for v0.35.0 2023-05-10 20:25:04 -06:00
Neil O'Toole
12b33d5b49
Implemented yaml record writer (#226) 2023-05-10 20:03:45 -06:00
neilotoole
78720bd120 Update CHANGELOG for v0.34.2 2023-05-08 07:41:29 -06:00
neilotoole
7da4e90790 CHANGELOG update for v0.34.1 2023-05-07 07:42:30 -06:00
neilotoole
7b3f9f9dab Doc cleanup 2023-05-07 00:29:42 -06:00
Neil O'Toole
c5cf6c0cc0
#217: Configurable timestamp format (#218)
* Moved time functions from pkg stringz to pkg timez

* Refactor options.Opt

* wip: initial work on configurable time layout

* wip: most printers now respect format.datetime and friends

* Folded pkg timefmt into timez

* Refactor options.Opt; refine options

* Add 'sq config set OPTION --help' mechanism

* Finished completion of OptDateFormatAsNumber and OptTimeFormatAsNumber
2023-05-06 20:36:34 -06:00
Neil O'Toole
964417dba7
Use flag --compact instead of --pretty (#216) 2023-05-05 11:41:22 -06:00
Neil O'Toole
f0aa65791b
#199: More config/options work (#215)
* CHANGELOG text clarification

* Dialing in config/options

* Yet more dialing in of config/options

* Refactor output writers

* YAML output for more commands
2023-05-05 08:32:50 -06:00
neilotoole
e5cf5cd7ef CHANGELOG cleanup 2023-05-03 06:38:10 -06:00
Neil O'Toole
3180334c0c
#199: Config overhaul (#214)
* refactor: partially moved over driver.Tuning params to options

* All knobs moved to options

* sq config edit: now has comments for options

* Major work complete on config/options overhaul

* Major work complete on config/options overhaul

* Updated help text for 'sq version'
2023-05-03 06:36:10 -06:00
Neil O'Toole
a766340382
Pass context to config.Store (#207) 2023-04-22 07:37:07 -06:00
neilotoole
b578cffdb5 CHANGELOG.md tidy 2023-04-16 07:16:26 -06:00
Neil O'Toole
958d509088
Source groups (#198)
* Implemented source groups mechanism.
2023-04-15 16:28:51 -06:00
Neil O'Toole
6acde9e262
Update CHANGELOG.md 2023-04-10 00:02:58 -06:00
neilotoole
5d45ee7eb5 CHANGELOG 2023-04-09 19:36:41 -06:00
neilotoole
8faff8e143 CHANGELOG 2023-04-09 19:34:48 -06:00
neilotoole
a9b74bfc71 CHANGELOG.md for v0.32.0 2023-04-09 19:33:00 -06:00
Neil O'Toole
ad23d5c116
Auto-detect CSV headers (#188)
* wip: initial header detection

* wip: refactored csv driver

* wip: Fixes to kind.Detector

* typo

* Refactor pkg csv files

* Update to changelog

* workflow: now running codacy and codeql on cron, not on push/pr
2023-04-09 08:44:27 -06:00
neilotoole
127ab66404 CHANGELOG.md text 2023-04-08 15:25:43 -06:00
neilotoole
8f0d8d0874 Use --md instead of --markdown 2023-04-08 13:19:06 -06:00
Neil O'Toole
29e33ed2b1
Implement unique / DISTINCT (#165)
- Implemented "unique" function
- Implemented "count_unique" function
2023-03-28 00:48:24 -06:00
neilotoole
ecf791ba87 CHANGELOG update 2023-03-26 20:09:53 -06:00
neilotoole
38f0a5292f CHANGELOG update 2023-03-26 20:09:32 -06:00
Neil O'Toole
d9b56eea8a
Implement groupby() (#161)
* test: slq2sql more test cases; now executes the generated query

* groupby: first test case working against all DBs

* sakila: added sqlserver 2019 source

* groupby: tests for groupby synonyms

* groupby: final touches
2023-03-26 02:01:41 -06:00
neilotoole
f7512c92e0 CHANGELOG formatting 2023-03-25 20:58:43 -06:00
Neil O'Toole
9746f4c1a2
orderby() (#159)
* wip: orderby impl

* Tests passing (note: ast.checkASTIntegrity is disabled)

* ExprNode now rendered via renderSelectorNode

* linting

* CHAGELOG for v0.27.0
2023-03-25 19:20:53 -06:00
Neil O'Toole
a1a89ee9dd
Support table and column names with spaces. (#156)
* sakila: initial test data

* sakila: more test data

* sakila: yet more test data setup

* whitespace cols: now working for sqlite

* grammar cleanup

* whitespace cols: now working inside count() func for sqlite

* whitespace cols: tests mostly passing; begining refactoring

* grammar: refactor handle

* grammar: more refactoring

* grammar: rename selElement to selector

* wip

* all tests passing

* all tests passing

* linting

* driver: implement CurrentSchema for all driver.SQLDriver impls

* driver: tests for AlterTableRename and AlterTableRenameColumn

* undo reformat of SQL

* undo reformat of SQL

* undo reformat of SQL

* undo reformat of SQL
2023-03-22 00:17:34 -06:00
neilotoole
94d7458cd2 CHANGELOG update 2023-03-19 01:52:35 -06:00
Neil O'Toole
db189e55a7
Bug/153 text table long lines (#154)
* text table: fixed long lines padding

* text table: fixed long lines padding
2023-03-19 01:51:05 -06:00
Neil O'Toole
89ba5a04f6
Feature/151 sq add active (#152)
* sq add: Now with --active flag

* sq add: Add test for shorthand -a flag

* sq add: docs update
2023-03-19 00:18:54 -06:00
Neil O'Toole
d3e6f89829
SLQ support for column aliases (#150)
* alias: more early work

* alias: test cases working for sqlite

* alias: SQL builder tests

* alias: func (col expr) aliases now working for SQLite

* linting

* CHANGELOG update

* Docs update

* Docs update

* Rename buildAst() -> buildAST()

* CHANGELOG typo
2023-03-18 22:58:00 -06:00
neilotoole
7987a85957 CHANGELOG update 2023-03-15 01:46:52 -06:00
Neil O'Toole
7148505a84
CSV: check for mismatch field count vs explicitly specified column names (#147)
* csv: check for mismatch field count vs explicitly specified column names

* CHANGELOG update
2023-03-14 23:04:49 -06:00
neilotoole
e41a6bfc9c CHANGELOG update for v0.24.2 2023-03-13 21:52:58 -06:00
Neil O'Toole
143d2a1101
Bug/no active source (#145)
* Clean up misc text

* config: will repair itself if active source is corrupted

* Clean up error handling code

* CHANGELOG update

* Update config tests to allow invalid active source
2023-03-11 21:21:05 -07:00
neilotoole
83d446afdf changelog v0.24.0 2022-12-31 23:04:15 -07:00
Neil O'Toole
82dfd1c703
PIng command json output (#141)
* cmd_ping now respects --json

* ctrl-c doesn't print the cancel message for sq ping

* changelog update
2022-12-31 23:00:07 -07:00
Neil O'Toole
ed9aa38a67
Improvements to source commands (#139)
* Expose source.Set.Data() method

* jsonw.writeJSON cleaned up

* sq add now respects --json

* Location strings are subject to more scrutiny

* Ignore .db files in project dir

* sq add is more restrictive about location string

* source.RedactedLocation now uses 'xxxxx' per stdlib url.URL.Redacted()

* Update changelog for v0.23.0

* typos
2022-12-31 20:17:44 -07:00
neilotoole
cca980d8e0 Adjustment to sq version output 2022-12-30 10:59:52 -07:00
neilotoole
23000ef0ee Adjustment to sq version output 2022-12-30 10:59:27 -07:00
neilotoole
9e0e93f066 changelog v0.21.2 2022-12-30 10:40:19 -07:00
Neil O'Toole
66a8c39844
Improvements to 'sq version' command (#137) 2022-12-30 10:10:56 -07:00
Neil O'Toole
d9693bde17
Feature/manpages (#136)
* manpage support

* Polish up man work

* Set DisableAutoGenTag=true for all commands

* Set DisableAutoGenTag=true for root cmd

* CHANGELOG
2022-12-29 19:02:10 -07:00
neilotoole
9cebdac82b Update changelog for v0.19.0 2022-12-29 15:06:43 -07:00
neilotoole
e2128db962 changelog update 2022-12-25 03:43:01 -07:00
neilotoole
ae4f0c7eee changelog v0.18.0 2022-12-24 21:39:39 -07:00
Neil O'Toole
a1ba6578da
"add" command supports hiding password input (#132)
* renamed cmdFlagChanged to flagChanged

* initial stdin stuff working

* wip: mostly working as expected

* Docs and lots of cleanup

* Mostly docs

* fixed behavior of source.LocationWithPassword, and tests
2022-12-24 21:04:18 -07:00
neilotoole
f8363c7ea3 CHANGELOG update for v0.17.0 2022-12-23 22:58:40 -07:00
neilotoole
b1b03c8606 CHANGELOG update 2022-12-23 09:49:46 -07:00
neilotoole
78b2100c75 CHANGELOG cleanup 2022-12-23 09:40:15 -07:00
neilotoole
9ec1546ab4 saving progress 2022-12-23 09:39:38 -07:00
neilotoole
b481b1bed2 testing markdown link 2022-12-23 09:37:34 -07:00
neilotoole
a588a89c1e testing markdown link 2022-12-23 09:37:04 -07:00
Neil O'Toole
97da9a53a3
'__complete sql @offline_handle' no longer errors, but instead returns the handle (#124)
* '__complete sql @offline_handle' no longer errors, but instead returns the handle

* docs update
2022-12-23 09:32:07 -07:00
Neil O'Toole
5187e8000a
bunch of linting issues fixed (#113) 2022-12-17 16:11:33 -07:00
Neil O'Toole
a108763d6c GH workflow no longer triggers on sq.json (scoop) file update 2022-12-16 22:31:22 -07:00
Neil O'Toole
703f6d2427
Refactored verbose/header flags; inspect cmd now less verbose by default (#111)
* Refactored verbose/header flags; inspect cmd now less verbose by default

* Updated changelog

* README update
2022-12-16 20:46:37 -07:00
Neil O'Toole
240a493ad6 Get rid of dead script files; update CHANGELOG.md 2022-11-20 08:14:53 -07:00
Neil O'Toole
957772902a updated changelog 2021-09-18 21:48:28 -06:00
Neil O'Toole
2d843c9550
MySQL DSN no longer strips driver options (#91)
* MySQL DSN no longer strips driver options
Fixes #90

* CHANGELOG update
2021-03-13 10:08:53 -07:00
Neil O'Toole
57834f2f40 CHANGELOG update 2021-03-07 23:39:49 -07:00
Neil O'Toole
ac1e426223 CHANGELOG update 2021-03-07 23:37:37 -07:00
Neil O'Toole
cf526b839e updated changelog 2021-02-27 07:50:58 -07:00
Neil O'Toole
fef27b0c36 updated changelog 2021-02-27 07:49:00 -07:00
Neil O'Toole
4760798682 added changelog 2021-02-27 07:47:24 -07:00