Commit Graph

56 Commits

Author SHA1 Message Date
Puskar Basu
be67b786f4 Update check templates to remove functions. Closes #1320 2022-01-19 16:36:11 +00:00
kaidaguerre
efbebd99ee Decouple spinner display code from database and execution layer. Closes #1290 2022-01-06 11:54:18 +00:00
Gábor Lipták
a62a25a2b2 Cleanup deadcode (#1286)
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2022-01-05 15:56:41 +00:00
Binaek Sarkar
d46e7d02fc Fix issue where benchmark execution duration is incorrect in check. Closes #1249 2022-01-03 13:02:14 +00:00
kaidaguerre
33f55e584f Add support for mod management commands. Closes #442. Closes #443 2021-12-21 14:10:00 +00:00
Binaek Sarkar
0732f8ee4f Fix issue where service is not shutdown when check is cancelled. Closes #1250 2021-12-21 12:50:20 +00:00
kaidaguerre
0b9c800b04 Update error reporting to handle PGX format errors. Closes #1236 2021-12-14 14:29:39 +00:00
Puskar Basu
4aa72557f4 Improve plugin uninstall output when connections remain. Closes #1158 2021-12-10 14:36:28 +00:00
kaidaguerre
1fdfc02c34 Startup optimizations. Closes #1186. Closes #1183. Closes #1182
- Update connection management to use file modified time instead of filehash to detect connection changes
- Avoid retrieving schema from database for check and non-interactive query execution
- When retrieving plugin schema, identify the minimum set of schemas we need to fetch - to allow for multiple connections with the same schema
- Update plugin manager to instantiate plugins in parallel
2021-12-07 15:34:14 +00:00
Binaek Sarkar
d55903d44b Fixes issue where table names with special characters are not handled correctly in auto-complete and .inspect. Closes #1109 2021-11-24 13:52:01 +00:00
Eng Zer Jun
335a3ee686 refactor: move from io/ioutil to io and os packages (#1153)
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-23 11:54:38 +00:00
Binaek Sarkar
1c02e4afa5 Update plugin_manager service management to be more reslient. Closes #1155 2021-11-22 21:05:46 +00:00
kaidaguerre
3bb4bf97d3 Create prepared statements one by one to allow accurate error reporting and reduce memory burden. Fix workspace file watching. Fix async error display. Close ##1148. Close #1152. Close #1085 2021-11-21 10:53:33 +00:00
Binaek Sarkar
aea6b017f2 Ensure plugin manager and db service state are managed as a unit - they should always be started and stopped together. Closes #1149 2021-11-19 16:07:20 +00:00
kaidaguerre
8d7d2b6b04 Remove daemon process. Closes #1146 2021-11-18 17:57:06 +00:00
Binaek Sarkar
a09ed88304 Optimize parallel control execution. Provider more responsive feedback for control runs. Update postgres log config to optimise performance. Closes #1101 2021-11-16 21:57:38 +00:00
kaidaguerre
7e7e0dd130 Add support for parallel control execution. Only spawn a single plugin per steampipe connection - defer plugin spawning to a PluginManager service. CLoses#1073, Closes #1001 2021-11-04 11:29:28 +00:00
kaidaguerre
35a6fe9e34 Add support for connecting to a remote database client. Closes #908 2021-09-15 13:29:26 +01:00
kaidaguerre
c25a9b76a1 Add connection config file watching for service in foreground mode. Closes #815 2021-09-10 17:52:30 +01:00
kai
a153fd556a Filewatcher only updates tables/prepared statements if there is a resource change. Handle long query names 2021-09-03 14:20:52 +01:00
Binaek Sarkar
22a97b809e Update check output after cancellation to be "execution cancelled". Closes #786 2021-08-24 13:15:09 +01:00
kaidaguerre
b7aa42ceb3 Refactor service code to make it simpler to support external database connections. Closes #696 2021-07-26 17:07:28 +01:00
Binaek Sarkar
06d2996eeb Steampipe service startup now fails with a useful error is when data-dir is not writable . Closes #659 2021-07-22 10:25:13 +01:00
kaidaguerre
412eebb8bc Cancellation improvements. #652 2021-07-21 16:31:29 +01:00
Binaek Sarkar
c8b122d4d4 Fixes issue where db data-dir was being removed instead of it's contents during init. Closes #639 2021-07-16 18:26:20 +01:00
kaidaguerre
f5796f0db3 In interactive mode, perform connection refresh and workflow loading asynchronously. Closes #627 2021-07-15 16:36:37 +01:00
Binaek Sarkar
abd5f5ec7c Update plugin cmds to start the service in PreRun and stop service in PostRun. Close #578 2021-07-01 09:21:45 +01:00
Binaek Sarkar
dac31223d3 Fixing issue with multiple bad --export flags. Closes #558 (#559) 2021-06-17 13:23:09 +01:00
kai
1f8abc239a Update check export error messsage formatting. 2021-06-17 12:54:54 +01:00
tyagiparth
418a34c6cb Validate that plugin versions required by mod are installed. Closes #557 2021-06-17 12:42:41 +01:00
Binaek Sarkar
92c656334c Support for inferring export format when only the target file is given. Closes #543 2021-06-16 17:41:05 +01:00
Binaek Sarkar
93f7d8192c Fix to display timing profile data when appropriate env var is set. Closes #513 2021-06-11 16:18:52 +01:00
Binaek Sarkar
b2e5763daf Fix for driver prefix showing up in check errors. Closes #474 2021-06-11 16:16:29 +01:00
kai
1fd1cfb4f2 Add support for cancellation of control run. Closes #475 2021-05-20 16:12:20 +01:00
kai
ec834c055e Add short pause before handling file events to allow for vim file operations. Remove minimum interval logic. 2021-05-20 16:11:50 +01:00
kai
4dbc6bad6b Initial iteration of control result display code 2021-05-20 16:11:50 +01:00
kai
7e3ae0a386 Add parsing support for variable references, functions and locals. Closes #405
Update check to te-add implicit conversion of named query name to named query, so setting the SQL field to a query name would work.

Update reflection tables to fix JSONB arrays

Workspace loads and watches files recursively if a mod.sp file exists in the workspace folder

Update reflection tables - 'labels' and 'links' are now JSONB columns

rename control property Query to SQL and do NOT try to resolve this as a named query

Add documentation property to control_group
2021-05-20 16:11:13 +01:00
kai
b02f9644cb control query should support named queries. Closes #420
Fix query resource name in metadata

update metadata tables from file watch events

remove db reference to workspace.
store named query in history untouched

rename ReflectionData to metadata. Handle arrays.

Reflection data working apart from pointers to arrays

For query command, pull client to higher level to allow creation ot reflection temp tables
Add executeSqlAsRoot
StartDb stops service if there is an error
Add temp table creation for reflection tables

remove invalid listen address

remove invalid listen address
2021-05-20 16:11:13 +01:00
kai
77eff21c23 Add check command. Add support for control groups. Closes #413 2021-05-20 16:11:13 +01:00
kai
b3210528ce Update to v0.2.0 of go-kit 2021-05-13 16:22:40 +01:00
Binaek Sarkar
468244aa40 Fix spinner displaying multiple newlines if spinner text is wider than the terminal. Closes #450 2021-05-12 13:47:27 +01:00
Binaek Sarkar
d4fe72fffd Add acceptance tests to verify disabling update update-check works. Closes #401 2021-04-20 12:07:47 +01:00
kaidaguerre
b0a06c4133 Update file watching to only use fsnotify to watch files - implement folder watch within steampipe. Closes #380 2021-04-14 21:11:06 +01:00
kaidaguerre
f87cc07785 Add workspace support - create named queries from sql files in current directory. Closes #369 2021-04-12 16:52:43 +01:00
Binaek Sarkar
9366899be2 Update-check should take config file value into account. Closes #293 2021-03-17 12:40:13 +00:00
Binaek Sarkar
385e45bb93 Update spacing for plugin update and install messages. Closes #264 2021-03-11 10:45:18 +00:00
Binaek Sarkar
29510765bd Tidy db error message. Ensure all panics are recovered. Closes #118 2021-03-03 14:51:12 +00:00
Binaek Sarkar
984f2795c5 plugin update now checks installed versions before updating. Increase timeout for update request. Closes #216. Closes #234 2021-03-03 12:39:13 +00:00
Binaek Sarkar
3654052f46 Spinner should not come up in non-interactive query mode. Closes #227 2021-02-24 13:34:15 +00:00
Binaek Sarkar
bbe28cbf12 Add pluralisation to utils. Closes #210 2021-02-23 19:41:06 +00:00