Commit Graph

312 Commits

Author SHA1 Message Date
ldinc
38a3f01868 #282: set flag idle logic to cli-run phase 2017-10-15 01:39:07 +03:00
ldinc
a120b58dc2 #282: updated bindata 2017-10-14 14:37:20 +03:00
ldinc
33be6b036d Merge branch 'master' into issue#282 2017-10-14 14:34:32 +03:00
Dan Sosedoff
046022221e UI and design tweaks 2017-10-13 23:04:19 -05:00
Dan Sosedoff
ed7557c5da Regenerated bindata 2017-10-13 22:34:16 -05:00
ldinc
d4dde3fe4f #282 fix disabled state per idle timeout 2017-10-14 03:15:31 +03:00
ldinc
3067b06bf6 #282: added timeout flags & tuned client.IsIdle() 2017-10-14 03:08:04 +03:00
Dan Sosedoff
4ad70d5392 Tweak wording 2017-10-07 11:30:12 -05:00
Dan Sosedoff
d8ce8231cc Dot now allow using startup bookmark in multi-session mode 2017-10-07 09:25:00 -05:00
Dan Sosedoff
277e2d6cd8 Add an extra test to verify SSHinfoIsEmpty does not panic 2017-10-03 23:03:02 -05:00
Dan Sosedoff
58ae69de0b Fix panics when sshinfo is not set on bookmarks 2017-10-03 23:00:18 -05:00
Dan Sosedoff
4cacfc253c Release 0.9.9 2017-09-28 20:42:14 -05:00
Dan Sosedoff
b1dd4b5308 Add new CLI option to disable SSH connections 2017-09-26 23:56:27 -05:00
Dan Sosedoff
5e22795828 Allow setting ssh connection key file, fix connection ui 2017-09-26 23:29:28 -05:00
Dan Sosedoff
62d88121cd Automatically close idle sessions 2017-09-22 22:44:32 -05:00
Dan Sosedoff
5d1cc211b0 Add database export test 2017-09-22 22:06:36 -05:00
Dan Sosedoff
83598f4013 Merge pull request #266 from sosedoff/connect-backend
Add ability to connect with settings from third-party backend
2017-09-21 20:37:46 -05:00
Dan Sosedoff
92ec968d5e Automatically open pgweb page if its already running 2017-09-21 17:16:09 -05:00
Dan Sosedoff
049aa4ec44 Require --connect-backend flag to be set if any other backend flags are specified 2017-09-21 02:06:14 -05:00
Dan Sosedoff
869fd8c6bc Refactor the third-party connect backend functionality 2017-09-21 01:21:26 -05:00
Dan Sosedoff
d175b0af34 Add descriptions for cli backend options 2017-09-19 00:45:07 -05:00
Dan Sosedoff
0aff72059b Check for response status when fetching credentials 2017-09-19 00:43:21 -05:00
Dan Sosedoff
73816ff2d7 Add ability to connect with settings from third-party backend 2017-09-19 00:43:21 -05:00
Dan Sosedoff
f5f595ac02 Merge pull request #270 from sosedoff/data-export
Database export
2017-09-19 00:41:04 -05:00
Dan Sosedoff
26ea9fc1b8 Fix the JSON beautifier flag 2017-09-16 21:57:04 -05:00
Dan Sosedoff
e771d6f49e Export database or table to sql 2017-09-16 20:32:41 -05:00
Dan Sosedoff
28b0840e69 Move some of the util functions to util.js 2017-09-16 14:03:42 -05:00
Dan Sosedoff
81af2a9a27 Add table results headers context menu 2017-09-16 13:50:22 -05:00
Dan Sosedoff
6ab30ed308 Update the client last usage timestamp 2017-09-14 00:16:40 -05:00
Dan Sosedoff
3a9bb58646 Merge pull request #264 from sosedoff/print-version-on-start
Print postgres version on start in a single-session mode
2017-09-14 00:00:21 -05:00
Dan Sosedoff
af7e504e4f Print postgres version on start in a single-session mode 2017-09-13 23:42:44 -05:00
Dan Sosedoff
d786d0018e Make JSON formatting a feature flag, enabled by default 2017-09-13 23:27:54 -05:00
Dan Sosedoff
e44e66a8e8 Use indent marshaller for JSON results by default 2017-08-04 22:10:12 -05:00
Dan Sosedoff
5e748d0cef Release 0.9.8 2017-08-04 21:44:22 -05:00
Dan Sosedoff
4f90561c41 Regenerate bindata 2017-08-04 21:41:15 -05:00
Steven Kabbes
2d03aa02e2 test: attempt to fix tests again 2017-08-04 14:16:59 -07:00
Steven Kabbes
8d4d564935 test: fix tests to expect comment column 2017-08-04 14:13:49 -07:00
Steven Kabbes
e710dbf720 Add comments to tables and columns 2017-08-04 14:00:52 -07:00
Dan Sosedoff
574f642200 Require confirmation to close the connection 2017-06-05 23:15:03 -05:00
Dan Sosedoff
fd6e4cc189 Merge pull request #245 from sosedoff/for-of-fix
Javascript fixes for IE9-11
2017-06-05 22:46:03 -05:00
Dan Sosedoff
26b2cdc194 Fix js on IE9-11 2017-06-05 22:29:44 -05:00
Dan Sosedoff
75dc1c1548 Fall back to sslmode=disable if ssl mode is not set or invalid in bookmarks 2017-06-05 21:29:09 -05:00
Dan Sosedoff
943963f760 Fix test for mime x-font-woff, pin down golang versions in travis 2017-06-05 21:08:56 -05:00
Dan Sosedoff
3ed194b7bc Remember sort column and order for pagination 2017-05-16 22:34:58 -05:00
Dan Sosedoff
c764d53b88 Regenerate bindata 2017-05-16 21:28:24 -05:00
Dan Sosedoff
ccc5eddf92 Move all CLI logic into its own package 2017-05-16 21:28:07 -05:00
Bo Jeanes
c3f518e5b7 Show query waiting for 9.6 in activity section 2017-05-11 13:30:16 +10:00
Dan Sosedoff
bf14066aba Alias procid column to pid so that frontend can properly read it 2017-05-09 23:01:10 -05:00
Dan Sosedoff
c592d0063d Set activity queries for different pg versions 2017-05-09 22:51:26 -05:00
Dan Sosedoff
e9787440fb Set server version for the client on start up 2017-05-09 21:53:24 -05:00
Dan Sosedoff
1ee02d1451 Add activity query client test 2017-05-09 21:53:24 -05:00
Dan Sosedoff
2378ba894d Reset results table on manual disconnect 2017-05-08 21:37:24 -05:00
Tamir Duberstein
c4a33206ce
api: properly check for errors
This results in NPE when cl.Info() returns an error.
2017-04-29 16:56:31 -04:00
Dan Sosedoff
4833a76b05 Version bump: 0.9.7 2017-04-04 22:10:45 -05:00
Dan Sosedoff
f594dd77fd Update bindata 2017-04-04 22:10:26 -05:00
Dan Sosedoff
701e536a90 Remove table rows when switching to custom query view 2017-02-25 14:24:57 -06:00
Dan Sosedoff
36fd4871e1 Show number of rows rendered for custom sql query 2017-02-25 14:04:48 -06:00
Pavel Kiselev
4704a8a234
Override in tests 2017-01-24 08:06:12 +07:00
Pavel Kiselev
9b1d915dd1
Ability to override bookmarks directory 2017-01-24 07:55:18 +07:00
Dan Sosedoff
33f3e20849 Use port 30000 to test port availability so it does not interfere with running pgweb instance 2017-01-20 13:41:24 -06:00
Dan Sosedoff
4af979ac9b Fix issue with long database names in header 2017-01-10 13:44:42 -06:00
Florian Duraffourg
5ffd6d612b Fix path rewrite on DB change 2017-01-10 16:14:50 +01:00
Dan Sosedoff
412089948c Do not return error when session is locked and database url is blank 2016-11-20 16:44:33 -06:00
Dan Sosedoff
b580b2456a Version bump: 0.9.6 2016-11-18 12:36:27 -06:00
Dan Sosedoff
7e27cfe5f8 Regenerate bindata 2016-11-17 21:43:52 -06:00
Dan Sosedoff
20a5646a53 Merge pull request #202 from sosedoff/always-show-sidedebar
Display empty sidebar
2016-11-15 22:06:18 -06:00
Dan Sosedoff
0510634db7 Move bookmark default port parsing to readServerConfig func 2016-11-15 22:01:42 -06:00
Dan Sosedoff
59018287de Fix issue with default port in bookmark; cleanup 2016-11-15 21:58:58 -06:00
Dan Sosedoff
e1edc5b550 Resolve conflict with master 2016-11-15 21:51:23 -06:00
akarki15
fedde804e3 Remove error return value from ConvertToOptions
ConvertToOptions can't return any error.
2016-11-15 22:03:32 -05:00
Dan Sosedoff
7467553bf2 Fix bindata 2016-11-15 20:55:17 -06:00
Dan Sosedoff
9f8f45db5a Display sidebar even if there are no tables (or any other objects) 2016-11-15 20:55:03 -06:00
akarki15
b1fdbf714b Make assets. 2016-11-12 13:19:09 -05:00
akarki15
68db934507 Use generic typed error pattern
The codebase doesn't yet use the explicitly typed error pattern. To keep
things consistent, lets use the generic error type.
2016-11-12 12:30:15 -05:00
akarki15
1b4902f196 initClient uses bookmark if it exists
if options.Bookmark is set, initClient will now use
it to create a client from the bookmarked settings.

