Commit Graph

49 Commits

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