Commit Graph

43 Commits

Author SHA1 Message Date
Dan Sosedoff
ee4883b448 Use ssl flag when generating connection string, remove hardcoded value 2014-10-28 22:16:38 -05:00
Clint Shryock
a9e664f41d Use DATABASE_URL environment variable if no Url is set 2014-10-28 08:52:04 -05:00
Dan Sosedoff
8cba657773 Add version and debug long flag names 2014-10-27 15:50:57 -05:00
Dan Sosedoff
01acd9a90e Use exit(0) when printing version 2014-10-27 15:49:43 -05:00
Dan Sosedoff
a2191b57d3 Oops, forgot to update version 2014-10-27 15:21:33 -05:00
Dan Sosedoff
7522877051 Rename --httpPort flag to --listen 2014-10-26 18:43:33 -05:00
Dan Sosedoff
fca267f1f4 Gofmt and refactor openPage 2014-10-26 11:47:15 -05:00
dmnlk
eac36dff28 add httpport option, this option can be change server port 2014-10-27 00:31:49 +09:00
Dan Sosedoff
f9e412ea3a Version bump: 0.2.0 2014-10-23 10:12:50 -06:00
Dan Sosedoff
19f7c494e9 Add -v flag to print current version 2014-10-22 07:54:47 -06:00
Dan Sosedoff
21bcc6e4b8 Add /tables/:name/info endpoint to get table data details 2014-10-17 20:30:08 -07:00
Dan Sosedoff
126991f485 Automatically open web page if operatin system supports command 2014-10-16 21:45:52 -05:00
Dan Sosedoff
5886f153f4 Bring back /databases endpoint 2014-10-15 16:05:23 -05:00
Dan Sosedoff
7482d4d4e7 Version: 0.1.0 2014-10-13 21:12:19 -05:00
Dan Sosedoff
e78499551e Disable Gin default debug mode, add -d flag to control it 2014-10-13 18:47:16 -05:00
Dan Sosedoff
e38aedd176 Remove unused options var 2014-10-13 18:40:51 -05:00
Dan Sosedoff
d55671a0fc Add view instructions during startup 2014-10-13 18:40:17 -05:00
Dan Sosedoff
f848116e1b Serve assets with bindata 2014-10-13 14:40:56 -05:00
Dan Sosedoff
05255aa13e Fix path 2014-10-13 13:56:32 -05:00
Dan Sosedoff
9bd0508219 WIP 2014-10-13 13:55:19 -05:00
Dan Sosedoff
7d7e67a54e Use db.Ping to test connection 2014-10-11 22:38:32 -05:00
Dan Sosedoff
ba74d8193c Add function exitWithMessage to terminate program 2014-10-11 22:33:59 -05:00
Dan Sosedoff
8dcb66d58c Exit if selected database does not have any tables 2014-10-11 22:32:10 -05:00
Dan Sosedoff
e2bc79f686 Add /explain endpoint 2014-10-11 13:24:12 -05:00
Dan Sosedoff
d786919a36 Add endpoint to fetch table indexes 2014-10-11 13:20:16 -05:00
Dan Sosedoff
8b3dd2563a Move query history slice into client struct 2014-10-10 21:25:02 -05:00
Dan Sosedoff
7bd23d470f Update readme, fix options parsing 2014-10-10 17:20:14 -05:00
Dan Sosedoff
617d4ce5bf Print startup errors 2014-10-10 17:18:19 -05:00
Dan Sosedoff
40cae0ac1c Restructure 2014-10-10 17:14:17 -05:00
Dan Sosedoff
7adf74ffd4 Tweaks 2014-10-10 00:28:33 -05:00
Dan Sosedoff
29f7e2d58c Check connection before starting server 2014-10-10 00:25:06 -05:00
Dan Sosedoff
e80a4dea06 Add /info endpoint 2014-10-10 00:03:03 -05:00
Dan Sosedoff
26de09a2cd Use table name from url params 2014-10-09 23:48:07 -05:00
Dan Sosedoff
90e9e051de Remove unused code 2014-10-09 22:47:20 -05:00
Dan Sosedoff
65420494d2 Add support for connection string as url 2014-10-09 22:42:52 -05:00
Dan Sosedoff
b3da515b81 Change /tables/:name endpoint response format 2014-10-09 22:35:43 -05:00
Dan Sosedoff
b8e222a440 Return tables as array 2014-10-09 22:14:38 -05:00
Dan Sosedoff
50230be564 Record query history 2014-10-09 19:59:18 -05:00
Dan Sosedoff
5ce35e576b Add -s option to specify static content location 2014-10-09 19:11:03 -05:00
Dan Sosedoff
5b1e6bf2fa Add static dir 2014-10-09 19:05:51 -05:00
Dan Sosedoff
4446218c7a Add table details endpoint 2014-10-09 18:48:22 -05:00
Dan Sosedoff
88743714f0 Add /databases endpoint 2014-10-09 09:58:40 -05:00
Dan Sosedoff
322ff9753b Initial 2014-10-08 21:26:57 -05:00