Commit Graph

156 Commits

Author SHA1 Message Date
Puskar Basu
dcfc939597 removed watch arg from query 2024-10-22 17:25:37 +05:30
Puskar Basu
ab6eb9a3c8 removed mod-location arg and all references 2024-10-22 17:25:37 +05:30
Puskar Basu
3bdc65c70d finally working 2024-10-22 17:25:37 +05:30
Puskar Basu
df374cd6e0 snapshot output and export working 2024-10-22 17:25:37 +05:30
Puskar Basu
c0553ef598 building 2024-10-22 17:25:37 +05:30
kai
2c23a00b8b tidy 2024-10-22 17:25:37 +05:30
kai
3581254246 query display and query result moved to pipe fittings 2024-10-22 17:25:37 +05:30
Puskar Basu
e196a238c1 remove list subcommand 2024-10-22 17:25:37 +05:30
kai
39569d2897 tidy imports 2024-10-22 17:25:37 +05:30
kai
10312a5a0b compiles but needs testing 2024-10-22 17:25:37 +05:30
kai
be4c76fde2 steampipe compiles 2024-10-22 17:25:37 +05:30
kai
622f8a46b5 working on it 2024-10-22 17:25:37 +05:30
Puskar Basu
9c23f463a7 Revert "initial snapshot refactoring"
This reverts commit 924682ac8c3839147507ba08425fb4e96f6218b8.
2024-10-22 17:25:37 +05:30
Puskar Basu
462baa7ac1 Revert "remove use of snapshotRequired"
This reverts commit a5ee02b5cd08876471d5646a5cb53f7ba74810e0.
2024-10-22 17:25:37 +05:30
kai
8cc08d600e remove use of snapshotRequired
comment out non compiling code for now
2024-10-22 17:25:37 +05:30
Puskar Basu
9528e77f9d initial snapshot refactoring 2024-10-22 17:25:37 +05:30
Puskar Basu
eb07d60501 dashboardexecute -> snapshot 2024-10-22 17:25:37 +05:30
Puskar Basu
1146afb7d0 remove dashboard cmd 2024-10-22 17:25:37 +05:30
Puskar Basu
663f4031ea Fix issue where steampipe returned 0 exit code even if failed to export snapshot. Closes #4276 2024-05-21 14:15:40 +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
kaidaguerre
103d53f8e8 Fix setting dependency vars in var file. Fix UI freeze when prompting for workspace variables. Closes #4105 2024-02-01 13:53:21 +00:00
Binaek Sarkar
085e933ddf Maintain the order of execution when running multiple queries in batch mode. Closes #3728 2024-01-02 11:52:16 +00:00
Binaek Sarkar
3f84a2630a Fixes issue where 'cloud-*' needed to be global flags. Closes #3923 2023-09-28 15:20:55 +01:00
Binaek Sarkar
0c5b20d922 Fixes issue where cloud login is not recognised even if successful. Closes #3916 2023-09-27 17:22:39 +01:00
Puskar Basu
01097a27e6 Warn users to not have mod.sp files in home directory. Closes #2321 2023-09-22 18:07:55 +01:00
Binaek Sarkar
3353f00c3f Fixes issue where 'stdin' would get consumed even if there are arguments. Closes #3879. Closes #1985. 2023-09-22 17:15:59 +01:00
Puskar Basu
9be7fb74f1 Cloud and workspace flags should not be Global Flags as they are not used for all commands. Closes #3542 2023-09-12 15:27:56 +01:00
Binaek Sarkar
a3a714d6cd Fixes issue where temporary tables are dropped in interactive prompt when pool connections are recycled. Closes #3359. Closes #3781 2023-09-06 16:46:40 +01:00
kaidaguerre
202cb68692 Add HCL support for defining rate limiters, with filewatching as per connection config. Closes #3746 2023-08-11 14:24:44 +01:00
Binaek Sarkar
a01776b78f Migrate from 'cloud.steampipe.io' to 'pipes.turbot.com'. Closes #3724 2023-08-08 12:24:38 +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
Puskar Basu
18a2f65b41 Refactor display configuration options code. 2023-04-17 11:06:07 +01:00
Aaronstotle
17a00353ae Add check to the mod init function so users are aware if it's run in the home directory or if there are a large number of non-mod files in the path. Closes #2562 2023-04-06 09:10:41 +01:00
Binaek Sarkar
17306488fc Fixes issue where fdw was not updated for 'service restart' command. Closes #3172 2023-03-10 12:33:59 +00:00
kaidaguerre
7c2ae6da93 when executing a query as a dashboard, name the dashboard custom.dashboard.sql_<query_hash>. Closes #3150 2023-02-28 18:19:13 +00:00
kaidaguerre
b67d39ecde Fix duplicated text input on interactive prompt during initialisation. Closes #3075 2023-02-16 12:35:43 +00:00
kai
d266917597 Merge branch 'v0.18.x' into main
# Conflicts:
#	CHANGELOG.md
#	pkg/version/version.go
2023-02-15 14:52:34 +00:00
Binaek Sarkar
d75ab0372e Fixes issue where snapshot mode in query leads to duplicate rows in console/file output 2023-02-15 19:08:19 +05:30
Mike Burgess
9669829827 Merge branch 'v0.18.x' 2023-02-03 13:04:02 +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
Puskar Basu
e5564457af Fix issue where snapshot creation was failing for command line queries in batch mode. Closes #2943 2023-02-03 11:05:21 +00:00
Puskar Basu
e81b4a6888 Show the exported file location when --progress flag is enabled. Closes #2860 2023-01-27 16:27:39 +00:00
Puskar Basu
e4c50a9477 Ensure correct exit code is returned when a mod plugin requirements are not met. Closes #2986 2023-01-18 14:43:44 +00:00
kaidaguerre
6ee391faba Workspace file watching events sometime cause dashboard to stall and stop responding to events. Cancelling dashboards (e.g. by pressing 'back' on the browser) sometimes leave the server in a state where it will not respond to socket events. #3007.#. #3008 2023-01-17 11:52:53 +00:00
Puskar Basu
34ecf67496 Use consistent and defined exit codes. Closes #2935 2023-01-06 14:14:05 +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
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
Binaek Sarkar
b56447cbcc Consolidates setting of CLI flag shorthand. Closes #2403 2022-11-09 10:31:09 +00:00
kai
b40cc0941f Using query command --export flag raises an error that it cannot be used in interactive mode, even when not in interactive mode. Closes #2707 2022-11-08 21:42:38 +00:00
kai
dcb693bb74 Show error if export flag set for interactive query. Closes #2696
Fail with helpful message if invalid typename passed to check command. Closes #2693
2022-11-08 13:29:30 +00:00