Dan Sosedoff and GitHub
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
837e25be74
Go mod tidy
2022-12-19 17:51:35 -06:00
Dan Sosedoff and GitHub
4e3e255575
Configure timeout and retries when testing connection status ( #623 )
2022-12-19 16:13:43 -06:00
Dan Sosedoff
362ecb0bc7
Tweak fly config
2022-12-19 13:39:36 -06:00
Dan Sosedoff and GitHub
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 and GitHub
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
0b9e7cdb4e
Update checks workflow triggers
2022-12-16 15:03:06 -06:00
Dan Sosedoff and GitHub
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 and GitHub
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
40474d3990
Remove CGO_ENABLED=0 from checks workflow
2022-12-13 15:28:14 -06:00
Dan Sosedoff
41d970e4a7
Remove appveyor build badge
2022-12-13 12:42:24 -06:00
Dan Sosedoff
044367b979
Remove deploy to heroku button
2022-12-13 12:40:04 -06:00
Dan Sosedoff
515f3123dc
Update changelog
2022-12-13 12:20:32 -06:00
Dan Sosedoff
81b7c1c6aa
Version bump: 0.12.0
2022-12-13 11:59:45 -06:00
Dan Sosedoff and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
0008842a68
Add test for server type and version detection ( #612 )
2022-12-08 13:33:38 -06:00
Dan Sosedoff
1754274d46
Fix ui flake when switching to activity and connection tabs
2022-12-08 12:43:42 -06:00
Dan Sosedoff and GitHub
dc2b8f7c5e
Switch windows tests from Appveyor to Github Actions ( #611 )
...
* Run unit tests on win in gha
* Decomissions appveyor 🫡
2022-12-07 22:17:19 -06:00
Dan Sosedoff and GitHub
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
adf1e4e9ea
Change go version in the module
2022-12-07 17:15:46 -06:00
Dan Sosedoff
138fd8af09
Remove stray console.log
2022-12-07 12:04:33 -06:00
Dan Sosedoff and GitHub
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 and GitHub
bbe9a97d05
Switch go build target to 1.19 ( #603 )
...
* Switch go build target to 1.19
* Add make docker-run target for testing new images
* Bump appveyor go version
* Fix appveyor paths
2022-12-06 18:34:08 -06:00
Dan Sosedoff
2c745fa68d
Use runtime-provided os/arch info
2022-12-06 18:14:47 -06:00
Dan Sosedoff
88557bfaf5
Fix awk param reference in BUILD_ARCH flag
2022-12-06 18:02:20 -06:00
Dan Sosedoff
829658ae4d
Include build arch info into binary
2022-12-06 17:55:27 -06:00
Dan Sosedoff and GitHub
f48cc5f007
Use go embed to load queries from static files ( #607 )
2022-12-06 17:41:46 -06:00
Dan Sosedoff and GitHub
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
Dan Sosedoff
2f9d737515
Move request parameters logging into api request logger
2022-12-06 12:24:21 -06:00
Dan Sosedoff
dda70352c0
Dont include request path in the log twice
2022-12-06 12:14:55 -06:00
Dan Sosedoff
dbd3b26f6c
Configure logging level and format
2022-12-06 12:09:21 -06:00
Dan Sosedoff and GitHub
e6f8153b34
Merge pull request #604 from sosedoff/version-print-cleanup
...
Add VersionString func to print out full app version
2022-12-06 11:51:42 -06:00
Dan Sosedoff
97e41fbfe5
Add VersionString func to print out full app version
2022-12-06 11:27:47 -06:00
Dan Sosedoff
3e1a93296e
Pass ldflags for make install
2022-12-06 11:09:13 -06:00
Dan Sosedoff and GitHub
e188dd5850
Merge pull request #602 from sosedoff/json-time-marshalling-fix
...
Fix panic with time marshaling
2022-12-05 21:52:37 -06:00
Dan Sosedoff
be81fdab41
Fix panic with time marshalling
2022-12-05 21:47:39 -06:00
Dan Sosedoff and GitHub
5228eca9ae
Merge pull request #601 from sosedoff/update-delete-with-returning-values
...
Handle returning values in update/delete queries
2022-12-05 21:12:46 -06:00
Dan Sosedoff
e3d69d3cfa
Fix lint
2022-12-05 21:01:08 -06:00
Dan Sosedoff
450badfbbb
Handle returning values in update/delete queries
2022-12-05 20:56:21 -06:00
Dan Sosedoff and GitHub
1cd79005c3
Merge pull request #600 from sosedoff/fly-ci-cd
...
Setup fly deployment
2022-12-05 18:00:23 -06:00
Dan Sosedoff
443208b217
Change name to demo
2022-12-05 18:00:03 -06:00
Dan Sosedoff
6b0abf1edc
Swap the deploy branch
2022-12-05 17:58:26 -06:00
Dan Sosedoff
7ca17fdd2c
Fix env var
2022-12-05 17:50:31 -06:00
Dan Sosedoff
098b24c276
Setup fly deployment
2022-12-05 17:49:49 -06:00
Dan Sosedoff and GitHub
85b76960c3
Merge pull request #599 from sosedoff/resizable-query-height
...
Make query input box resizable
2022-12-05 17:14:51 -06:00
Dan Sosedoff
965f1f6eae
Set min height of 100pix
2022-12-05 16:59:49 -06:00
Dan Sosedoff
9b086365d0
Minimize resize handlers code
2022-12-05 16:51:33 -06:00
Dan Sosedoff
fbc228eb6c
Make query input box resizable
2022-12-05 16:35:57 -06:00
Dan Sosedoff and GitHub
97497b12f5
Merge pull request #597 from sosedoff/dev-assets-mode
...
Enable dev assets mode with PGWEB_ASSETS_DEVMODE env var
2022-12-03 20:47:54 -06:00
Dan Sosedoff
695a99dade
Enable dev assets mode with PGWEB_ASSETS_DEVMODE env var
2022-12-03 18:27:46 -06:00
Dan Sosedoff and GitHub
be9a564874
Merge pull request #594 from sosedoff/view-definition-extras
...
Add ability to view and copy views/materialized views definitions
2022-12-03 17:01:44 -06:00
Dan Sosedoff
e6c5075f7c
Add ability to display view definition
2022-12-03 16:50:11 -06:00
Dan Sosedoff
d3ff23ddfe
Add context menu for materialized views
2022-12-03 16:50:11 -06:00
Dan Sosedoff
bf6b2f8dda
Add ability to copy view definition
2022-12-03 16:50:11 -06:00
Dan Sosedoff and GitHub
3cec2c5c66
Merge pull request #596 from sosedoff/fix-flaky-backend-test
...
Fix flaky backend connection test
2022-12-03 16:49:51 -06:00
Dan Sosedoff and GitHub
18f8f35672
Merge pull request #595 from sosedoff/indexes-list-include-sizes
...
Include index size on the index list view
2022-12-03 16:46:36 -06:00
Dan Sosedoff
1b42caf3a7
Fix flaky backend connection test
2022-12-03 16:42:30 -06:00
Dan Sosedoff
96f82201b5
Fix indexes test
2022-12-03 16:31:07 -06:00
Dan Sosedoff
606227d308
Include index size on the index list view
2022-12-03 16:16:00 -06:00
Dan Sosedoff
96625916e2
Tweak http message logger format
2022-12-03 15:11:45 -06:00
Dan Sosedoff
a48f01992f
Enable sessions on fly
2022-12-02 14:47:36 -06:00
Dan Sosedoff
f1f4edf247
Update link to demo page
2022-12-02 14:45:07 -06:00
Dan Sosedoff and GitHub
e5480621ee
Merge pull request #593 from sosedoff/sessions-manager
...
Add internal sessions manager
2022-12-02 14:35:43 -06:00
Dan Sosedoff
07d0010750
Make linter happy
2022-12-02 14:22:50 -06:00
Dan Sosedoff
16726e2461
Add idle timeout into session manager
2022-12-02 14:20:20 -06:00
Dan Sosedoff
0a133dc395
Reorder imports
2022-12-02 14:00:01 -06:00
Dan Sosedoff
73dfcc46c3
Verify client is closed
2022-12-02 13:59:22 -06:00
Dan Sosedoff
bc54c95140
Tweak test run names
2022-12-02 13:57:56 -06:00
Dan Sosedoff
29a6a0df8c
Add session manager tests
2022-12-02 13:56:49 -06:00
Dan Sosedoff
9074d4bfb8
Add internal sessions manager
2022-12-02 13:36:31 -06:00
Dan Sosedoff and GitHub
d8ee50ece6
Merge pull request #591 from sosedoff/connect-backend-logging
...
Configure logger for connect backend
2022-12-02 12:27:17 -06:00
Dan Sosedoff and GitHub
f493d0d04d
Merge pull request #592 from sosedoff/default-build-flags
...
Set LDFLAGS for make build/release commands
2022-12-02 12:21:37 -06:00
Dan Sosedoff
e7ac416440
Sanitize connect token in logging
2022-12-02 12:20:58 -06:00
Dan Sosedoff
e65ced70ff
Set LDFLAGS for make build/release commands
2022-12-02 11:56:18 -06:00
Dan Sosedoff
f19f165afc
Configure logger for connect backend
2022-12-02 11:45:23 -06:00
Dan Sosedoff
f9e376a117
Code cleanup; add make lint task
2022-12-01 16:51:12 -06:00
Dan Sosedoff
dafda4a977
Add VersionInfo struct to render in the /info endpoint
2022-12-01 16:41:46 -06:00
Dan Sosedoff
9b8cbb05e3
Include example backend implementation for the connect feature
2022-12-01 16:31:02 -06:00
Dan Sosedoff and GitHub
6c3bd96606
Merge pull request #589 from sosedoff/request-logger
...
Implement gin request logger with param filtering
2022-12-01 13:14:48 -06:00
Dan Sosedoff
72ecd20dd1
Handle logger levels
2022-12-01 13:01:32 -06:00
Dan Sosedoff
c996d71378
Implement gin request logger with param filtering
2022-12-01 13:01:32 -06:00
Dan Sosedoff and GitHub
1eb86060b5
Merge pull request #590 from sosedoff/appveyor-go-1.18
...
Test with appveyor on go 1.18
2022-12-01 13:00:37 -06:00
Dan Sosedoff
18f2dcbd7d
Test with appveyor on go 1.18
2022-12-01 12:55:41 -06:00
Dan Sosedoff and GitHub
9639fa8db7
Merge pull request #588 from sosedoff/bugfix/587
...
Refactor data export js functionality
2022-12-01 12:11:46 -06:00
Dan Sosedoff
c08d8cf617
Automatically add session ID to all generated URLs
2022-12-01 12:07:27 -06:00
Dan Sosedoff
f6bd4e3a35
Rename exportURL function
2022-12-01 11:51:47 -06:00
Dan Sosedoff
e13c6d0d1a
Refactor code responsible for opening export pages in new window
2022-11-30 14:18:31 -06:00
Dan Sosedoff
2a4434a04a
Generate a new url based on the old one using URL
2022-11-30 14:03:11 -06:00
Dan Sosedoff
dd1fb90355
Refactor bookmarks ssl params
2022-11-23 16:21:30 -06:00
Dan Sosedoff and GitHub
84bf1f091b
Merge pull request #586 from sosedoff/cli-usage-env-vars
...
Print available environment variables in help message
2022-11-22 16:21:29 -06:00
Dan Sosedoff
c103eed463
Comment fixes
2022-11-22 16:17:28 -06:00
Dan Sosedoff
e1aa717b22
Print available environment variables in help message
2022-11-22 16:09:01 -06:00
Dan Sosedoff and GitHub
ee6898f243
Merge pull request #585 from sosedoff/cli-env-vars-support-with-prefix
...
Add support for PGWEB_ prefix environment variables
2022-11-22 15:25:07 -06:00
Dan Sosedoff
a2a5415ace
Print deprecation notice when using unprefixed env var
2022-11-22 15:20:49 -06:00
Dan Sosedoff
b1023cdcfd
Add support for PGWEB_ prefixed env vars
2022-11-22 14:51:13 -06:00
Dan Sosedoff
fa0efb1597
Make getCurrentUser method private
2022-11-22 14:51:13 -06:00
Dan Sosedoff
0a7de05892
Update github.com/jessevdk/go-flags package
2022-11-22 14:51:13 -06:00