Nathan Wallace
99fd81ccf6
Fix memory leak in DatabaseSession management (issue #3737 ) ( #4742 )
2025-11-11 18:35:16 +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
kai
e5b1927a63
tidy imports
2024-09-27 18:14:28 +05:30
kai
cb681c67cc
compiles but needs testing
2024-09-27 18:14:28 +05:30
kai
ef21f1452e
steampipe compiles
2024-09-27 18:14:28 +05:30
kai
cd07bf20f1
working on it
2024-09-27 18:13:12 +05:30
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
kai
94a61f1aea
Create a plugin instance for implicit plugins even if not installed. #3451
2023-09-26 14:23:23 +01: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
kaidaguerre
01f2f1e525
Update PluginManager plugins property after a ConnectionConfigChanged event. Fixes failure to start plugin after connection config added while service is running. Closes #3812 ( #3813 )
2023-09-07 18:48:07 +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
edfe58f815
Revert "Fixes issue where temporary tables are lost in the middle of a long running interactive session. Closes #3543 " ( #3789 )
...
This reverts commit 047d8b5556 .
2023-09-01 14:33:05 +01:00
Binaek Sarkar
047d8b5556
Fixes issue where temporary tables are lost in the middle of a long running interactive session. Closes #3543
2023-08-29 12:18:20 +01:00
Binaek Sarkar
08b447a261
Differentiate between user and system queries using application name. Closes #3600
2023-08-25 16:50:27 +01:00
Binaek Sarkar
9754ed0c1a
Creates 'version.json' in each plugin directory. Recompose the global plugin versions.json if it is missing or corrupt. Closes #3492
2023-06-30 08:56:59 +01:00
Binaek Sarkar
a1caf53eeb
Adds 'steampipe_server_settings' table populated with server settings data during service startup. Closes #3462
2023-06-21 13:23:14 +01:00
Binaek Sarkar
e5e8105657
Fixes issue where caching is still enabled for plugins compiled with SDKv4. Closes #3427
2023-05-18 15:02:49 +01:00
Binaek Sarkar
9653db55da
Drops legacy 'internal' and 'steampipe_command' schema. Closes #3403
2023-05-17 13:31:37 +01:00
kaidaguerre
5fdf6920cf
Add support for connecting to a steampipe server which does not have connection state table (i.e. it is a pre v0.20.0 version). Closes #3414
2023-05-16 17:15:13 +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
kaidaguerre
86246ed927
Only call RefreshConnections on service startup or after a file watching event. Closes #3229
2023-03-15 16:33:23 +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
kaidaguerre
dd76a500e5
When acquiring a session, if the db schemas have changed, reload SteampipeConfig and re-set required search path. Closes #3137
2023-02-22 14:50:53 +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
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
Binaek Sarkar
18a1c51597
Upgrades 'pgx' to v5. Closes #2776
2022-11-23 17:34:21 +00:00
kai
f47d55b2bb
Fix steampipe query --timing not outputting timing information if sharing or exporting a snapshot. Closes #2677
2022-11-07 14:05:39 +00: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
kaidaguerre
ffe0ab40c1
Limit connection lifetime in db connection pool. Closes #2375
...
Limit connection lifetime in db connection pool. Closes #2375
Limit connection lifetime in db connection pool. Closes #2375
Limit connection lifetime in db connection pool. Closes #2375
Limit connection lifetime in db connection pool. Closes #2375
2022-08-25 17:01:49 +01:00
Nathan Wallace
fe4c93476b
Add udt_name to schema query for remote databases closes #2324
2022-08-12 11:52:47 -04:00
kaidaguerre
45a67a4231
Fix crash when inspecting tables - only read scan metadata max id when enabling timing, and ensure we read timing information before the connection is closed. Closes #2243
2022-07-14 12:39:31 +01:00
kaidaguerre
01ccfafe56
Steampipe sometimes hangs in interactive mod if timing is enabled. Closes #2237
2022-07-13 11:04:44 +01:00
kaidaguerre
389bff7199
Fix intermittent "concurrent map access" error when timing is enabled. Closes #2231
2022-07-08 22:15:13 +01:00
kaidaguerre
5193c70395
Restructure steampipe repo to use pkg folder. Closes #2204
2022-06-27 11:36:03 +01:00