Add a few more status prints to the commands

This commit is contained in:
Oystein Kristoffer Tveit 2024-08-08 00:56:30 +02:00
parent f78c88517f
commit 69870147f5
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 7 additions and 1 deletions

View File

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

View File

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