Skip to content

Commit

Permalink
Merge pull request #12 from JoshuaBelden/fix-mongo-backup
Browse files Browse the repository at this point in the history
Added backup of verb import for mongodb. You can access like so: 

```
const mongodb = require("mongodb").MongoClient;
const url = "mongodb:https://localhost:27017/";

csvtojson()
    .fromFile("jehle_verb_database.csv")
    .then(data => {
        mongodb.connect(url, { useNewUrlParser: true, useUnifiedTopology: true },
            (error, client) => {
                client
                    .db("fred-jehle")
                    .collection("conjugaciones")
                    .insertMany(data, (err, res) => {
                        client.close();
                    });
            }
        );
    });
```
  • Loading branch information
ghidinelli committed Aug 4, 2020
2 parents ee7bef7 + abafc62 commit b9c93b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file added jehle_verb_mongo.bson
Binary file not shown.
1 change: 1 addition & 0 deletions jehle_verb_mongo.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":{"$numberInt":"2"},"key":{"_id":{"$numberInt":"1"}},"name":"_id_","ns":"fred-jehle.conjugaciones"}],"uuid":"34cd3da0bd2246dd99bfdadf6f03473f"}

0 comments on commit b9c93b4

Please sign in to comment.