CartoDB-SQL-API/lib/models/formats
Raúl Marín 25f15dfc61 Fix an ogr2ogr export issue when the temporal name is too big
If the final name is going to be too big, use the hash over the proposed
path to create an unique name that fits the requirements of path length
under Linux
2020-05-11 18:35:35 +02:00
..
ogr Fix an ogr2ogr export issue when the temporal name is too big 2020-05-11 18:35:35 +02:00
pg Do not yield to the next middleware before handleQuery is done 2020-02-20 12:16:20 +01:00
index.js Eslint errors 2019-12-26 18:01:38 +01:00
ogr.js Fix an ogr2ogr export issue when the temporal name is too big 2020-05-11 18:35:35 +02:00
pg.js Run eslint --fix 2019-12-23 18:19:08 +01:00
README Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00

Format classes are required to expose a constructor with no arguments,
a getFileExtension() and a sendResponse(opts, callback) method.

The ``opts`` parameter contains:

 sink        Output stream to send the reponse to
 sql         SQL query requested by the user
 skipfields  Comma separate list of fields to skip from output
             really only needed with "SELECT *" queries
 gn          Name of the geometry column (for formats requiring one)
 dp          Number of decimal points of precision for geometries (if used)
 database    Name of the database to connect to
 user_id     Identifier of the user
 filename    Name to use for attachment disposition
 
The ``callback`` parameter is a function that is invoked when the
format object finished with sending the result to the sink.
If an error occurs the callback is invoked with an Error argument.