Commit Graph

37 Commits

Author SHA1 Message Date
Binaek Sarkar
7830670368 Fix for issue where query freezes if there's no data on stdin. Closes #570 2021-07-12 08:52:04 +01:00
Binaek Sarkar
f4c6d479ba Update service start code to remove need to spawn a separate process when starting for 'check'/'query`. Closes #581 2021-07-08 15:26:45 +01:00
Binaek Sarkar
7c85c5c2db Update service start to add --foreground flag. Closes #535 2021-07-01 09:34:04 +01:00
Binaek Sarkar
e1031902ee Update service start to 'claim' a service started by query or check session, instead of failing. Closes #580 2021-07-01 09:32:12 +01:00
Binaek Sarkar
115c8e5feb Remove locking from service code to allow multiple 'query' and 'check' sessions in parallel without requiring a service start. Closes #579 2021-07-01 09:24:48 +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
tyagiparth
418a34c6cb Validate that plugin versions required by mod are installed. Closes #557 2021-06-17 12:42:41 +01:00
kaidaguerre
8560428e77 Revert bash autocompletion. #481 2021-06-17 10:40:55 +01:00
Binaek Sarkar
8db836bdb6 Add support for reading from STDIN for query. Closes #499 2021-06-15 17:18:40 +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
0f4c510b16 Add support for autocomplete in bash. Closes #481 2021-06-11 16:17:50 +01:00
Binaek Sarkar
7356c2fd9f Fixes issue where interactive prompt hangs on cancellation. Closes #507 2021-05-25 20:01:07 +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
e35e667efe Rename reflection tables to singular. Add reflection tables to autocomplete. Closes #421. Closes #433
Add missing properties to control, query, mod and controlGroup. Update mod parsing. Update reflection data types to remove length limitations. Remove mod_depends and plugin_depends parsing
2021-05-20 16:11:13 +01:00
kai
fcb6cbc96b Add support for control execution scopes and --where argument. Closes #408 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
e4be1e428a Update error reporting when passing multiple queries/filepaths on command line - do not print out the query SQL for failed queries. #388 2021-04-15 17:08:17 +01:00
kaidaguerre
9195461270 Do not print blank line between multiple query results for CSV mode with no header. Close #395 2021-04-15 16:37:27 +01:00
kaidaguerre
97de889217 steampipe query should only use paging in interactive mode. File watching should default to true. Closes #390. Closes #394 (#396) 2021-04-15 16:36:50 +01:00
kaidaguerre
a333173ac0 When long queries are passed on command line, handle invalid filename error when steampipe determines whether each arg is a filepath . #388 2021-04-15 12:54:06 +01:00
kai
79b8e4be5e Update error reporting when passing multiple queries/filepaths on command line - report file errors/empty files as warning. #388 2021-04-15 12:19:49 +01:00
Binaek Sarkar
a25b1806dd Save namedQuery name in history, instead of the SQL. Move watch argument to query command. Closes #383 2021-04-15 10:34:04 +01:00
kaidaguerre
c98a500188 Update query command to accept multiple unnamed args, each of which may be a filepath, query SQL or a named query. Closes #388 2021-04-14 22:00:00 +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
kai
5bae223369 Fix spinner not showing when refreshing connections before an interactive session #370 2021-04-12 17:17:38 +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
kaidaguerre
0da4feb894 Add search-path and search-path-prefix arguments to query command. Closes #358 2021-04-12 15:32:48 +01:00
kaidaguerre
9fd242699b Add sql-file flag to query command. Closes #289 2021-04-08 11:00:41 +01:00
kaidaguerre
7441230d98 Support setting Steampipe options via HCL config. Closes #230 2021-03-16 17:16:34 +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
3654052f46 Spinner should not come up in non-interactive query mode. Closes #227 2021-02-24 13:34:15 +00:00
kaidaguerre
e86f1f0f30 Ensure all hydrate errors are reported. Closes Issue 206 (#207) 2021-02-19 20:39:00 +00:00
Binaek Sarkar
277fec6f93 Add 'line' output format. Closes #114 2021-02-09 17:25:33 +00:00
Rupesh Patil
da6bc0886c add version check service, to notify when update is available. Closes #28 2021-01-21 11:37:21 +00:00
kai
dbd4621af4 Initial commit 2021-01-19 16:46:22 +00:00