Commit Graph

20 Commits

Author SHA1 Message Date
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 ()
* 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 ()
* Support for --src.schema in commands "slq", "sql", and "inspect"
2023-11-18 17:05:48 -07:00
Neil O'Toole
2f2dfd6e47
: More diff ()
- Implement `sq diff --data`.
2023-05-22 09:08:14 -06:00
Neil O'Toole
1ea24dac4a
: sq diff core ()
* "sq diff" initial implementation

* Refactor "cli" pkg.
2023-05-19 08:24:18 -06:00
Neil O'Toole
3180334c0c
: Config overhaul ()
* 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
e5db7990bc
: Kill RunContext.Log ()
* refactor: RunContext.Log is dead

* Fiddling with options

* Changed default max conns to zero (no limit)

* Linting
2023-04-30 08:18:56 -06:00
Neil O'Toole
5e31da4644
Refactor config options ()
* Refactor config and options.
2023-04-26 09:16:42 -06:00
Neil O'Toole
98b47a2666
- Config, refactoring ()
* refactor: moved cli flags to pkg cli/flag

* testh: add OptLongDB for long-running tests

* implement 'sq config dir'

* legacy dir migration: probably a bad idea

* cleanup

* Refactored SQ_CONFIG and --config

* added yaml writer

* Dialing in tests

* YAML output for 'sq driver ls'

* Significant refactoring of config

* Minor test for ioz

* Rename source.Set to source.Collection

* Cleaning up references to source.Set
2023-04-18 23:28:09 -06:00
Neil O'Toole
3f6157c4c4
Change logging library to slog ()
- Switch to slog logger.
2023-04-02 13:49:45 -06:00
Neil O'Toole
161d6f9ee7
Fix to docs for cmd_sql () 2023-03-15 01:43:48 -06:00
Neil O'Toole
ed9aa38a67
Improvements to source commands ()
* 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
Neil O'Toole
6870327508
Cobra upgrade: includes shell completion work ()
Addressed 
2021-02-22 00:37:00 -07:00
Neil O'Toole
71a4f78e52
--insert now also creates the table () 2021-01-03 19:56:22 -07:00
Neil O'Toole
a92b9abf34
Initial work on a JSON driver ()
* implementation work for json importers

* json driver checkpoint

* working on json.ParseObjectsInArray

* json.ParseObjectsInArray seems to be working

* checkpoint while tidying up ParseObjectsInArray

* more tidy checkpoint

* more tidy checkpoint 2

* tidying up ParseObjectsInArray

* tidy up

* code/docs cleanup

* more cleanup of json driver

* more cleanup of json driver

* flat json import seemingly working

* improvements to json driver

* json writer now prints empty [] for postgres empty tables
2020-10-20 09:05:43 -06:00
Neil O'Toole
0f3bc26f52
JSON driver: initial jsona driver ()
* jsona driver appears to be mostly working

* jsona verified as working

* minor tidy
2020-08-23 20:32:59 -06:00
Neil O'Toole
58ccfc9ded
Json driver; refactoring of core packages ()
* Type Detector refactor

* json driver impl; refactoring of source.Files reader et al

* working on kind detector

* significant switcheroo of packages

* partway throught refactoring Kind

* major package switcheroo for Kind
2020-08-23 04:42:15 -06:00
Neil O'Toole
26abe3eb6d
refactor cli.writers () 2020-08-07 21:06:56 -06:00
Neil O'Toole
fd4ae53f31 codebase refactor 2020-08-06 11:58:47 -06:00