Commit Graph

224 Commits

Author SHA1 Message Date
Dan Sosedoff
c486885159
Fetch local queries on db connect () 2023-02-17 12:26:37 -06:00
Dan Sosedoff
41bf189e6b
Local queries ()
* 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 ()
* Add context menu to display database tables stats

* Move table stats implementation into client
2023-01-23 14:10:26 -06:00
Dan Sosedoff
d7ecb5494d
Show error message when API calls fail () 2023-01-18 13:29:04 -06:00
Dan Sosedoff
96bd15b3e2
Display cell content via context menu () 2023-01-12 11:55:34 -06:00
Dan Sosedoff
f3353d9007
History page query loading fixup () 2022-12-28 21:56:29 -06:00
Dan Sosedoff
5afecfe52c
Fix bookmarks ID check () 2022-12-27 19:03:53 -06:00
Dan Sosedoff
239037b4c6
Add query execution stats to api endpoint () 2022-12-25 13:25:18 -06:00
Dan Sosedoff
0cd61093b9
Display empty schemas on the sidebar ()
* 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 ()
* 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
7557ac854e
Configure client side query timeout ()
* 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
1754274d46
Fix ui flake when switching to activity and connection tabs 2022-12-08 12:43:42 -06:00
Dan Sosedoff
138fd8af09
Remove stray console.log 2022-12-07 12:04:33 -06:00
Dan Sosedoff
38051b9465
Add support for user functions ()
* 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
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
695a99dade
Enable dev assets mode with PGWEB_ASSETS_DEVMODE env var 2022-12-03 18:27:46 -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
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
4c096e8774
Auto-detect the query from the query source based on user selection ()
* Auto-detect the query from the query source based on user selection

* Misc comment
2022-02-10 20:14:42 -06:00
Tim Ings
17e95601ec
Explain analyze dropdown button ()
* Adds bootstrap dropdown plugin
* Float dropdown toggle left
* Extract query running message toggles
* Adds analyze function and api call
* Adds analyze api
2022-01-03 19:05:46 -06:00
Matthieu Vachon
cc1666b16a Removes (annoying) alert on column copy value
All other copy to clipboard action are `alert` free like copying a table name to the clipboard. I think it should be the same for copying a column value.

If you think some feedback is necessary, maybe we should see a small label showing up than closing shortly after. As a comparison, it appears GitHub, in the commit list view, does not shot any feedback anymore (is it a bug maybe? because remote url copy still shows a feedback, anyway :)).

P.S. My editor automatically removed some trailing white spaces, if you prefer, I can revert those.
2021-12-07 23:06:28 -05:00
Nikita Kazarian
8e2c826ba3 go 1.16 features
- use go embed instead of go-binary and remove all about old assets (go 1.16 feature)
- pin gox version (go 1.16 feature)
- update ci to go 1.16
2021-03-05 03:47:01 +03:00
Dan Sosedoff
707fea6d13 Disable autocomplete on database search field 2020-10-18 09:22:53 -05:00
Dan Sosedoff
678a6fd7cb Show results row context menu on custom query results 2020-03-15 19:50:19 -05:00
Dan Sosedoff
6025b7afb2 Remove double click action on cell
This feature was a source of confusion for new pgweb users for quite
some time now. Most people thought by double-clicking the cell it
would allow them to edit the value since the column is replaced
with textarea. The textarea was there to copy the cell's value, not
for editing. Feature is no longer required due to availability of a
cell context menu, which provides a link to copy the value.
2020-02-12 13:14:58 -06:00
Dan Sosedoff
5d2ec70476 Autocomplete on all database objects 2019-12-04 19:36:09 -06:00
Jim Smith
e5c53d598c Fix for visual glitch when schema name wider than 250px 2019-12-04 18:28:14 +00:00
Dan Sosedoff
bc95e8dced Add extra styling for autocomplete 2019-11-02 13:37:52 -05:00
Dan Sosedoff
9afc152f25
Merge pull request from oleggator/autocompletion
Add SQL keyword autocompletion
2019-11-02 13:36:49 -05:00
Dan Sosedoff
7475f398b1 Add support for encrypted ssh keys 2019-11-02 12:44:04 -05:00
Oleg Utkin
abf6acf82e add sql keyword autocompletion 2019-10-03 01:20:18 +03:00
Oleg Utkin
50a9a87a6a upgrade ace to 1.4.6 2019-10-03 01:17:29 +03:00
Dan Sosedoff
f31143ba3a Set odd background color for table rows 2019-07-05 17:28:55 -05:00
Dan Sosedoff
5c3b21d711 Expland lists of objects on search 2019-07-05 16:20:46 -05:00
Dan Sosedoff
416cae3101 Add database object filter to the sidebar 2019-07-05 16:18:29 -05:00
Dan Sosedoff
819b13fe55 Restructure sidebar 2019-07-05 15:19:05 -05:00
Nhat Tran
25304f8229 Fix: missing base64.js in index.html and remove blank space 2019-01-25 12:04:21 +08:00
Nhat Tran
bc0602c523 Add custome base64 encode to handle special character 2019-01-24 15:35:16 +08:00
Dan Sosedoff
435a67cb5d Tweak sidebar database object counters styles 2018-12-19 12:40:28 -06:00
Dan Sosedoff
eeb5245cb9 Typo fix 2018-12-13 17:56:57 -06:00
Dan Sosedoff
658d14314b Show pgweb version on homep age and check for newer releases 2018-12-12 20:35:07 -06:00
Dan Sosedoff
ad82841eb2 Force switch back to default connection settings view 2018-12-12 18:29:07 -06:00
Dan Sosedoff
29d4b276e2 Do not show row context menu if results are empty 2018-09-14 18:19:24 -05:00