Commit Graph

58 Commits

Author SHA1 Message Date
kaidaguerre
2171ce66ba Fix Postgres error "cached plan must not change result type" when dynamic plugin schema changes. Update interactive .inspect and autocomplete based on changes to connection config or dynamic schema updates. Closes #3184. Closes #3185 2023-03-03 18:45:40 +00:00
Binaek Sarkar
bfc951b790 Add extra status updates for interactive start. Closes #3179 2023-03-02 12:57:23 +00:00
Binaek Sarkar
d98df11198 Adds better error messages for db connection timeouts. #3143 2023-02-24 12:01:31 +00:00
kaidaguerre
dd76a500e5 When acquiring a session, if the db schemas have changed, reload SteampipeConfig and re-set required search path. Closes #3137 2023-02-22 14:50:53 +00:00
kaidaguerre
4e13e4e6d1 When a plugin fails to load, remove connections for that plugin from the connection state file. Closes #3124 2023-02-17 18:01:49 +00:00
Binaek Sarkar
d7673ecf08 Adds a mechanism for status updates during initialisation. Closes #3108 2023-02-16 17:09:34 +00:00
Binaek Sarkar
d0ede13d4b Make database start timeout configurable. Closes #3038 2023-02-14 17:33:57 +00:00
Binaek Sarkar
e88d75a692 Fixes issue where '.inspect' was not working for table names with a '.'. Closes #2455 2023-02-13 15:11:37 +00:00
kai
01d53cfb9e Merge branch 'v0.18.x' into main
# Conflicts:
#	pkg/connectionwatcher/connection_watcher.go
2023-02-01 13:23:56 +00:00
Binaek Sarkar
9053d7e121 Fixes issue where extra newline was added to interactive prompt before messages were printed. Closes #3027 2023-01-31 15:59:42 +00:00
Binaek Sarkar
0a14fd8610 Fixes issue where 'search_path' is not getting set from connection config watching in service mode. Closes #3047 2023-01-31 15:55:46 +00:00
kaidaguerre
34bea3d1ef Add support for aggregator connections with dynamic tables. Closes #2886 2023-01-27 19:47:43 +00:00
Binaek Sarkar
5dc46c4e09 Increase database connection timeout and improve the error message if connection failure occurs. Closes #2377 2023-01-18 14:31:26 +00:00
Binaek Sarkar
993259de52 Increase database connection timeout and improve the error message if connection failure occurs. Closes #2377 2023-01-18 14:26:19 +00:00
kaidaguerre
df1c8c404a Fix introspection table creation for check --where and --tag. Closes #3001 2023-01-17 12:52:59 +00:00
kaidaguerre
b59d86c8a9 Fix introspection table creation for check --where and --tag. Closes #3001 2023-01-17 12:47:41 +00:00
dependabot[bot]
bcbbaa2881 [dep][go](deps): Bump github.com/sethvargo/go-retry from 0.1.0 to 0.2.4 (#2875)
* [dep][go](deps): Bump github.com/sethvargo/go-retry from 0.1.0 to 0.2.4

Bumps [github.com/sethvargo/go-retry](https://github.com/sethvargo/go-retry) from 0.1.0 to 0.2.4.
- [Release notes](https://github.com/sethvargo/go-retry/releases)
- [Commits](https://github.com/sethvargo/go-retry/compare/v0.1.0...v0.2.4)

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

Signed-off-by: dependabot[bot] <support@github.com>

* update for new goretry version

* trying with SDK main

* assignment

* updating SDK version

* update usage

* bump up SDK

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Binaek Sarkar <binaek@turbot.com>
2023-01-11 15:29:58 +00:00
kaidaguerre
0a391e9636 Update dashboard states to "initialized", "blocked", "running", "complete", "error", "canceled". Closes #2939 2023-01-04 14:08:56 +00:00
kaidaguerre
e45a47d40e Include nested struct values in introspection tables. Closes #2903 2022-12-21 17:45:31 +00:00
Binaek Sarkar
10bd95e687 Fixes issue where implicit services are not shutting down when the last instance of steampipe exits. Closes #2833 2022-12-12 17:09:58 +00:00
kaidaguerre
dbd1d10fcc Add support for plugin sdk v5, with plugin message stream - support update of dynamic plugin schema based on file events. Closes #2767 2022-11-30 10:50:46 +00:00
Binaek Sarkar
056fa56241 Fixes issue where interactive prompt was not showing timing data for 'json', 'csv' and 'line' outputs. Closes #2699 2022-11-29 10:57:37 +00:00
Binaek Sarkar
d2f8541385 Update the update checker to run asynchronously. Closes #2770 2022-11-25 11:26:50 +00:00
Binaek Sarkar
18a1c51597 Upgrades 'pgx' to v5. Closes #2776 2022-11-23 17:34:21 +00:00
kaidaguerre
fe6365b1ef Remove usage of prepared statements - instead excute sql directly. Wrap with executions in LeafRuns to support runtime dependency resolution. Closes #2789. #2772 2022-11-23 14:11:56 +00:00
kaidaguerre
4f90440d26 Add support for with blocks. Closes #2772 2022-11-21 16:25:51 +00:00
kai
f47d55b2bb Fix steampipe query --timing not outputting timing information if sharing or exporting a snapshot. Closes #2677 2022-11-07 14:05:39 +00:00
kai
7d28c99e27 Fix steampipe dashboard not showing progress when running a single dashboard. Closes #2685 2022-11-07 10:37:34 +00:00
Puskar Basu
7228dedca2 Fix unintuitive errors from steampipe plugin commands when a plugin (version) is missing. Closes #2361 2022-11-03 11:09:45 +00:00
kaidaguerre
59d224711c Fix regression - creating all prepared statements when executing a batch query. When connected to Steampipe cloud, create all prepared statements in a single sql statement to improve performance. Closes #2644. Closes #2650 2022-11-01 22:25:12 +00:00
Binaek Sarkar
4c490f1ecc Fixes issue where the CLI would fail to connect to local service if there are credential files in ~/.postgresql . Closes #1417 2022-10-27 17:46:22 +01:00
kaidaguerre
42c2323eb2 Add query_timeout to workspace profile. Closes #2593
Improve timeout error message.
Remove refreshDbClient call after timeout.
Set default check query timeout to 240sec and query to 0 (no timeout)
2022-10-26 14:53:50 +01:00
François de Metz
b3838186e1 Add a configurable query timeout. Closes #666 2022-10-26 10:09:17 +01:00
kaidaguerre
0e27f38202 Update workspace profile parsing to load options blocks. Include these options values in viper with correct precedence. Closes #2579 2022-10-24 13:58:50 +01:00
Binaek Sarkar
509a5161ae Delete backups directory which was committed by mistake 2022-10-19 17:44:22 +05:30
kaidaguerre
1e3db26e8f Add support for workspace profiles - parse from config and select using --workspace arg. Closes #2510
Add support for implicit workspace. Closes #2514
If snapshot-location is a local file path, copy snapshot instead of uploading. Closes #2550
Do not show snapshot upload status if --progress=false. Closes #2517
Replace --workspace with --snapshot-location. Closes #2512
2022-10-19 13:02:24 +01:00
kaidaguerre
028d46c8ff Revert connection watching min-interval. Remove filewatcher from utils and and use go-kit filewatcher instead. 2022-10-17 22:07:21 +01:00
kaidaguerre
947a113eb3 Reduce the max frequency of connection config changed events to every 4 second. Log refreshConnection output. Closes #2535 (#2537) 2022-10-17 13:25:42 +01:00
kaidaguerre
1dc28f4681 Add --source-snapshot option to dashboard command. Closes #2503. (#2491) 2022-10-11 23:36:27 +01:00
Binaek Sarkar
409e4b3b19 Fixes issue where steampipe requests for firewall exceptions during installation. Closes #2478 2022-10-07 15:04:40 +01:00
Mike Burgess
95de81b4b9 Remove erroneous DB backup files 2022-10-05 17:29:28 +01:00
kaidaguerre
404dd35e21 Update database code to use pgx interface so we can leverage the connection pool hook functions to pre-warm connections. Closes #2422 (#2438)
* Provide feedback for failed prepared statements
* Move error functions to error_helpers
* Make maintenance client retriable
2022-10-05 12:38:57 +01:00
kaidaguerre
e2d12b3fc2 Rationalise postgres configuration. Closes #2471 2022-10-03 14:08:33 +01:00
kaidaguerre
5e0561b8b3 Increase dashboard service startup timeout to 30s. Closes #2434 2022-09-09 13:52:57 +01:00
Puskar Basu
0fc3425b14 Fix initdb failures due to invalid locale. Closes #2368 2022-09-01 16:30:31 +01:00
kaidaguerre
ae9472273d Only create introspection tables if STEAMPIPE_INTROSPECTION env var is set. Closes #2396 2022-08-31 11:08:05 +01:00
kaidaguerre
ffe0ab40c1 Limit connection lifetime in db connection pool. Closes #2375
Limit connection lifetime in db connection pool. Closes #2375

Limit connection lifetime in db connection pool. Closes #2375

Limit connection lifetime in db connection pool. Closes #2375

Limit connection lifetime in db connection pool. Closes #2375
2022-08-25 17:01:49 +01:00
Mike Burgess
48e5192fe5 Add initial directed graph implementation #2249 (#2358) 2022-08-23 15:01:59 +01:00
Nathan Wallace
fe4c93476b Add udt_name to schema query for remote databases closes #2324 2022-08-12 11:52:47 -04:00
kaidaguerre
ca64841eee Disable FDW update message during plugin update. Closes #2312 # 2022-08-09 17:46:25 +01:00