Commit Graph

439 Commits

Author SHA1 Message Date
Dan Sosedoff
22eb352180
Version bump: 0.16.0 2024-06-04 21:15:52 -07:00
Dan Sosedoff
3a32f531a0
Allow database stats downloads (#738)
* Add button to download database stats
* Return xml as well
2024-05-25 10:59:23 -07:00
Dan Sosedoff
63f1150056
SSH tunnel cleanup and parse fixup (#731) 2024-05-22 20:09:29 -07:00
Dan Sosedoff
9717d3a132
Version bump: 0.15.0 2024-03-14 22:19:59 -07:00
Alexandru Gologan
f4e7643e22
Add support for a bookmarks-only mode (#716)
* Add support for bookmarks-only mode

* Add error for missing bookmarks in bookmarks-only mode

* Error when settings url or connect backend together with bookmarks-only

* Add tests for parsing options
2024-03-14 21:36:53 -07:00
Ashish Kulkarni
8a8b9f07fb
fix missing indexes by quoting schema/table name to ::regclass (#711)
The same approach is used in pkg/statements/sql/table_schema.sql
and a sample reproduction for the bug is:

  CREATE SCHEMA test;
  CREATE TABLE test.data (id INTEGER PRIMARY KEY, name TEXT);
  CREATE UNIQUE INDEX "test.data_uniq" ON test.data (name);

Only the primary key is shown, and not the index created above.
2024-03-11 21:50:48 -07:00
Dan Sosedoff
7ee3c61e38
Version bump: 0.14.3 2024-01-28 20:14:20 -06:00
Dan Sosedoff
408e23adb3
Allow setting readonly mode in bookmarks (#707) 2024-01-12 21:17:14 -06:00
Dan Sosedoff
fe5039d17a
Allow retrying a connection on startup (#695)
* Allow retrying a connection on startup
* Remove unused vars
* Add an extra comment
* Restructure retry logic a bit
* Update retry logic
* Fix comment
* Update comment
* Change type for RetryCount and RetryDelay to uint
* Extra test cases
* Tweak
2023-11-04 11:12:48 -05:00
Dan Sosedoff
f810c0227b
Add UPDATE to list of restricted keywords in read-only mode (#697) 2023-11-02 21:17:46 -05:00
Dan Sosedoff
87030c8a17
Version bump: 0.14.2 2023-10-29 21:17:00 -05:00
Dan Sosedoff
22daaad5a2
Fix unclosed database sessions and tunnels (#688) 2023-09-10 11:46:31 -05:00
yanjingtu
14d8d80b86
fix when prefix has '/' and prefix is not end with '/' (#684) 2023-08-29 21:09:10 -07:00
Dan Sosedoff
e0c2099e91
Use pg_table_size for table stats query (#685) 2023-07-18 20:15:09 -05:00
Dan Sosedoff
189ca505bc
Version bump: 0.14.1 2023-06-17 12:16:37 -05:00
Dan Sosedoff
d4cfb059ce
Add process start time metric (#675) 2023-05-08 20:46:00 -05:00
Dan Sosedoff
b2067fbc8d
Add clarification comment for binary codec var 2023-04-25 20:02:41 -05:00
Dan Sosedoff
08bbb1537e
Implement process uptime metric (#666)
* Implement process uptime metric
* Add clarification comment
* Add another clarification comment
2023-03-30 12:51:49 -05:00
Dan Sosedoff
941c0acea3
Fix typo in the healthy metric (#657) 2023-02-28 11:57:36 -06:00
Dan Sosedoff
6b3c177909
Version bump: 0.14.0 2023-02-21 11:39:49 -06:00
Ashish Kulkarni
505ee42867
ensure that objects are sorted by schema and name (#648)
This is a regression from #608
2023-02-15 15:39:17 -06:00
Dan Sosedoff
41bf189e6b
Local queries (#641)
* Read local queries from pgweb home directory
* Refactor local query functionality
* Allow picking local query in the query tab
* WIP
* Disable local query dropdown during execution
* Only allow local queries running in a single session mode
* Add middleware to enforce local query endpoint availability
* Fix query check
* Add query store tests
* Make query store errors portable
* Skip building specific tests on windows
2023-02-02 16:13:14 -06:00
Dan Sosedoff
5b2d4e4454
Add context menu to display database tables stats (#639)
* Add context menu to display database tables stats

* Move table stats implementation into client
2023-01-23 14:10:26 -06:00
Jens Broekens
06212b4c34
Add bookmark options to load username/password from env vars (#638) 2023-01-20 16:59:39 -06:00
Dan Sosedoff
b2b0094b5e
Handle support/permissions errors in info call (#635)
* Handle support/permissions errors in info call
* Fix linting
2023-01-17 16:05:15 -06:00
Dan Sosedoff
da671e67cc
Version bump: 0.13.1 2022-12-27 19:14:59 -06:00
Dan Sosedoff
e4530caab6
Version bump: 0.13.0 2022-12-25 14:14:16 -06:00
Dan Sosedoff
239037b4c6
Add query execution stats to api endpoint (#629) 2022-12-25 13:25:18 -06:00
Dan Sosedoff
12a4bf70c0
Add duration_ms to log entries (#628) 2022-12-25 13:24:22 -06:00
Dan Sosedoff
1897bef08d
Results struct cleanup (#627)
* Add results format test
* Init results slice before formatting data
* Add extra test for nil check in CSV function
2022-12-21 15:02:40 -06:00
Dan Sosedoff
aeb9dc24ad
Fix mutex unlock call 2022-12-21 14:29:44 -06:00
Dan Sosedoff
bcba666507
Add default connect_timeout option to connection string (#626)
* Add default connect_timeout option to connection string
* Add an extra test
2022-12-20 16:58:54 -06:00
Dan Sosedoff
b31e7f1ea7
Setup basic prom metrics endpoint (#624)
* Setup basic prom metrics endpoint
* Use default prom handler to expose go runtime metrics
2022-12-20 10:13:42 -06:00
Dan Sosedoff
4e3e255575
Configure timeout and retries when testing connection status (#623) 2022-12-19 16:13:43 -06:00
Dan Sosedoff
0cd61093b9
Display empty schemas on the sidebar (#621)
* Display empty schemas on the sidebar
* Add schemas fetching test
* Skip pg_temp schemas
* Exclude pg_temp tables from other queries
2022-12-19 13:26:13 -06:00
Dan Sosedoff
69233cd769
Establish connections using bookmark ID only (#619)
* Establish connections using bookmark ID only
* Refactor specs
* Extra tests
* Fix homedir assertion for bookmarks path
* Fix newline in the warning message
* Check for bookmark file existence before reading
* Connect code restructure
2022-12-19 12:33:13 -06:00
Dan Sosedoff
afe431c94d
Request logging additions (request id, forwarded user) (#618)
* Add request-id logging
* Missing test file
* Add option to log forwarded user information if available via X-Forwarded-Header
* Format
2022-12-16 12:38:57 -06:00
Dan Sosedoff
e0a748812d
Add support for .pgpass file (#617)
* Add support for .pgpass file
* Support password lookup in /api/connect endpoint
* Restrore removed code for BuildStringFromOptions
* Restructure connection string test and add extra case for pgpass
* Add test for FormatURL method
2022-12-14 13:37:49 -06:00
Dan Sosedoff
81b7c1c6aa
Version bump: 0.12.0 2022-12-13 11:59:45 -06:00
Dan Sosedoff
0dfec506cf
Improved Pg test matrix (#616)
* Add postgres 10/11 to test  matrix
* Add docker-compose file fo running multiple postgres versions locally
* Fix client test for pg 10, modify function details to include specific fields
* Try to install latest postgres client
* Add concurrency setting
2022-12-12 18:58:00 -06:00
Dan Sosedoff
4c40eef99a
Perform client version validation before executing pg_dump command (#614)
* Add func to parse out pg_dump version
* Perform client vs server version checking before dump exports
* Fix dump tests
* Add extra test to validate against empty server version
* Fix attachment filenames cleanup function
* Add extra test
* Fix small typos in comments
* Drop third-party package to deal with versions
* Tweak the pg dump incompatibility error message
* Run CI on pull requests
2022-12-12 15:09:12 -06:00
Dan Sosedoff
7557ac854e
Configure client side query timeout (#610)
* Configure client side query timeout
* Update test command on windows
* Make query timeout cli opt an uint
* Fix windows test command
* Check for updates when rendering connection page
* Fix typo
2022-12-08 15:07:40 -06:00
Dan Sosedoff
0008842a68
Add test for server type and version detection (#612) 2022-12-08 13:33:38 -06:00
Dan Sosedoff
d08dbf34aa
Implement global query timeout option (#609)
* Add global query timeout
* Tweak option settings
* Add timeout test
* Move query timeout option close to idle timeout
2022-12-07 18:56:58 -06:00
Dan Sosedoff
38051b9465
Add support for user functions (#608)
* Add initial support for functions
* Show functions definitions
* Fix client tests
* Fix schema objects search
* Perform partial matching for functions
* Add function test
* Make sure to close client connections so that database could be dropped in tests
* Fix lint
* Allow to copy the view/functions definitions
* Nits
2022-12-07 11:58:07 -06:00
Dan Sosedoff
2c745fa68d
Use runtime-provided os/arch info 2022-12-06 18:14:47 -06:00
Dan Sosedoff
829658ae4d
Include build arch info into binary 2022-12-06 17:55:27 -06:00
Dan Sosedoff
f48cc5f007
Use go embed to load queries from static files (#607) 2022-12-06 17:41:46 -06:00
Dan Sosedoff
f4b3091666
Merge pull request #605 from sosedoff/log-level
Configure logging level and format
2022-12-06 12:41:56 -06:00
Dan Sosedoff
66fbc730fe
Only include form for non-get requests 2022-12-06 12:30:43 -06:00