Commit Graph

38 Commits

Author SHA1 Message Date
Binaek Sarkar
08b447a261 Differentiate between user and system queries using application name. Closes #3600 2023-08-25 16:50:27 +01:00
Puskar Basu
5995e35937 Fix issue where interactive prompt exits/crashes when the code panics. Closes #3713 2023-08-07 11:23:31 +01:00
Binaek Sarkar
120999a374 Adds feature where type '.cache' in interactive shows the current value of cache. Closes #2439 2023-07-04 16:02:52 +01:00
Binaek Sarkar
bb53c87c86 Fixes issue where connection state fails to load when connecting to pre-0.20.7 service. Closes #3612 2023-06-22 16:21:10 +01:00
Binaek Sarkar
c3d21d4436 Fixes issue where 'dot' commands in interactive prompt fail to execute if there's a file/folder by the same name in the working directory. Closes #3558 2023-06-12 16:35:43 +01:00
kai
7753d5385d If custom is search path is set, only fail a query if ALL connections are in error 2023-05-18 16:54:56 +01:00
kai
8ec8c76907 Fix .connection meta-command in interactive returning an empty table #3449 2023-05-18 14:56:24 +01:00
kai
3b1e99182a Replace all '...' with ellipsis … in terminal output. Closes #3441 2023-05-18 10:41:27 +01:00
kaidaguerre
b0b2c62338 Add support for 'import_schema' property in connection config, controlling whether to create a postgres schema for a steampipe connection. Closes #3407
Rename 'connection_state' table to 'steampipe_connection_state'. #3403
Rename 'internal' table to 'steampipe_internal
Remove 'Connection' property from ConnectionState
2023-05-15 13:07:36 +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
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
kai
b94a47cc6f Fix rendering issues when running .inspect. Closes #3268 2023-03-24 17:02:19 +00:00
Binaek Sarkar
a5c56bebe2 Fixes issue where spinner was not showing up in interactive prompt while a query was executing. Closes #3259 2023-03-24 14:43:23 +00:00
Binaek Sarkar
be36276fd8 Add deprecation warnings for connection.options "connection" and global terminal options. CLoses #3246 2023-03-23 14:43:06 +00:00
kai
39cd67ed89 Fix crash on shutdown if init not complete. Fixes #3252 2023-03-21 16:53:17 +00:00
Binaek Sarkar
ee8b6647c4 Rationalising 'status hooks'. Do not show spinner when setting status, instead require an explicit Show. #2432 2023-03-14 11:48:14 +00:00
kai
948d70388f Update executeSqlInTransaction to rollback transaction in case of error
Do not create a new client in pluginManager.OnConnectionsChanged, instead pass a client in.
Do not pass appname to plugin manager command - instead plugin manager adds prefix the pg app name. #3184. #3185
2023-03-08 10:56:29 +00:00
kaidaguerre
075fafec09 Use single Steampipe Postgres notification channel (#3191) 2023-03-07 17:34:41 +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
kaidaguerre
763167bef1 Fix workspace load crash for invalid mod definition. Closes #3174 2023-03-01 15:21:34 +00:00
kaidaguerre
718718d053 Rationalise and optimize autocomplete. Closes #3149 2023-02-24 15:31:47 +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
Binaek Sarkar
9053d7e121 Fixes issue where extra newline was added to interactive prompt before messages were printed. Closes #3027 2023-01-31 15:59:42 +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
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
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
efea8a72f2 Fixes issue where 'Alt` keyboard combinations would error in WSL. Closes #2549 2022-11-02 15:40:13 +00:00
Meet Rajesh Gor
b0dfee67bb Add auto-completion toggle meta command and terminal option. Closes #2560. Closes #1692 2022-10-27 17:48:45 +01:00
kaidaguerre
2309abb7fd Support executing any query-provider resources using the steampipe query command. Optimize autocomplete. Closes #2558 2022-10-24 10:45:28 +01:00
Binaek Sarkar
754dad90dd Fixes issue where new lines were stripped out in interactive prompt. Closes #2531 2022-10-18 12:47:34 +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
kaidaguerre
b7a1969d35 Fix Steampipe terminating if query (or empty line) is entered before initialisation completes. Closes #2300 2022-08-06 17:27:57 +01:00
kaidaguerre
d15ac33b26 Fix pasting a query during cli initialization causing it to be duplicated on the screen. #1980 2022-08-04 22:17:14 +01:00
kaidaguerre
a27afd0b7a Fix history storing raw query instead of the saved query when running a named query. Closes #2288 2022-08-04 21:18:41 +01:00
kaidaguerre
0a9b1a1715 Fix interactive multi-line mode. Ensure initialisation errors are correctly reported. Closes #2260 2022-08-02 17:30:54 +01:00
kaidaguerre
5193c70395 Restructure steampipe repo to use pkg folder. Closes #2204 2022-06-27 11:36:03 +01:00