appgeo / into-cartodb Goto Github PK
View Code? Open in Web Editor NEWwritable stream for creating, appending, and replacing tables in cartodb
License: MIT License
writable stream for creating, appending, and replacing tables in cartodb
License: MIT License
Using the following command and csv a table was created, but the records were not loaded:
node ./bin.js -c -f ./test.csv -t test3 -u <user> -k <key>
"abc","def","ghi"
1,2,"a"
3,4,"b"
5,6,"c"
Once the table was created I could use the replace mode to push the records in.
It would be helpful if I could add a config file to this process that contains my user/key variables.
...which leads to 400s from the CartoDB API.
e.g.:
into-cartodb -k <redacted> -u <redacted> -f whatever-2m.csv
whatever-2m
is treated as the table name, but it's not being quoted somewhere.
Unhandled rejection Error: {"error":["syntax error at or near \"-\""]}
at PassThrough.<anonymous> (/private/tmp/cartodb/node_modules/into-cartodb/node_modules/cartodb-tools/lib/index.js:205:27)
at emitNone (events.js:72:20)
at PassThrough.emit (events.js:166:7)
at finishMaybe (/private/tmp/cartodb/node_modules/into-cartodb/node_modules/readable-stream/lib/_stream_writable.js:509:14)
at afterWrite (/private/tmp/cartodb/node_modules/into-cartodb/node_modules/readable-stream/lib/_stream_writable.js:388:3)
at afterTick (/private/tmp/cartodb/node_modules/into-cartodb/node_modules/readable-stream/node_modules/process-nextick-args/index.js:11:8)
at doNTCallback0 (node.js:417:9)
at process._tickCallback (node.js:346:13)
$ into-cartodb -k <redacted> -u <redacted> -n headerless.csv
inserted 0 โ [object Object]
I have setup a local CartoDB instance and have managed to get everything running. I am able to import datasets via the front end application.
I am now trying to do bulk uploads (testing with a csv file first) to import data from a .csv file into Carto.
I am receiving a '302 Found' error.
Cannot push the following values into a number field from a csv.
Example csv:
a,b,c
a,1,a
b,NULL,b
c,,c
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.