Dan Sosedoff
|
9968b088ea
|
Code formatting tweaks
|
2015-01-13 21:18:11 -06:00 |
|
Dan Sosedoff
|
da58a9b0a6
|
Fix connection string printing format in debug mode
|
2015-01-06 19:17:45 -06:00 |
|
Dan Sosedoff
|
58a9c2b2bf
|
Add history record struct and collect timestamps for query history
|
2015-01-04 18:11:13 -06:00 |
|
Dan Sosedoff
|
9b0b71363f
|
Add /api/:table/rows endpoint to fetch table rows with sorting options
|
2015-01-03 19:42:56 -06:00 |
|
Dan Sosedoff
|
dada1ab0c1
|
Fix debug connection string output
|
2014-12-17 21:59:43 -06:00 |
|
Dan Sosedoff
|
7859870646
|
Swtich to use new connection string builder function
|
2014-12-17 21:59:26 -06:00 |
|
Dan Sosedoff
|
2bc16d6c1b
|
Print connection string when creating a new client with debug option
|
2014-12-12 18:21:40 -06:00 |
|
Dan Sosedoff
|
5b073c4978
|
Print server connection string in debug mode
|
2014-12-06 12:45:45 -06:00 |
|
Dan Sosedoff
|
f49735094b
|
Implement client.fetchRows to reduce duplication
|
2014-11-21 17:07:32 -06:00 |
|
Dan Sosedoff
|
5020ef10ea
|
Propertly initialize string slice for Tables() method
|
2014-11-21 17:00:02 -06:00 |
|
Chris Bandy
|
96d7d6eb94
|
Move statements out of Client
This reverts e071532d35
|
2014-11-21 20:47:33 +00:00 |
|
Chris Bandy
|
cd58573730
|
Use query parameters rather than Sprintf
|
2014-11-21 20:47:33 +00:00 |
|
Chris Bandy
|
159f589c0c
|
Retrieve table row count from statistics rather than table scan
See https://wiki.postgresql.org/wiki/Slow_Counting
|
2014-11-21 20:47:33 +00:00 |
|
Chris Bandy
|
597428b6c5
|
Include the session user and search path in connection info
|
2014-11-21 04:57:33 +00:00 |
|
Chris Bandy
|
e071532d35
|
Move statements inline within Client
|
2014-11-21 04:52:53 +00:00 |
|
Chris Bandy
|
b771465d99
|
Do not record history of internal queries
|
2014-11-21 04:52:53 +00:00 |
|
Dan Sosedoff
|
45f42dbb5e
|
Define Row type as []interface{}
|
2014-11-20 22:33:08 -06:00 |
|
Dan Sosedoff
|
27104c05f1
|
Return NewError function where it belongs
|
2014-11-20 21:43:51 -06:00 |
|
Dan Sosedoff
|
028ef449dc
|
Reorganize go imports
|
2014-11-10 23:10:05 -06:00 |
|
Dan Sosedoff
|
7ac9bee098
|
Add API method to connect to server with given url
|
2014-10-31 22:37:58 -05:00 |
|
Dan Sosedoff
|
2a780be1c3
|
Move all SQL statements into a separate file
|
2014-10-29 22:53:29 -05:00 |
|
Dan Sosedoff
|
bf2df4e74f
|
Set a correct content type header for CSV endpoint
|
2014-10-18 08:15:13 -07:00 |
|
Dan Sosedoff
|
abfd6dd688
|
Add client.TableInfo method to get table data details
|
2014-10-17 20:27:30 -07:00 |
|
Chris Bandy
|
814c33938c
|
Move info query into client
|
2014-10-16 02:59:43 +00:00 |
|
Chris Bandy
|
42f79a7079
|
Move table schema query into client
|
2014-10-16 02:57:52 +00:00 |
|
Dan Sosedoff
|
5886f153f4
|
Bring back /databases endpoint
|
2014-10-15 16:05:23 -05:00 |
|
Dan Sosedoff
|
32d7bf864f
|
Change static queries prefix to PG_
|
2014-10-14 21:53:57 -05:00 |
|
Dan Sosedoff
|
7d7e67a54e
|
Use db.Ping to test connection
|
2014-10-11 22:38:32 -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
|
1b152c80a0
|
Add csv header to response
|
2014-10-10 20:41:15 -05:00 |
|
Dan Sosedoff
|
38cef071e8
|
Convers query results to CSV with format flag
|
2014-10-10 18:56:02 -05:00 |
|
Dan Sosedoff
|
40cae0ac1c
|
Restructure
|
2014-10-10 17:14:17 -05:00 |
|