style: apply rustfmt to docker and snapshot commands
Some checks failed
CI / lint-and-build (push) Failing after 2m51s
Some checks failed
CI / lint-and-build (push) Failing after 2m51s
This commit is contained in:
@@ -739,7 +739,17 @@ async fn transfer_schema_only(
|
|||||||
docker_host: &Option<String>,
|
docker_host: &Option<String>,
|
||||||
) -> TuskResult<()> {
|
) -> TuskResult<()> {
|
||||||
let has_local = try_local_pg_dump().await;
|
let has_local = try_local_pg_dump().await;
|
||||||
transfer_schema_only_with(app, clone_id, source_url, container_name, database, pg_version, docker_host, has_local).await
|
transfer_schema_only_with(
|
||||||
|
app,
|
||||||
|
clone_id,
|
||||||
|
source_url,
|
||||||
|
container_name,
|
||||||
|
database,
|
||||||
|
pg_version,
|
||||||
|
docker_host,
|
||||||
|
has_local,
|
||||||
|
)
|
||||||
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
|
|||||||
@@ -46,7 +46,10 @@ pub async fn create_snapshot(
|
|||||||
|
|
||||||
if params.include_dependencies {
|
if params.include_dependencies {
|
||||||
for fk in &fk_rows {
|
for fk in &fk_rows {
|
||||||
if target_tables.iter().any(|(s, t)| s == &fk.schema && t == &fk.table) {
|
if target_tables
|
||||||
|
.iter()
|
||||||
|
.any(|(s, t)| s == &fk.schema && t == &fk.table)
|
||||||
|
{
|
||||||
let parent = (fk.ref_schema.clone(), fk.ref_table.clone());
|
let parent = (fk.ref_schema.clone(), fk.ref_table.clone());
|
||||||
if !target_tables.contains(&parent) {
|
if !target_tables.contains(&parent) {
|
||||||
target_tables.push(parent);
|
target_tables.push(parent);
|
||||||
@@ -322,7 +325,7 @@ pub async fn list_snapshots(app: AppHandle) -> TuskResult<Vec<SnapshotMetadata>>
|
|||||||
let dir = app
|
let dir = app
|
||||||
.path()
|
.path()
|
||||||
.app_data_dir()
|
.app_data_dir()
|
||||||
.map_err(|e| TuskError::Custom(e.to_string()))?
|
.map_err(|e| TuskError::Config(e.to_string()))?
|
||||||
.join("snapshots");
|
.join("snapshots");
|
||||||
|
|
||||||
if !dir.exists() {
|
if !dir.exists() {
|
||||||
|
|||||||
Reference in New Issue
Block a user