Commit Graph

80 Commits

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