Commit Graph

374 Commits

Author SHA1 Message Date
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 (#190) 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 (#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
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. (#186)
* 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 (#184)
* jackc/pgx upgrade

* jackc/pgx upgrade
2023-04-08 06:39:06 -06:00
Neil O'Toole
9a1c6a7d09
Feature/173 args (#183)
- 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 (#182) 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 (#176)
* 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 (#166)
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 (#167)
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 (#170)
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 (#175)
- Switch to slog logger.
2023-04-02 13:49:45 -06:00
Neil O'Toole
bfd5542f75
Refactor/introduce query context (#174)
* Moved query_X_test.go from /drivers to /libsq

* Refactor: introduced libsq.QueryContext type
2023-04-01 03:48:24 -06:00
Neil O'Toole
8d47ef806d
go1.20 upgrade; lots of linting (#172) 2023-04-01 02:38:32 -06:00
Neil O'Toole
6ad4a907cc
Create dependabot.yml 2023-03-29 19:24:59 -06:00
Neil O'Toole
dd12c8caf4
Create SECURITY.md 2023-03-29 19:15:32 -06:00
neilotoole
c7319486cb Scoop update for sq version v0.30.0 2023-03-28 01:00:33 -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
8553197e9a Scoop update for sq version v0.29.0 2023-03-26 20:24:49 -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
fac3a27d7b
group_by() function (#163)
- `group_by()` now accepts function as argument.
- Refactored grammar.
- Broad improvements to function implementation.
2023-03-26 20:03:40 -06:00
neilotoole
0db02b533d Scoop update for sq version v0.28.0 2023-03-26 02:14:15 -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
8c83f0df3a workflow: tweak .generate-changelog-delta.sh 2023-03-25 20:59:33 -06:00
neilotoole
f7512c92e0 CHANGELOG formatting 2023-03-25 20:58:43 -06:00
neilotoole
b899cf2bc8 workflow: fiddling with custom release notes 2023-03-25 20:47:29 -06:00
neilotoole
e72c0978f4 workflow: should now publish custom release notes to GH releases 2023-03-25 20:25:15 -06:00
neilotoole
d8993c9a30 Scoop update for sq version v0.27.0 2023-03-25 19:33:29 -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
neilotoole
d48adeed2e Scoop update for sq version v0.26.0 2023-03-22 00:28:34 -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
63127eb3c6 Scoop update for sq version v0.25.1 2023-03-19 02:02:21 -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
neilotoole
35f11b32c1 Scoop update for sq version v0.25.0 2023-03-19 00:31:35 -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