mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-04 08:15:39 +00:00
sqlx_cli::db::run_drop: actually print the database name in confirm
This commit is contained in:
parent
35fd6f64cc
commit
9729385257
@ -39,7 +39,10 @@ pub async fn run_drop() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
if db_exists {
|
if db_exists {
|
||||||
if !Confirmation::new()
|
if !Confirmation::new()
|
||||||
.with_text("\nAre you sure you want to drop the database: {}?")
|
.with_text(&format!(
|
||||||
|
"\nAre you sure you want to drop the database: {}?",
|
||||||
|
db_name
|
||||||
|
))
|
||||||
.default(false)
|
.default(false)
|
||||||
.interact()?
|
.interact()?
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user