File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,10 @@ public void Migrate()
2727 {
2828 try
2929 {
30+ SpectreConsoleHelper . WriteHeader ( "postgresql to mssql" , Color . Blue ) ;
31+
3032 _validator . ValidateProviders ( ) ;
3133
32- SpectreConsoleHelper . WriteHeader ( "postgresql to mssql" , Color . Blue ) ;
3334 SpectreConsoleHelper . Log ( "Initializing..." ) ;
3435 AnsiConsole . Status ( )
3536 . Spinner ( Spinner . Known . Arc )
@@ -93,6 +94,7 @@ public void Migrate()
9394 ctx . Status ( $ "Transferring data from [blue]{ sourceSchema } .{ table } [/] to [green]{ destinationSchema } .{ table } [/]") ;
9495 using var bulkCopy = new SqlBulkCopy ( sqlServerConnection ) ;
9596 bulkCopy . DestinationTableName = $ "{ destinationSchema } .{ table } ";
97+ bulkCopy . BulkCopyTimeout = 300 ;
9698 bulkCopy . WriteToServer ( dataTable ) ;
9799 SpectreConsoleHelper . Success ( $ "Successfully transferred data from { sourceSchema } .{ table } to { destinationSchema } .{ table } ") ;
98100 }
You can’t perform that action at this time.
0 commit comments