Add a few more status prints to the commands

This commit is contained in:
2024-08-08 00:56:30 +02:00
parent f78c88517f
commit 69870147f5
2 changed files with 7 additions and 1 deletions

@ -178,6 +178,8 @@ async fn create_databases(
eprintln!("Failed to create database '{}': {}", name, e); eprintln!("Failed to create database '{}': {}", name, e);
eprintln!("Skipping..."); eprintln!("Skipping...");
result = CommandStatus::PartiallySuccessfullyModified; result = CommandStatus::PartiallySuccessfullyModified;
} else {
println!("Database '{}' created.", name);
} }
} }
@ -200,6 +202,8 @@ async fn drop_databases(
eprintln!("Failed to drop database '{}': {}", name, e); eprintln!("Failed to drop database '{}': {}", name, e);
eprintln!("Skipping..."); eprintln!("Skipping...");
result = CommandStatus::PartiallySuccessfullyModified; result = CommandStatus::PartiallySuccessfullyModified;
} else {
println!("Database '{}' dropped.", name);
} }
} }

@ -176,6 +176,8 @@ async fn drop_users(
eprintln!("{}", e); eprintln!("{}", e);
eprintln!("Skipping..."); eprintln!("Skipping...");
result = CommandStatus::PartiallySuccessfullyModified; result = CommandStatus::PartiallySuccessfullyModified;
} else {
println!("User '{}' dropped.", username);
} }
} }