New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Adding an import method for fast import of CSV #1086
base: master
Are you sure you want to change the base?
Conversation
Hi, |
Hi @kewde - Thanks for the reply (and sorry for delay in mind). I'd be happy to add tests and remove the lock files. Will do. |
6c25b48
to
4a3ce39
Compare
Hi @kewde - I added a handful of tests and removed the lock files from this PR. Unfortunately I'm having no end of difficult getting this to pass CI. On Linux with Any ideas or suggestions on how I might resolve this? At this point I'm fairly tempted to just move this into its own package (that perhaps only works with more recent versions of node) or go back to maintaining a private fork... Thanks in advance for any help! |
The createdb. js file is a pretest. It runs before the tests and set up the environment. |
Still seeing core dumps..
|
…t (including inferred types).
I'm the developer of Tad, a fast, free CSV file viewer and pivot-table based UI for exploring and analyzing tabular data, implemented in JavaScript. Tad works by immediately importing target CSV files into sqlite, and using sqlite (via node-sqlite3 of course) for all subsequent analytical operations.
In order to achieve high performance for large CSV files, I extracted the import code implemented in C in the sqlite3 shell, and wrapped it as a library routine in my fork of
node-sqlite3
. The result is an easy way to import CSV files into sqlite from JavaScript, with great performance.Usage:
I'm happy with the functionality and implementation, but it's a bit unfortunate that I'm maintaining my own fork of node-sqlite3. I'd love to either upstream this code or move it to a separate library.
Since this may be generally useful to a large number of
node-sqlite3
users, would you consider accepting this as a PR?