initClientUsingBookmark uses methods introduced in
previous commits. It constructs connection string
to db from Bookmark.Url if it exists. If not, it
uses other fields in Bookmark to construct the
connection string. An implication of this is that
the Url field of Bookmark takes precedence.
2016-11-10 20:06:39 -05:00
akarki15
61dfe67ca8 Add a method to convert bookmark to options
We will use client.NewFromURL to create a client
from stored bookmark in next commit. Since
client.NewFromURL takes in a command.Options, lets
add a method on Bookmark to get corresponding Option.
2016-11-10 20:06:39 -05:00
akarki15
038cb620c6 Set the type of Bookmark.Port to int
We know that a port is a number. Lets enforce that
rule at type level by setting it so.

This commit also adjusts test funcs and helper data
to fit Port's new int type.
2016-11-10 20:06:39 -05:00
akarki15
0e88e3e1f4 Add a func to read bookmark from stored toml file
Given a bookmark path and bookmark name, GetBookmark
returns a Bookmark object that corresponds to the
stored bookmark settings.

In next commits, we will use this method to read
stored bookmarks and create a db client.
2016-11-10 20:06:39 -05:00
akarki15
f4fb5744ef Add method that returns if bookmark's ssh is empty
We will use this method in upcoming commit to create
client from stored bookmark.
2016-11-10 20:06:39 -05:00
Fabio Galli
9cb75ec608 Updated bindata file to align with "Explain and Export: favor selected text" change 2016-11-09 09:53:34 +01:00
Dan Sosedoff
58e5609b59 Make tabs sticky: remember tab when switching between tables 2016-11-06 22:09:46 -06:00
Dan Sosedoff
172f9a82d0 Remove dummy data from database list and tweak the link style 2016-11-06 19:01:38 -06:00
Dan Sosedoff
72325a6cbc Show connect/disconnect button if connection info fetch failed 2016-11-05 22:51:10 -05:00
Dan Sosedoff
a3c341b5b4 Show list of databases and allow switching by clicking on current database name 2016-11-05 22:49:17 -05:00
Dan Sosedoff
7d08017c7f Add endpoint to switch active database 2016-11-05 22:23:26 -05:00
Dan Sosedoff
20da36416c Implement session locking with --lock-session option 2016-11-05 21:35:11 -05:00
Dan Sosedoff
97b612c1b3 Merge pull request #193 from sosedoff/read-only-mode
Read only mode
2016-11-05 21:29:30 -05:00
Dan Sosedoff
887acd5a55 Allow stopping any running query from activity panel 2016-11-05 19:53:10 -05:00
Dan Sosedoff
da0916b8c7 Add note about skipped windows tests 2016-11-05 18:53:42 -05:00
Dan Sosedoff
8f90ec4173 Add missing history uniqueness test 2016-11-05 17:52:18 -05:00
Dan Sosedoff
2d2bd1d0b1 Add test to verify readonly mode 2016-11-05 17:51:34 -05:00
Dan Sosedoff
661fed0dbb Set default transaction mode to read only with --readonly flag 2016-11-05 17:43:30 -05:00
Dan Sosedoff
1e88d3dc5f Merge pull request #191 from sosedoff/order-escape-query
Add escaping to order statement
2016-11-03 20:08:55 -05:00
Dan Sosedoff
d0d84a62cd Add escaping to order statement 2016-11-03 19:56:55 -05:00
Dan Sosedoff
7aa7b5526b Show pagination only on rows view 2016-11-03 19:27:14 -05:00
Dan Sosedoff
812aff9686 Regenerate bindata 2016-10-11 18:12:39 -05:00
Dan Sosedoff
3c3c61fee2 Version bump: 0.9.5 2016-10-01 20:24:49 -05:00
Dan Sosedoff
f3bc35ad35 Allow setting auth user and pass using variables 2016-09-28 20:37:07 -05:00
Dan Sosedoff
ae8b87fb18 Regenerate bindata 2016-09-05 12:45:44 -05:00
Dan Sosedoff
12dcc45e88 Formatting; regenerated bindata 2016-09-01 10:06:51 -05:00
Dan Sosedoff
1f39c2e229 Lint: Fix sql statements naming 2016-09-01 10:05:46 -05:00
Dan Sosedoff
2ca5463d1d Merge pull request #167 from trengrj/limit-schema
Only view schema with USAGE privileges
2016-09-01 09:56:46 -05:00
Dan Sosedoff
ee93fbb120 Fix bindata 2016-08-01 10:32:22 -05:00
Dan Sosedoff
3ae6392a82 Version bump: 0.9.4 2016-07-29 10:37:18 -05:00
Dan Sosedoff
ac16a94a92 Update bindata 2016-07-29 10:36:45 -05:00
Steven Kabbes
22810a96b7 Update bindata 2016-07-27 22:59:58 -07:00
John Trengrove
838b275c19 Only view schema with USAGE privileges 2016-07-18 13:06:48 +10:00
Dan Sosedoff
789719ada6 Version bump: 0.9.3 2016-06-30 10:27:37 -05:00
Dan Sosedoff
790833dc4e Specify cell timestamp layout for CSV export, #163 2016-06-27 22:38:48 -05:00
Dan Sosedoff
80f2641bae Update bindata 2016-06-27 20:24:55 -05:00
Ernad Halilovic
d607a76097 A small typo fix 2016-04-15 12:51:28 +02:00
Dan Sosedoff
34056c1c66 Version bump: 0.9.2 2016-03-01 19:48:15 -06:00
Dan Sosedoff
c58138b4cc Do not reset connection form when clicking on 'cancel' button, fixes #138 2016-03-01 19:42:01 -06:00
Dan Sosedoff
c57b477dc9 Add tests for getSessionId helper 2016-02-26 08:48:55 -08:00
Dan Sosedoff
86f63eecc5 Always include session id in get queries, fixes #142 2016-02-26 08:16:17 -08:00
Dan Sosedoff
ff25927b52 Regenerate bindata 2016-02-24 20:23:51 -08:00
Dan Sosedoff
5ecb66a4ef Fix connection button status while connection is being established, fixes #134 2016-02-20 21:03:35 -06:00
Dan Sosedoff
24c5ecc437 Add options tests 2016-02-20 20:45:50 -06:00
Dan Sosedoff
0a144a633d Add ability to launch pgweb with url prefix 2016-02-19 21:14:56 -06:00
Dan Sosedoff
f308d1cfde Fix issue with long table names in sidebar 2016-02-19 20:32:43 -06:00
Dan Sosedoff
4b4f778360 Return number of affected rows if sql query is update or delete 2016-02-18 22:36:01 -06:00
Dan Sosedoff
6edc384c05 Only run actual query without any comments 2016-02-18 22:18:07 -06:00
Dan Sosedoff
540613645f Replace url-unsafe characters in base64 query data 2016-02-18 21:17:31 -06:00
Dan Sosedoff
586605557e Hide cancel button when disconnected 2016-02-05 17:44:36 -06:00
Dan Sosedoff
f08c9d36a6 Add disconnect button to close active connection 2016-02-04 23:13:54 -06:00
Dan Sosedoff
da43314332 Add disconnect endpoint 2016-02-04 23:05:42 -06:00
Dan Sosedoff
ccd5455103 Add double quotes to column name in filters 2016-01-31 20:12:56 -06:00
Dan Sosedoff
d3d408bc68 Version bump: 0.9.1 2016-01-25 19:16:21 -06:00
Dan Sosedoff
a9bafda41c Fix bug with tables context menu 2016-01-22 13:36:06 -06:00
Dan Sosedoff
3d1fd4a7aa Bump ajax timeout to 5 mins 2016-01-22 12:14:19 -06:00
Dan Sosedoff
951bec8596 Go vet 2016-01-22 12:12:00 -06:00
Dan Sosedoff
5e47e8bd29 Setup ajax timeout to 2 minutes to allow long running queries 2016-01-21 20:13:12 -06:00
Dan Sosedoff
eccb430a9b Automatically hide ssh fields if bookmark does not have ssh config 2016-01-20 20:10:17 -06:00
Dan Sosedoff
bd207a3551 Fix js error when custom sql query returns no results 2016-01-20 09:21:31 -06:00
Dan Sosedoff
d3f12802a3 Version bump: 0.9.0 2016-01-19 13:41:42 -06:00
Dan Sosedoff
218394fefc Hide ssh option when switching to url based connection option 2016-01-18 09:50:56 -06:00
Dan Sosedoff
ac5c18e261 Automatically switch to SSH panel if bookmark uses ssh 2016-01-17 15:28:22 -06:00
Dan Sosedoff
9bfaae7194 Merge with master 2016-01-17 15:22:33 -06:00
Dan Sosedoff
4844270f0b Return empty rows collection if query does not have any rows 2016-01-17 15:05:57 -06:00
Dan Sosedoff
3167d96cfc use a different query to fetch materialized view structure 2016-01-17 15:00:33 -06:00
Dan Sosedoff
9766bb2ed2 Add ability to run tests on postgresql 9.1-9.5 2016-01-15 12:33:30 -06:00
Dan Sosedoff
3af20f9327 Display materialized views 2016-01-14 21:30:19 -06:00
Dan Sosedoff
983f285373 Point db to local tunnel if ssh is enabled 2016-01-14 21:14:45 -06:00
Dan Sosedoff
f0f447857f Tunnel implementation, allow using ssh on connection screen 2016-01-14 19:50:01 -06:00
Dan Sosedoff
fb66acebc3 Use anonymous structs in the test 2016-01-14 16:55:05 -06:00
Dan Sosedoff
2721a90455 Use session-storage to keep per-tab sessions instead of per-browser 2016-01-14 13:19:01 -06:00
Dan Sosedoff
52bd1ed1d4 Bindata 2016-01-13 01:29:31 -06:00
Dan Sosedoff
68c2b4d084 Initial ssh tunnel implementation 2016-01-13 01:29:14 -06:00
Dan Sosedoff
556e7d445a Remove unused sequences code 2016-01-12 22:05:32 -06:00
Dan Sosedoff
fbaa61bbbc Regenerate bindata 2016-01-12 21:46:06 -06:00