Commit Graph

158 Commits

Author SHA1 Message Date
Neil O'Toole
99454852f0
db tools preliminary work; --src.schema changes (#392)
- Preliminary work on the (currently hidden) `db` cmds.
- Improvements to `--src.schema`
2024-02-09 09:08:39 -07:00
neilotoole
071d89d393 Disable shell completion tests on windows 2024-01-31 17:39:04 -07:00
neilotoole
5917d2750c Disable shell completion descriptions 2024-01-31 16:09:59 -07:00
Neil O'Toole
039cfdc285
Shell completion improvements (#389)
* Handle shell completion filter by group

* completion: added TestCompleteAllCobraRequestCmds

* completion: added TestCompleteFilterActiveGroup

* Tests are written

* Switched most proj.Abs calls to proj.Rel
2024-01-31 12:25:40 -07:00
Neil O'Toole
c7ab3ed79e
Shell completion fixes (#388)
* Now correctly handling cobra.ShellCompNoDescRequestCmd in cli.ExecuteWith

* wip: partially moved to new 'completion' cmd impl

* More comments clarification

* make fmt

* rename .completions.sh -> .generate-completions.sh

* Deleted unused cli/cmd_completion.go
2024-01-30 23:04:10 -07:00
Neil O'Toole
135318f542
sq fails on first config write (#387)
* Fixed bug with config write on fresh install

* Added test for config write on fresh install
2024-01-29 22:03:03 -07:00
Neil O'Toole
fd070eefd3
More file closing issues (test) (#386)
* Refactored tu.TempDir

* More files fiddling
2024-01-29 19:34:10 -07:00
Neil O'Toole
3f85b236a3
Command help formatting (#383) 2024-01-29 10:34:45 -07:00
Neil O'Toole
6dccb46a61
Clean up config options help text (#382) 2024-01-29 10:12:28 -07:00
Neil O'Toole
d8d5eb34df
Comments cleanup (#381) 2024-01-29 09:43:06 -07:00
Neil O'Toole
4513a361be
Refine mem stats (#380) 2024-01-29 09:02:42 -07:00
Neil O'Toole
90219c9386
Track memory usage (#379) 2024-01-29 08:16:21 -07:00
neilotoole
d7b0880d89 Prep for v0.47.0 2024-01-28 15:16:41 -07:00
Neil O'Toole
181e128a2d
Release wrap up v0.47.0 (#377)
* Misc cleanup pre-release
2024-01-28 14:55:51 -07:00
Neil O'Toole
26f274483c
Bug with filepath for remote file (#375)
* Address bug
2024-01-27 17:01:45 -07:00
Neil O'Toole
f8704d0385
lg functions now show correct call depth (#374)
* lg functions now show correct call depth

* fixed call depth reversed sign
2024-01-27 08:12:02 -07:00
Neil O'Toole
54be3d614b
Linting (#373)
* More linting
2024-01-27 06:43:17 -07:00
Neil O'Toole
7c56377b40
Struct alignment (#369)
* Field alignment
2024-01-27 00:11:24 -07:00
Neil O'Toole
0841e7154f
tu.SkipIssue mechanism (#370)
* tu.SkipIssue mechanism
2024-01-26 22:36:04 -07:00
Neil O'Toole
452a91547c
Better handling of download cache refresh (#366)
* A failed download cache refresh no longer destroys the previous cache.
2024-01-26 15:18:38 -07:00
Neil O'Toole
cf0908abfa
JSON ingest performance (#365)
* Implement json ingestion stmt caching
2024-01-25 09:21:56 -07:00
Neil O'Toole
2898a92983
Refactor sqlmodel pkg (#364)
* Refactor sqlmodel pkg
2024-01-25 00:42:51 -07:00
Neil O'Toole
26f0c9a381
Refactor source.Files (#363)
* Moved `source.Files` to its own package, thus the type is now `files.Files`.
* Moved much of the location functionality from pkg `source` to its own package `location`.
2024-01-24 23:29:55 -07:00
Neil O'Toole
bb4a4edaab
Switch downloads to use streamcache. (#361)
* Switch downloads to use neilotoole/streamcache.
2024-01-24 21:01:24 -07:00
Neil O'Toole
9aa45b1db3
More progress bars (#357)
* More progress bars
2024-01-14 20:56:54 -07:00
Neil O'Toole
db55986980
#307: Ingest cache (#354)
- Support for ingest cache, download cache, and progress bars.
2024-01-14 18:45:34 -07:00
Neil O'Toole
67a30d7129
Better detection of stdin input (#346) 2023-12-06 13:53:24 -07:00
Neil O'Toole
880c817958
Added aliases for cmd inspect flags; added aliases for order_by and group_by (#340) 2023-11-22 11:36:34 -07:00
Neil O'Toole
f85da722ad
#335 decimal type support (#336)
* Now using a dedicated `decimal.Decimal` type instead of float/string.
2023-11-21 14:49:52 -07:00
neilotoole
986faa1dd7 cmd diff help fix 2023-11-20 14:47:19 -07:00
Neil O'Toole
096e209a01
sq inspect now has --schemata and --catalogs modes (#334)
* Add --schemata and --catalogs flags to "sq inspect"
2023-11-20 14:42:38 -07:00
neilotoole
1b99583adc linting 2023-11-20 06:12:41 -07:00
neilotoole
5cd61489ad Docs typo 2023-11-20 00:06:52 -07:00
Neil O'Toole
25b9d87b08
Revert deletion of cmd sql --exec and --query flags (#333)
* Revert deletion of cmd sql --exec and --query flags

* Fixed conflicts
2023-11-20 00:04:23 -07:00
Neil O'Toole
0f9b5e2a75
"sq version" now honors format.datetime option (#330)
* sq version now honors config option format.date

* CHANGELOG update

* sq version now honors config option format.date
2023-11-19 20:28:09 -07:00
Neil O'Toole
2de993acaa
Sort imports using goimports-reviser (#331) 2023-11-19 18:06:36 -07:00
Neil O'Toole
d7fc315028
sq inspect now shows catalog (when outputting in JSON and YAML format) (#329) 2023-11-19 07:21:38 -07:00
neilotoole
a01c3240e7 Disable --exedc and --query flags on cmd sql 2023-11-18 21:37:36 -07:00
neilotoole
781e7ea235 CHANGELOG clarifications 2023-11-18 21:27:38 -07:00
Neil O'Toole
82727b3890
Refactor/rename database to pool (#328)
* Renamed `driver.Database` to `driver.Pool` (and related things)

* workflow: Update tparse version

* workflow: Update golangci-lint version
2023-11-18 19:21:14 -07:00
Neil O'Toole
f07edef14d
Add flag --src.schema (#326)
* Support for --src.schema in commands "slq", "sql", and "inspect"
2023-11-18 17:05:48 -07:00
neilotoole
4b1c4bdaec cmd version: was missing newline in output 2023-08-20 08:50:24 -06:00
Neil O'Toole
611ad30f60
Test ingest Excel file format variants (#303)
* Tests for additional formats

* Tests for ingest Excel file format variants
2023-08-20 07:22:24 -06:00
Neil O'Toole
edc933d897
#200: Feature/200 excel driver (#301)
* Switch to excelize driver
2023-08-16 09:09:50 -06:00
Neil O'Toole
c7bba4dfe4
go1.21: changes to support slog as part of stdlib (#299)
* go1.21: changes to support slog as part of stdlib

* Removed accidentially checked-in line of code

* Fixed minor linting issues; reenable typecheck

* go1.21: switched to stdlib slices pkg
2023-08-12 12:54:14 -06:00
Neil O'Toole
3c4b61b806
#200: Excel date format config (#294)
* Config options to control Excel date/time output format
2023-08-03 23:41:33 -06:00
Neil O'Toole
21c1dea9c4
#200: Switch excel driver for output (#291)
* Switched from xlsxw to excelw for Excel outpt
2023-07-26 22:19:11 -06:00
Neil O'Toole
6ca26f4e4f
Column rename: template now has Alpha field. (#285)
* wip: refactor col name mungeing

* Finished refactoring FieldMeta

* Renamed tpl .AlphaIndex to .Alpha

* wip: debugging source config override

* Source config override passing tests

* CHANGELOG update
2023-07-08 19:34:53 -06:00
Neil O'Toole
9c5836ef1c
#191: XLSX driver auto-detects header row (#284)
* xlsx driver now detects header row.
2023-07-08 09:21:27 -06:00
Neil O'Toole
4ffaae925f
#99: Rename duplicate ingest headers (#283)
* CSV now renames duplicate ingest headers

* Fix broken test

* xlsx ingester now handles duplicate col names

* Update CHANGELOG

* Additional tests for ingest.column.rename

* Removed dead comment in grammar
2023-07-04 11:31:47 -06:00