Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sqlitemongo

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlitemongo

Migrate your sqlite3 database to mongodb

  • 1.1.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

sqlitemongo

Node.js CI Version Snyk Vulnerabilities for npm package Maintenance License npm

Migrate your sqlite3 database to mongodb.

Why?

  • Uses sqlite3 ids to avoid uploading duplicates
  • Copy all tables into mongo collections in a single command

What

It copies all tables from sqlite3 into mongo collections under a specified database. For example, if you have a sqlite3 database file db.sqlite3 with tables: table1 and table2, this tool uploads to a mongo database titled by default sqlite3 with collections table1 and table2.

CLI Usage

  1. Install sqlitemongo globally using sudo npm install --global sqlitemongo.
  2. Run sqlitemongo <sqlitepath> <mongo uri> [<mongo database>]
  3. Done

Module Usage

Just import sqlitemongo from npm npm i sqlitemongo, and start using as below:

const sqlitemongo = require('sqlitemongo');

async function test() {
	var sqlitePath = './test.sqlite3';
	var mongoURI = 'mongo+srv://username:password@hostname.domain/test';
	var mongoDbName = 'test-database';
	await sqlitemongo(sqlitePath, mongoURI, mongoDbName /* optional */);
}
test().catch(console.error);

Keywords

FAQs

Package last updated on 28 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc