DynamoDBToLiteDB 0.0.5
dotnet tool install --global DynamoDBToLiteDB --version 0.0.5
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local DynamoDBToLiteDB --version 0.0.5
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DynamoDBToLiteDB&version=0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package DynamoDBToLiteDB --version 0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DynamoDbToLiteDb
A small CLI tool to turn a DynamoDB backup into a local LiteDB file—and optionally CSV—so you can query or export data without incurring large scan costs.
Why use this
- Lower cost: Downloading a backup from S3 avoids DynamoDB scans and high read-capacity consumption.
- Local querying: Inspect or filter data in LiteDB without hitting AWS.
- CSV export: Extract only the fields you need for reports or sharing.
Prerequisites
- Export your DynamoDB table to an S3 bucket
- Copy the S3 path to
manifest-summary.json
(or download that file locally) - AWS credentials/configured with S3 “GetObject” access on your machine
Installation
dotnet tool install -g DynamoDbToLiteDb
# Or build locally
git clone https://github.com/your-org/dynamoDbToLiteDb.git
cd dynamoDbToLiteDb
dotnet pack
dotnet tool install --global --add-source ./nupkg DynamoDBToLiteDB
Usage
dynamoDbToLiteDb [command] [options]
Import backup into LiteDB
dynamoDbToLiteDb <manifest-summary> [options]
<manifest-summary>
— local path or S3 URL tomanifest-summary.json
Flag | Description | Default |
---|---|---|
-o , --output |
Output database file path | ./lite.db |
-b , --backup-path |
Temp folder to store downloaded backup shards | C:\Users\AliReza\AppData\Local\Temp\c5077 |
--clean |
Delete downloaded backup files after processing | true |
-c , --collection-name |
Collection name inside the LiteDB database | default |
-j , --journal |
Enable LiteDB journaling for data integrity (disable for faster bulk imports) | true |
-p , --password |
Password to encrypt the LiteDB database | |
-h , --help |
Show help text | |
--version |
Show version information |
Export CSV from LiteDB
dynamoDbToLiteDb tocsv <fields...> [options]
<fields...>
— space-separated field names to include in CSV
Options
Flag | Description | Default |
---|---|---|
-d , --db |
Database file path | ./lite.db |
-o , --output |
CSV output file path | ./output.csv |
-b , --batch |
Processor batch size | 10000 |
-w , --where |
SQL-like WHERE condition(s) for filtering | 0=0 |
-c , --collection-name |
Collection name inside the database | default |
-p , --password |
LiteDB database password | |
-h , --help |
Shows help text |
Examples
Import S3 backup
dynamoDbToLiteDb s3://my-bucket/backups/manifest-summary.json \ --output data/app.db \ --backup-path ./tmp \ --clean
Export selected fields
dynamoDbToLiteDb tocsv UserId Name Email \ --db data/app.db \ --output users.csv \ --where "IsActive=true"
Contributing
- Fork the repo
- Create a branch (
git checkout -b my-change
) - Commit & push
- Open a pull request
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.