sqlite2mongo

Crates.iosqlite2mongo
lib.rssqlite2mongo
version0.3.0
sourcesrc
created_at2020-12-13 11:04:26.875746
updated_at2022-03-03 03:50:55.236226
descriptionImport sqlite database to mongodb.
homepage
repositoryhttps://github.com/J-F-Liu/sqlite2mongo.git
max_upload_size
id322378
size62,245
Junfeng Liu (J-F-Liu)

documentation

README

Crates.io

Import sqlite database to mongodb.

Usage

USAGE:
    sqlite2mongo.exe [FLAGS] <sqlite-path> <mongodb-uri> <mongo-database>

FLAGS:
        --dry-run       Test reading sqlite data, do not create mongodb collection
    -h, --help          Prints help information
        --lower-camel   Convert field name to lower camel case
    -V, --version       Prints version information

ARGS:
    <sqlite-path>       Sqlite data file path
    <mongodb-uri>       Mongodb URI
    <mongo-database>    Database name to save the imported data

Example:

sqlite2mongo sqlite://D:/Database/mydb.db?mode=ro mongodb://localhost:27017 mydb --lower-camel

Differences to sqlitemongo

  • New ObjectId is generated for _id field.
  • DateTime, Boolean field types are reserved.
  • Supports dry-run and convert field name to mixed case.
Commit count: 4

cargo fmt