feat: open psql in the database container
This commit is contained in:
@@ -42,8 +42,8 @@ impl Database {
|
||||
pub(super) fn restore_with(&self, kind: Kind) -> Box<dyn Cmd + '_> {
|
||||
match kind {
|
||||
Kind::Archive => Box::new(PgRestore::new(&self.user, &self.name)),
|
||||
Kind::Sql => Box::new(Psql::new(&self.user, &self.name).atomic()),
|
||||
Kind::Cluster => Box::new(Psql::new(&self.user, "postgres")),
|
||||
Kind::Sql => Box::new(Psql::new(&self.user, &self.name).quiet().atomic()),
|
||||
Kind::Cluster => Box::new(Psql::new(&self.user, "postgres").quiet()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user