Class CsvLoader

java.lang.Object
org.restheart.mongodb.services.CsvLoader
All Implemented Interfaces:
CORSHeaders, ConfigurablePlugin, ExchangeTypeResolver<BsonFromCsvRequest,BsonResponse>, HandlingPlugin<BsonFromCsvRequest,BsonResponse>, Plugin, Service<BsonFromCsvRequest,BsonResponse>

public class CsvLoader extends Object implements Service<BsonFromCsvRequest,BsonResponse>
service to upload a csv file in a MongoDb collection query parameters:
- db=<db_name> *required
- coll=<collection_name> *required
- id=<id_column_index> optional (default: no _id column, each row will get an new ObjectId)
- sep=<column_separator> optional (default: ,)
- props=<props> optional (default: no props) additional props to add to each row
- values=<values> optional (default: no values) values of additional props to add to each row
defined in conf file) of a tranformer to apply to imported data - update optional (default: no).use data to update matching documents");
Author:
Andrea Di Cesare <andrea@softinstigate.com>