https://github.com/j-f-liu/sqlite2mongo
Import sqlite database to mongodb
https://github.com/j-f-liu/sqlite2mongo
Last synced: about 1 month ago
JSON representation
Import sqlite database to mongodb
- Host: GitHub
- URL: https://github.com/j-f-liu/sqlite2mongo
- Owner: J-F-Liu
- Created: 2020-12-13T10:57:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-03T03:49:39.000Z (about 3 years ago)
- Last Synced: 2025-04-10T02:14:56.381Z (about 1 month ago)
- Language: Rust
- Size: 46.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://crates.io/crates/sqlite2mongo)
Import sqlite database to mongodb.
### Usage
```
USAGE:
sqlite2mongo.exe [FLAGS]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 informationARGS:
Sqlite data file path
Mongodb URI
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](https://www.npmjs.com/package/sqlitemongo)
- New ObjectId is generated for \_id field.
- DateTime, Boolean field types are reserved.
- Supports dry-run and convert field name to mixed case.