Commit Graph

43 Commits

Author SHA1 Message Date
Puskar Basu
394963a520 Revert "initial snapshot refactoring"
This reverts commit 924682ac8c3839147507ba08425fb4e96f6218b8.
2024-09-27 18:13:12 +05:30
Puskar Basu
14299b2c5d Revert "remove use of snapshotRequired"
This reverts commit a5ee02b5cd08876471d5646a5cb53f7ba74810e0.
2024-09-27 18:13:12 +05:30
kai
d20cae491c remove use of snapshotRequired
comment out non compiling code for now
2024-09-27 18:13:12 +05:30
Puskar Basu
2049a66719 initial snapshot refactoring 2024-09-27 18:13:12 +05:30
Puskar Basu
8619e463f0 remove variable cmd 2024-09-27 18:13:12 +05:30
Puskar Basu
c6b8c835ab Update query JSON output to be consistent across pipelings - also handle duplicate column names. Closes #4317 2024-09-02 12:14:53 +01:00
Meet Rajesh Gor
8234b9b92e Fix: show scan info only when timing config is verbose (#4315) 2024-06-26 18:57:18 +05:30
kai
856f488b10 Update CHANGELOG
Add omitempty to `Metadata` in JSON query output
2024-05-24 15:45:36 +01:00
kaidaguerre
d136229e47 Query command should support legacy 'true' and 'false' for --timing flag. Closes #4282 2024-05-23 17:43:30 +01:00
kai
23b3d66ffe Update FDW to 1.11.1 to fix bad Linux Arm build. Closes #4271 2024-05-11 12:25:11 +01:00
kai
d058897771 Update verbose timing output. #4237 2024-04-19 11:57:30 +01:00
kai
bd915693c2 Fix hang when timing disabled. #4237 2024-04-17 11:55:18 +01:00
kaidaguerre
07782a2b13 Adds support for verbose timing information. Closes #4237. Closes #4244
- JSON output format has changed to move the rows to under a `rows` property, with timing information under the `metadata` property
- Update timing display to show rows returned and rows fetched, as well as adding verbose mode which lists all scans
- Use enums for output mode and timing mode - timing is now either `on`, `off` or `verbose`
- Bugfix: ensure error is returned from ExecuteSystemClientCall. Closes #4246
2024-04-17 10:12:17 +01:00
Graza
ecefbcc00c Migrate from GCP to GHCR as CR for Plugins. Closes #4232 2024-04-08 15:15:18 +01:00
Meet Rajesh Gor
6cb04c6b5e Fixes issue where a query would return 'null' for an empty resultset when output is set to json in 'query'. Closes #3955 (#3959) 2023-10-17 15:25:33 +05:30
Binaek Sarkar
885a85492c Fixes issue where '.inspect' would panic for long column descriptions. Closes #3709 2023-08-07 11:10:43 +01:00
Puskar Basu
84ffb71412 Steampipe commands should bypass plugin requirement check if installed plugin is local. Closes #3643 2023-07-27 12:58:52 +01:00
Binaek Sarkar
cb15729bfc Merge branch 'v0.20.x' 2023-06-12 23:15:21 +05:30
Binaek Sarkar
24c32e36e3 Fixes issue where timing is not shown in interactive prompt even if .timing is on. Closes #3557 2023-06-12 17:06:30 +01:00
Puskar Basu
e6ed76ca47 Add plugin list acceptance tests. Closes #3519 2023-06-05 15:17:26 +01:00
kaidaguerre
40804a3201 Execute RefreshConnections asyncronously and optimise for high connection count. Add connection_state table.
- Execute RefreshConnections asyncronously
- Add connection_state table to indicate the loading state of connections
- Optimise RefreshConnections by cloning connection schemas
- Add locking to ensure only a single instance of RefreshConnections runs
- Start executing queries without waiting for connections to load, add smart error handling to wait for required connection
- Optimise autocomplete for high connection count
- Autocomplete and inspect data available before all conections are refreshed
- Update file watcher to respond to CHMOD, so thaat it pickes up deletion of file contents

 Closes #3394
 Closes #3267
2023-05-10 09:05:08 +01:00
Binaek Sarkar
810be50551 Fixes issue where having non graphic code points in output would mess up table output in interactive. Closes #3205 2023-04-20 11:50:59 +01:00
Puskar Basu
18a2f65b41 Refactor display configuration options code. 2023-04-17 11:06:07 +01:00
kai
6d7bb2ae81 Merge branch 'v0.19.x'
# Conflicts:
#	CHANGELOG.md
#	pkg/version/version.go
2023-03-24 14:30:29 +00:00
Puskar Basu
a8841f5790 Fix issue where steampipe variable list json output was returning wrong values for value_default and value fields. Closes #3265 2023-03-24 18:49:25 +05:30
kaidaguerre
86246ed927 Only call RefreshConnections on service startup or after a file watching event. Closes #3229 2023-03-15 16:33:23 +00:00
Puskar Basu
6c4782c26f Fixes issue where we didn't get a proper uninstall help message for plugins that failed to load. First draft of Failed Plugin table. Closes #3212 2023-03-15 14:53:52 +00:00
Puskar Basu
d5dea57a5e Fixes issue where variables list command was not including description in JSON output. Closes #3114 2023-02-20 17:02:08 +00:00
Puskar Basu
6ee0183a63 Fix query batch mode returning zero exit code when rows return errors. Closes #3044 2023-02-03 11:36:21 +00:00
Binaek Sarkar
ed4fc2d293 Updates 'csv' output for 'query' to output empty string for cells with 'null' values. Closes #2847 2023-01-20 09:26:30 +00:00
kaidaguerre
fa18c8f0e2 Add support for node reuse. Update graph, flow and hierarchy to declare nodes and edges inline, rather than as a list of references. Closes #2871
Only top level resources can have with and param blocks. Closes #2872
Refactor resource and dashboard run hierarchies to use base impl structs. Closes #2873
2022-12-14 17:18:57 +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
18a1c51597 Upgrades 'pgx' to v5. Closes #2776 2022-11-23 17:34:21 +00:00
Binaek Sarkar
e5a14bce00 Adds 'list' sub command for 'query', 'check' and 'dashboard'. Closes #2653 2022-11-03 15:58:56 +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
Binaek Sarkar
7374fad40d Fixes issue where progress bars are not sorted for plugin update. Closes #2501 2022-10-31 15:02:19 +00:00
kaidaguerre
ef845286c1 Add support for sharing snapshots. Add snapshot output and export format for query and check. Add ability to run named dashboards. #2473 2022-10-05 15:30:57 +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
Puskar Basu
8a5d1a97a4 Show timing info even if query returns an error. Closes #2331 2022-09-05 11:32:56 +01:00
Puskar Basu
ecf5faf3e4 Improve help messages when a plugin is installed but the connection is not configured. Closes #2319 2022-08-22 16:50:58 +01:00
Puskar Basu
04df91bd78 steampipe query --output json should not have two blank lines between query results. Closes #2340 (#2341) 2022-08-18 17:27:55 +05:30
Puskar Basu
ef5e0702d8 Timing terminal output should use appropriate fidelity (secs, ms) for easier readability. Closes #2246 2022-08-10 14:49:22 +01:00
kaidaguerre
5193c70395 Restructure steampipe repo to use pkg folder. Closes #2204 2022-06-27 11:36:03 +01:00