Class Program

Namespace: redb.CLI
Assembly: redb.dll

REDB CLI - Command line tool for database export/import operations.
=== PostgreSQL ===
Export (with compression):
dotnet run -- export -p postgres -c "Host=localhost;Port=5432;Username=postgres;Password=1;Database=redb;Pooling=true;Include Error Detail=true;Timeout=600;Command Timeout=600" -o data.redb --compress --batch-size 100000 -v
Import (with clean):
dotnet run -- import -p postgres -c "Host=localhost;Port=5432;Username=postgres;Password=1;Database=redb;Pooling=true;Include Error Detail=true;Timeout=600;Command Timeout=600" -i data.redb --clean -v --batch-size 100000
=== MS SQL Server ===
Export (with compression):
dotnet run -- export -p mssql -c "Server=localhost;Database=redb;User Id=sa;Password=1;TrustServerCertificate=True;Command Timeout=600" -o data.redb --compress --batch-size 100000 -v
Import (with clean):
dotnet run -- import -p mssql -c "Server=localhost;Database=redb;User Id=sa;Password=1;TrustServerCertificate=True;Command Timeout=600" -i data.redb --clean -v --batch-size 100000
=== Options ===
--compress - compress exported file with ZIP (export only)
--clean - clean database before import (import only)
--schemes - export only specified scheme IDs: --schemes 100,200
--dry-run - show what would be done without execution
--batch-size - batch size for operations (default: 1000)
-v, --verbose - enable verbose output

public static class Program

Inheritance

ObjectProgram

Methods

Main(string[])

public static Task<int> Main(string[] args)