Commit Graph

415 Commits

Author SHA1 Message Date
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
dd1fb90355
Refactor bookmarks ssl params 2022-11-23 16:21:30 -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
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
9bfec11b48
Fix linting errors 2022-11-14 16:10:50 -06:00
Dan Sosedoff
c706523bd0
Lint: replace ioutil with os package 2022-11-14 15:47:36 -06:00
Dan Sosedoff
685c222b9d
Lint: replace os.Kill trap with syscall.SIGTERM 2022-11-14 15:43:34 -06:00
Dan Sosedoff
781469c4cf
Version bump: 0.11.12 2022-07-05 21:11:03 -05:00
Boban Acimovic
7b8b9f5c80
update go deps and alpine (#558) 2022-05-20 20:36:11 -05:00
Dan Sosedoff
db2a7a8aa5
Version bump: 0.11.11 2022-03-29 23:32:36 -05:00
Dan Sosedoff
89f84367ad
Change binary codec back to none (#555) 2022-03-26 18:11:33 -05:00
Matthieu Vachon
5803295174
Added binary codec base58 as well as improving the help for --binary-codec flag (#548)
* Added binary codec `base58` as well as improving the help for `--binary-codec` flag
* Added tests for base58
* Fixed tests

Co-authored-by: Matthieu Vachon <matt@streamingfast.io>
2022-01-27 22:10:01 -06:00
Dan Sosedoff
8171907ec2
Version bump: 0.11.10 2022-01-20 21:28:05 -06:00
Dan Sosedoff
e2f5e06c07
Add connect backend tests (#546) 2022-01-08 14:45:21 -06:00
Dan Sosedoff
0794c642e4
Use HTTP 302 status code for successful backend redirect (#544) 2022-01-08 12:25:24 -06:00
Tim Ings
17e95601ec
Explain analyze dropdown button (#532)
* 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
Dan Sosedoff
af79994595
DRY ldflags; include build time into version string (#541) 2021-12-30 15:33:43 -06:00
Dan Sosedoff
706caa44bf
Serialize binary bytea cols into hex/base64 (#537)
- Adds binary serialization into hex/base64
- Default codec is base64
- Codec can be changed via `--binary-codec` CLI option
2021-12-29 11:03:50 -06:00
Dan Sosedoff
ccfa3497f3
GitHub actions migration (#540) 2021-12-25 11:31:41 -06:00
Dan Sosedoff
7ec1e01edd
Version bump: 0.11.9 2021-10-08 21:30:45 -05:00
Dan Sosedoff
0252540c4b
Merge pull request #525 from sosedoff/go-embed-path-prefix-fix
Fix broken path prefix
2021-08-17 20:47:18 -05:00
Dan Sosedoff
46935a7a12
Fix broken path prefix 2021-08-10 12:12:05 -05:00
rui
218800395d
fix: should be build time rather than runtime 2021-07-09 15:52:09 -04:00
Dan Sosedoff
4de356cb1d
Version bump: 0.11.8 2021-07-07 19:11:42 -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
31f6261c1c Version bump: 0.11.7 2020-10-18 10:29:42 -05:00
Dan Sosedoff
86b1ea887c Adjust error message matching for dump spec 2020-10-18 10:18:03 -05:00
Dan Sosedoff
f61c1c45d5 Use regular expression for checking some of the connectio errors 2020-10-18 09:32:34 -05:00
Simon Hanna
27a83bdf9e
Do not show other databases if session is locked
Fixes: #470
2020-07-15 18:11:05 +02:00
Dan Sosedoff
02ddf85af2 Do not terminate if local authentication failed on start 2020-04-23 15:54:12 -05:00
Dan Sosedoff
678a6fd7cb Show results row context menu on custom query results 2020-03-15 19:50:19 -05:00
Dan Sosedoff
3e4e9c30c9 Release 0.11.6 2020-02-19 20:24:33 -06: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
e2217e5f71 Add tests for ssl params 2020-02-11 10:58:40 -06:00
Dan Sosedoff
ce4aea8da1 Add ssl cert/key options 2020-02-05 22:09:13 -06:00
Dan Sosedoff
9c7f566d4d Add option to support sslrootcert parameter 2020-02-05 22:01:25 -06:00
Dan Sosedoff
9d0a0e1db1 Release 0.11.5 2019-12-16 17:15:55 -06:00
Dan Sosedoff
43a2945208 Include go version into info response 2019-12-04 20:29:23 -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
8b1f234b91 Include go version into builds 2019-11-29 13:59:50 -06:00
Dan Sosedoff
bc95e8dced Add extra styling for autocomplete 2019-11-02 13:37:52 -05:00
Dan Sosedoff
8428d268b1 Lint 2019-11-02 13:00:23 -05:00
Dan Sosedoff
7475f398b1 Add support for encrypted ssh keys 2019-11-02 12:44:04 -05:00
Dan Sosedoff
994ceca1d1 Return error when ssh key does not exist 2019-11-02 11:36:31 -05:00
Dan Sosedoff
059764d015 Release 0.11.4 2019-10-05 12:48:21 -05:00
Dan Sosedoff
7a6450091a
Code formatting and cleanup (#442)
* Formatting, extract error messages
* More refactor
* Move errors to a separate file
* Add missing file
* Misc
2019-09-29 12:16:42 -05:00
Dan Sosedoff
b6f01da232 Drop unsupported pg_dump options from connection string 2019-09-25 20:29:21 -05:00
Sylvain DOIGNON
5bb339e1a2 fix SQL export filename 2019-07-31 14:43:55 +02:00
Dan Sosedoff
c830a55a64 Release 0.11.3 2019-07-24 17:07:27 -05: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
Dan Sosedoff
2a0fd54855 Remove comments from the query before checking for restricted keywords 2019-02-25 11:43:04 -06:00
Dan Sosedoff
b83f52707a Remove LOCK/SET from restricted keywords 2019-02-20 20:29:28 -06:00
Dan Sosedoff
5bb6378e94 Switch back readonly mode after test finish 2019-02-20 18:22:44 -06:00
Dan Sosedoff
40eb74529e Reject queries that contain restricted keywords in read-only mode 2019-02-20 18:20:27 -06:00
Dan Sosedoff
d3aaf8f5db Release 0.11.2 2019-02-15 14:09:49 -06:00
Dan Sosedoff
65aae5ec95 Add extra test cases for camelCase table names 2019-02-08 14:02:36 -06:00
Dan Sosedoff
5af4332593 Fix SQL query for camelCase tables row estimation 2019-02-08 13:27:40 -06:00
Dan Sosedoff
dc1009cdd8 Release 0.11.1 2019-01-28 17:11:04 -06:00
Dan Sosedoff
44b6932202 Regenerate bindata 2019-01-28 16:45:41 -06:00
Dan Sosedoff
c32d68809b Add extra note 2019-01-28 14:22:05 -06:00
Dan Sosedoff
d48172986e Fix error when automatic user detection fails 2019-01-28 14:03:45 -06:00
Dan Sosedoff
baa587166c
Merge pull request #405 from Nhat002/fix_encode_query_to_base64_in_export
Add custome base64 encode to handle special characters on query to export result
2019-01-28 11:47:36 -06:00
Dan Sosedoff
a7959ad0fa Fix startup error when DATABASE_URL is set 2019-01-25 10:29:24 -06: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
ae60604ef1 Fix typo 2019-01-16 22:54:23 -06:00
Dan Sosedoff
53c02d8914 Release 0.11.0 2018-12-24 12:57:39 -06:00
Dan Sosedoff
435a67cb5d Tweak sidebar database object counters styles 2018-12-19 12:40:28 -06:00
Dan Sosedoff
9c07ac356b Do not exit with error if local server is not running 2018-12-18 18:11:56 -06:00
Dan Sosedoff
2bd9f39da5 Fix SSH error: ssh: must specify HostKeyCallback 2018-12-14 19:56:33 -06:00
Dan Sosedoff
c4e63dcc85 Regenerate bindata 2018-12-13 22:36:38 -06:00
Dan Sosedoff
794e5a22c1 Rename command.VERSION to command.Version 2018-12-13 22:35:43 -06:00
Dan Sosedoff
eeb5245cb9 Typo fix 2018-12-13 17:56:57 -06:00
Dan Sosedoff
9c1ce91de1 Scope activity list to current database 2018-12-13 12:14:10 -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
c9d94b54d7
Merge pull request #394 from sosedoff/fix-row-estimation
Fix row estimation bug
2018-12-12 14:33:06 -06:00
Dan Sosedoff
7917c2ad35 Simplify TableRowsCount func logic 2018-12-12 13:56:08 -06:00
Dan Sosedoff
2db5ce544f Fix row estimation bug
The variable `table` is mutated from `schema.tablename` to `tablename`
before being passed to other functions, which try to parse the schema
from the name. This results in schema name being `public` because it's
missing from the given table name.
2018-12-12 13:33:55 -06:00
Dan Sosedoff
474b99c6d5 Print out failed query SQL and args with --debug flag 2018-12-12 13:22:36 -06:00
Dan Sosedoff
d1a7e6ecfe More lint 2018-12-04 12:42:37 -06:00
Dan Sosedoff
a5b8e02a98 Cleanup backend handler 2018-12-01 22:35:11 -06:00
Dan Sosedoff
72af00f1b7 Refactor api package 2018-11-30 21:40:28 -06:00
Dan Sosedoff
54da27ef70 Release 0.10.0 2018-11-28 10:25:37 -06:00
Dan Sosedoff
21d2893292 Fix startup behavior when user did not provide a database name 2018-11-27 17:23:55 -06:00
Dan Sosedoff
1189bdef33
Merge pull request #388 from sosedoff/fix-json-naan-panic
Fix JSON marshal panic when dealing with NaN values
2018-11-27 17:00:38 -06:00
Dan Sosedoff
903a265676 Fix JSON marshal panic when dealing with NaN values 2018-11-27 16:51:51 -06:00
Dan Sosedoff
965cf754cf Allow settings url prefix with URL_PREFIX env var 2018-11-27 14:58:50 -06:00
Dan Sosedoff
abb143601b Add test for serverResult func 2018-11-05 17:07:32 -06:00
Dan Sosedoff
29d4b276e2 Do not show row context menu if results are empty 2018-09-14 18:19:24 -05:00
Dan Sosedoff
6ed3d5b501 Add result row context menu to copy value or filter rows 2018-09-14 18:14:18 -05:00
Dan Sosedoff
14037ddad2 Take out failing test due to new sessions behavior 2018-09-14 01:00:47 -05:00