Commit Graph

548 Commits

Author SHA1 Message Date
Neil O'Toole
a766340382
Pass context to config.Store () 2023-04-22 07:37:07 -06:00
dependabot[bot]
d5b98ea810
Bump github.com/microsoft/go-mssqldb from 0.19.0 to 0.21.0 ()
Bumps [github.com/microsoft/go-mssqldb](https://github.com/microsoft/go-mssqldb) from 0.19.0 to 0.21.0.
- [Release notes](https://github.com/microsoft/go-mssqldb/releases)
- [Changelog](https://github.com/microsoft/go-mssqldb/blob/main/CHANGELOG.md)
- [Commits](https://github.com/microsoft/go-mssqldb/compare/v0.19.0...v0.21.0)

---
updated-dependencies:
- dependency-name: github.com/microsoft/go-mssqldb
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 21:38:56 -06:00
Neil O'Toole
81f631e135
Refactoring ()
* Renamed source.Type to source.DriverType for clarity

* More renaming wrt source.DriverType

* Renamed output.Formatting to output.Printing
2023-04-21 21:36:32 -06:00
neilotoole
45e4af7ad3 README badges 2023-04-21 21:31:59 -06:00
neilotoole
63f921435a README badges 2023-04-21 21:30:03 -06:00
neilotoole
8833acb742 README badges 2023-04-21 21:29:20 -06:00
neilotoole
74aeb1e828 README badges 2023-04-21 21:28:07 -06:00
neilotoole
da38fa9cb0 README badges 2023-04-21 21:27:29 -06:00
Neil O'Toole
e1abaf6c3e
Workflow: add gotestfmt ()
* Workflow: add gotestfmt action
2023-04-21 21:25:01 -06:00
dependabot[bot]
b3daee2df3
Bump github.com/xo/dburl from 0.13.1 to 0.14.2 ()
Bumps [github.com/xo/dburl](https://github.com/xo/dburl) from 0.13.1 to 0.14.2.
- [Release notes](https://github.com/xo/dburl/releases)
- [Commits](https://github.com/xo/dburl/compare/v0.13.1...v0.14.2)

---
updated-dependencies:
- dependency-name: github.com/xo/dburl
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-19 08:12:29 -06:00
neilotoole
c1b71fa68a Renamed testh.OptLongDB to testh.OptLongOpen; added it to other tests. 2023-04-19 08:08:26 -06:00
neilotoole
a6e033d26d Added OptLongDB to TestQuerySQL_Smoke 2023-04-19 07:23:46 -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
2cad9acae9
Update README.md 2023-04-18 18:53:55 -06:00
neilotoole
fe403f4d8f Removed dead comments from go.mod 2023-04-16 07:20:37 -06:00
neilotoole
c28af8e7e0 Update go.mod 2023-04-16 07:18:17 -06:00
neilotoole
b578cffdb5 CHANGELOG.md tidy 2023-04-16 07:16:26 -06:00
dependabot[bot]
3cc7073ab8
Bump github.com/ryboe/q from 1.0.18 to 1.0.19 ()
Bumps [github.com/ryboe/q](https://github.com/ryboe/q) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/ryboe/q/releases)
- [Commits](https://github.com/ryboe/q/compare/v1.0.18...v1.0.19)

---
updated-dependencies:
- dependency-name: github.com/ryboe/q
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-16 07:14:49 -06:00
dependabot[bot]
91897d0647
Bump golang.org/x/mod from 0.9.0 to 0.10.0 ()
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-16 07:14:33 -06:00
dependabot[bot]
307c68b1e8
Bump github.com/samber/lo from 1.37.0 to 1.38.1 ()
Bumps [github.com/samber/lo](https://github.com/samber/lo) from 1.37.0 to 1.38.1.
- [Release notes](https://github.com/samber/lo/releases)
- [Changelog](https://github.com/samber/lo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/samber/lo/compare/v1.37.0...v1.38.1)

---
updated-dependencies:
- dependency-name: github.com/samber/lo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-16 07:13:22 -06:00
neilotoole
1329c6b09b Scoop update for sq version v0.33.0 2023-04-15 17:00:20 -06:00
Neil O'Toole
958d509088
Source groups ()
* 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
395b6694ff Scoop update for sq version v0.32.0 2023-04-09 19:44:22 -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
ebb88b3a44
CSV empty string now treated as NULL () 2023-04-09 19:29:13 -06:00
neilotoole
4a6aeceb0d workflow: use actions/setup-go@v4 (caching enabled by default) 2023-04-09 08:48:46 -06:00
neilotoole
fdda53f298 workflow: use actions/setup-go@v5 (caching enabled by default) 2023-04-09 08:45:09 -06:00
Neil O'Toole
ad23d5c116
Auto-detect CSV headers ()
* 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
Neil O'Toole
46eacbb0ba
Update issue templates 2023-04-08 15:02:51 -06:00
neilotoole
150dfc01a9 Fixed some tests that had neglected to drop tables they had created 2023-04-08 14:58:10 -06:00
neilotoole
7b3041f880 Scoop update for sq version v0.31.0 2023-04-08 13:29:37 -06:00
neilotoole
8f0d8d0874 Use --md instead of --markdown 2023-04-08 13:19:06 -06:00
Neil O'Toole
54a0155ed6
Deal with lots of connections, especially for sq inspect. ()
* wip: deal with lots of connections

* Clean up TestDatabase_SourceMetadata_concurrent

* Fixed error message
2023-04-08 12:09:27 -06:00
Neil O'Toole
256d9c1ab6
go.mod: upgrade to jackc/pgx v5 ()
* jackc/pgx upgrade

* jackc/pgx upgrade
2023-04-08 06:39:06 -06:00
Neil O'Toole
9a1c6a7d09
Feature/173 args ()
- Implement --arg feature
- Refactor sqlbuilder package (now called "render").
- Bug fixes, especially around expressions.
2023-04-07 02:00:49 -06:00
Neil O'Toole
801dd69218
go.mod: Upgraded spf13/cobra v1.6.1 --> v1.7.0 () 2023-04-06 08:31:28 -06:00
neilotoole
4004f98c9c Update bug report template 2023-04-02 15:40:11 -06:00
Neil O'Toole
93655fe00a
Create pull_request_template.md 2023-04-02 15:28:38 -06:00
Neil O'Toole
bdbb75f3c1
Update issue templates 2023-04-02 15:21:06 -06:00
Neil O'Toole
9c27e76dac
Create CONTRIBUTING.md 2023-04-02 15:20:38 -06:00
Neil O'Toole
791d41ad1d
Removed dependencies on neilotoole/errgroup in favor of sync/errgroup ()
* Removed dependencies on neilotoole/errgroup in favor of sync/errgroup

* Removed deadcode
2023-04-02 15:17:15 -06:00
dependabot[bot]
507d7f4063
Bump github.com/fatih/color from 1.13.0 to 1.15.0 ()
Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.13.0 to 1.15.0.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](https://github.com/fatih/color/compare/v1.13.0...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/fatih/color
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-02 15:09:13 -06:00
dependabot[bot]
80aab00409
Bump golang.org/x/mod from 0.7.0 to 0.9.0 ()
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.7.0 to 0.9.0.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.7.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-02 15:05:03 -06:00
dependabot[bot]
884acbde08
Bump github.com/mattn/go-isatty from 0.0.16 to 0.0.18 ()
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.16 to 0.0.18.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.18)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-02 14:53:19 -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
bfd5542f75
Refactor/introduce query context ()
* Moved query_X_test.go from /drivers to /libsq

* Refactor: introduced libsq.QueryContext type
2023-04-01 03:48:24 -06:00