Commit Graph

54 Commits

Author SHA1 Message Date
Nathan Wallace
da0c9ddc0e Fix #4750: Nil pointer panic in RegisterExporters (#4769) 2025-11-11 17:58:06 +08:00
Nathan Wallace
28fb1d5237 Fix #4767: GetDbClient error handling (#4770) 2025-11-11 17:54:56 +08:00
Puskar Basu
e19d35c457 chore: update module to v2 and bump Go version to 1.24 (#4597) 2025-07-07 16:03:56 +05:30
Puskar Basu
da2f3ecc03 Upgrade to pipe-fittings v2, go-kit v1 (#4485) 2025-03-06 16:34:18 +05:30
kaidaguerre
8a5aca8f77 Rename CloudMetadata to PipesMetadata, move to pipe-fittings pipes package 2024-10-16 15:48:14 +01:00
Puskar Basu
aa647985fe fix cloud query issue and re-enable cloud tests 2024-09-30 15:26:38 +05:30
kai
e5b1927a63 tidy imports 2024-09-27 18:14:28 +05:30
kai
ef21f1452e steampipe compiles 2024-09-27 18:14:28 +05:30
kai
80ad514e1d steampipe compiles 2024-09-27 18:14:28 +05:30
kai
fd94b2e2ec working on it 2024-09-27 18:14:25 +05:30
kai
cd07bf20f1 working on it 2024-09-27 18:13:12 +05:30
kai
faead86d26 move stuff to pipe-fittings 2024-09-27 18:13:12 +05:30
kaidaguerre
e6e9714e4c Update all ErrorAndWarnings function returns to pass by value, removing possibility of nil ErrorAndWarnings. Closes #3974 (#4212) 2024-03-21 11:46:10 +00:00
Binaek Sarkar
0387595c36 Update calls to go-kit.ListFiles with the new go-kit.ListFilesWithContext. Closes #3884 2024-01-08 11:45:29 +00:00
kaidaguerre
79606c5bcd Rename internal introspection tables. Fix warning notifications from RefreshConnections. Improve error handlingh for config inconsistencies in conneciton and plugin config. Closes #3886 2023-09-22 16:02:41 +01:00
kaidaguerre
7feb305fde Provide mechanism for plugin manager to send warnings back to CLI. Closes #3603 (#3835) 2023-09-13 15:34:15 +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
Binaek Sarkar
2f889e462e Merge branch 'v0.20.x' 2023-09-01 23:05:16 +05:30
Puskar Basu
c53fdbc0cd Steampipe should not validate against locally installed plugins when connecting to remote steampipe database. Closes #3516 (#3782) 2023-08-31 15:05:13 +01:00
Puskar Basu
6aaf9bc5be Update 'sperr' import references. Closes #3748 2023-08-17 13:52:04 +05:30
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
854819f8f1 Validates workspace profile cache settings. Closes #3646 2023-07-14 13:22:08 +01:00
Binaek Sarkar
37e4b94148 Move ErrorAndWarnings to error_helpers. Closes #3653 2023-07-12 13:58:57 +01:00
Binaek Sarkar
5dffe40fa2 Fixes issue where OS specific metadata directories were being considered as check templates. Closes #3523 2023-06-09 10:17:33 +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
be81357e20 Fixes issue where mod installation would fail silently for unmet dependencies in top mod in force mode. Closes #3358 (#3363) 2023-04-26 14:24:36 +01:00
Puskar Basu
3bdd2eedde Improve error message when running steampipe check/dashboard outside a mod and refactor default mod creation. Closes #3215
Rationalise default mod creation 
Fix nil ref exception for mod commands when using legacy `requires` block

---------

Co-authored-by: kai <kai@turbot.com>
2023-04-20 12:02:50 +01:00
Binaek Sarkar
a6919cca75 Fixes issue where a mod would install even if plugin dependencies are not met. Closes #3041 2023-04-18 15:28:58 +01:00
Binaek Sarkar
b9cacecf27 Fixes issue where running mods with unmet dependencies does not raise warnings. Closes #3324 2023-04-17 14:45:16 +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
299697ae2f Updates in cache configuration to allow disabling of all caching on server. Closes #3258
STEAMPIPE_CACHE environment variable resolves to service cache enabled as well as client cache enabled

service cache enabled is used by the plugin manager to enable/disable caching on the plugins during startup (runtime toggle is not allowed) - with a max_ttl

client cache enabled is used to enable/disable the cache on the database connection (fdw)
A TTL can also be set on the client side capped to max_ttl on the server
2023-03-31 15:12:25 +01:00
kaidaguerre
df9c3a253a Optimize RefreshConnections by cloning schemas where possible. Optimize plugineManager.Get when retrieving multiple connections from same plugin. Closes #3236 2023-03-16 14:43:56 +00:00
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
kaidaguerre
92396d77c0 Remove connection pool min size. Remove need to create empty mod introspection tables if introspection is not enabled. Remove connection pool min size. Closes #3207
* Remove all references to prepared statements
* remove sessionInitWaitGroup
2023-03-09 16:55:08 +00:00
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
c896d88e88 Make workspace loading async. Closes #3123 2023-02-20 17:18:33 +00:00
Binaek Sarkar
d7673ecf08 Adds a mechanism for status updates during initialisation. Closes #3108 2023-02-16 17:09:34 +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
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
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
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
kaidaguerre
0452bb0b81 Validate checkout output and export formats before execution. Closes #2619. Add support for using sps as snapshot output/export format. Closes #2623 2022-10-28 14:57:44 +01:00
kaidaguerre
940bec6b5f Connect to steampipe cloud using the steampipe cloud sdk. Closes #2610 2022-10-27 17:43:44 +01:00
kaidaguerre
38b472338e Remove "connecting to service" spinner message during query init. Closes #2599 2022-10-26 18:22:34 +01:00
Binaek Sarkar
a373b9ca91 Fixes issue where prompt fails to show up when service installation runs in interactive mode. Closes #2529 2022-10-21 12:13:52 +01:00
michizhou
f80f9c1b21 Deprecate workspace-chdir, replace with mod-location. Closes #2511 2022-10-19 11:08:34 +01:00
kaidaguerre
397c951fe2 Refactor control export to use ExportManager. Closes #2515 2022-10-12 16:25:31 +01:00