Commit Graph

70 Commits

Author SHA1 Message Date
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