Sandro Santilli
729462b500
Fix throw in async function (verifyRequest)
2012-10-18 11:34:39 +02:00
Sandro Santilli
8574517ab8
Add a userid_to_dbuser function
2012-10-18 11:33:35 +02:00
Sandro Santilli
d399d2153f
Improve input data control in test for "dp" parameter
2012-10-18 11:32:08 +02:00
Sandro Santilli
d9b733e5c6
Recognize ALTER as a writing query
2012-10-15 13:40:04 +02:00
Sandro Santilli
d23416cc60
Set X-Cache-Channel to NONE when the SQL may write to the database
...
Note that "may write" allows for false positive, so there could be
less cache hits than possibly allowable. If this will be a problem
for any real use case we could still improve the regular expression
used to detect "writing" queries.
Automated tests are added to check for the X-Cache-Channel header
with both writing and read-only queries performed by authenticated
requests.
Closes #27
Closes #43
2012-10-15 13:23:17 +02:00
Sandro Santilli
9c72f66fb3
Put a copy of CDB_* functions from cartodb to this repo
...
One day we should source those script directly from the cartodb repo
2012-10-15 13:15:48 +02:00
Sandro Santilli
70616b5bea
Grant db owner privs on public table too
2012-10-15 13:06:28 +02:00
Sandro Santilli
553146e6dd
Add consistency checking in packageResult about format value
2012-10-12 12:57:03 +02:00
Sandro Santilli
7b7a48103d
Updated with "format" parameter related changes
2012-10-12 12:21:37 +02:00
Sandro Santilli
ac83700810
Send a 404 on unsupported format requested
2012-10-12 12:17:35 +02:00
Sandro Santilli
0d91ab2c6a
Survive multiple "format" parameters, only using last one
2012-10-12 11:42:03 +02:00
Sandro Santilli
490b3f7e1f
Add SVG to the list of supported formats
2012-10-11 12:47:30 +02:00
Sandro Santilli
e43fdc409a
Shrinkwrapped current deps
2012-10-11 12:47:29 +02:00
Sandro Santilli
aa350768ef
Restrict listening host to configured `node_host
`
2012-10-11 12:47:28 +02:00
Sandro Santilli
55d540a7bd
Add SVG to the list of supported formats
2012-10-10 18:51:47 +02:00
Sandro Santilli
b6f19eef49
Shrinkwrapped current deps
2012-10-09 18:42:10 +02:00
Sandro Santilli
7fe09935cd
Restrict listening host to configured `node_host
`
2012-10-09 18:41:23 +02:00
Sandro Santilli
9090a191a8
Document node-0.8 requirement
2012-10-04 12:43:12 +02:00
Sandro Santilli
a3357b6841
Add info about what's changed so far
2012-10-04 12:06:04 +02:00
Sandro Santilli
6a2c0e9727
Initial support for SVG output ( #49 )
...
This version only dumps the geometries with no identifier.
Scales geometries to fit in a 1024x768 pixels area, using
a circle radius of 5 pixels, a stroke-width of 1 pixel and
no fill. Supports trimming number of decimals.
Adds a viewBox tag to fit the drawing to the output device window.
Includes an automated testcase.
2012-10-04 12:04:50 +02:00
Sandro Santilli
fee948324a
Use POST method to send queries (may be very long)
2012-10-04 12:04:50 +02:00
Sandro Santilli
2161eb1a15
Fix handling of --key switch
2012-10-04 12:04:50 +02:00
Sandro Santilli
f725cb4f59
Add prompt and batch mode
2012-10-04 12:04:50 +02:00
Sandro Santilli
8078bd55e7
Add support for reading queries from stdin
...
Only available with node-0.8+
2012-10-04 12:04:50 +02:00
Sandro Santilli
be2bc87bb6
Add --dp switch to specify decimal places for geojson output
2012-10-04 12:04:50 +02:00
Sandro Santilli
1200379940
Add --format switch, write response body without parsing it
2012-10-04 12:04:50 +02:00
Sandro Santilli
c3906afa09
Drop documentation for unexistent 'gn' parameter
2012-10-04 12:04:50 +02:00
Sandro Santilli
31d19d2232
Add more info about PostgreSQL requirements -- closes #16
2012-10-04 12:04:50 +02:00
Sandro Santilli
4521942820
Test "CSV" format, drop "KML" from the list of supported formats
2012-10-04 12:04:50 +02:00
Sandro Santilli
e8401e5c46
Cleanup links to docs
2012-10-04 12:04:49 +02:00
Sandro Santilli
924905680a
Cleanup
2012-10-04 12:04:49 +02:00
Sandro Santilli
16c67554a2
Generalize the API doc, add 'gn' to the list of supported params
2012-10-04 12:04:49 +02:00
Sandro Santilli
ba6cde9679
Add API documentation to the repository ( closes #42 )
2012-10-04 12:04:49 +02:00
Sandro Santilli
eb645d298c
More embedded comments
2012-10-04 12:04:49 +02:00
Sandro Santilli
13b3b2f2ff
Don't hide errors during db preparation
2012-10-04 12:04:49 +02:00
Sandro Santilli
ae493dd914
Move install step before usage one (see #16 )
2012-10-04 12:04:49 +02:00
Sandro Santilli
233f5ecc4b
Rename env files to .example, add a ./configure script
...
Update README to mention the two possible ways to configure the app
2012-10-04 12:04:49 +02:00
Sandro Santilli
954e54c87d
Prepare for 1.1.0
2012-10-04 12:04:49 +02:00
Luis Bosque
b638b33424
fixed problem in cluster2 with pidfile name
2012-10-04 10:55:50 +02:00
Luis Bosque
4ec9bf34c1
fixed problem in cluster2 with pidfile name
2012-10-04 10:54:09 +02:00
Luis Bosque
3287ffd4e4
staging env in cluster.js
2012-10-03 17:14:17 +02:00
Luis Bosque
703344d263
staging env in cluster.js
2012-10-03 17:14:05 +02:00
Luis Bosque
b1a06b208f
added staging env to cluster.js
2012-10-03 17:12:45 +02:00
Luis Bosque
927a0f84e3
added staging env to cluster.js
2012-10-03 17:12:31 +02:00
Luis Bosque
703d152006
updated version to 1.0.0
2012-10-03 16:53:36 +02:00
Luis Bosque
686ff617b8
updated version to 1.0.0
2012-10-03 16:53:17 +02:00
Luis Bosque
3df0004c55
Merge branch 'develop0.8'
2012-10-03 16:50:21 +02:00
Sandro Santilli
e94b06e10c
Switch to cluster2 for node-0.8 support
2012-09-28 13:19:28 +02:00
Sandro Santilli
2549560c58
Encode version in package.json -- now targetting 0.9.1-dev
2012-09-19 09:41:53 +02:00
Luis Bosque
5dc8c1de29
Merge branch 'release/staging' into develop
2012-09-18 17:06:04 +02:00