mikebild / excel-couchdb-import Goto Github PK
View Code? Open in Web Editor NEWImport Excel Sheets to CouchDB/PouchDB
Import Excel Sheets to CouchDB/PouchDB
Hello, I have excel file I'd like to push to PouchDB and that's how I found the repo. Was there a way to send command with Windows10?
Can't use Mango query
in Fauxton
:
{
"selector": {
"$type": {
"$eq": "Genre"
}
}
}
Error running query. Reason: (bad_arg) Bad argument for operator $type
$type
conflict with condition-operators in find documents querying syntax.
I fix this by changing $type
by doc_type
in followed lines:
excel-couchdb-import/lib/parse.js
Line 29 in ce34209
$ Promise rejection
Just trying to download the example excel file and run the command:
❯ excel-couchdb-import movies.xlsx --target http://admin:password@localhost:5984/targetdb --reimport
/opt/homebrew/lib/node_modules/excel-couchdb-import/bin/excel-couchdb-import:93
args.log.info(`creating ${dbName} database ...`);
^
TypeError: args.log.info is not a function
at /opt/homebrew/lib/node_modules/excel-couchdb-import/bin/excel-couchdb-import:93:20
at Request._callback (/opt/homebrew/lib/node_modules/excel-couchdb-import/node_modules/nano/lib/nano.js:245:7)
at Request.self.callback (/opt/homebrew/lib/node_modules/excel-couchdb-import/node_modules/request/request.js:185:22)
at Request.emit (node:events:527:28)
at Request.<anonymous> (/opt/homebrew/lib/node_modules/excel-couchdb-import/node_modules/request/request.js:1154:10)
at Request.emit (node:events:527:28)
at IncomingMessage.<anonymous> (/opt/homebrew/lib/node_modules/excel-couchdb-import/node_modules/request/request.js:1076:12)
at Object.onceWrapper (node:events:641:28)
at IncomingMessage.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1345:12)
````
Using :
❯ node -v
v16.16.0
❯ npm -v
8.11.0
Need More documentation / usage help
Hi Mike,
We'll need this type of import soon. I was evaluating few possibilities.
Would you mind to provide a excel template you use just to see how it works ?
Looks promising.
Thanks
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.