main #2

Merged
dev merged 8 commits from main into master 2026-04-08 10:04:43 +00:00
2 changed files with 16 additions and 3 deletions
Showing only changes of commit 28aa4ef8cc - Show all commits

View File

@@ -739,7 +739,17 @@ async fn transfer_schema_only(
docker_host: &Option<String>,
) -> TuskResult<()> {
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)]

View File

@@ -46,7 +46,10 @@ pub async fn create_snapshot(
if params.include_dependencies {
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());
if !target_tables.contains(&parent) {
target_tables.push(parent);
@@ -322,7 +325,7 @@ pub async fn list_snapshots(app: AppHandle) -> TuskResult<Vec<SnapshotMetadata>>
let dir = app
.path()
.app_data_dir()
.map_err(|e| TuskError::Custom(e.to_string()))?
.map_err(|e| TuskError::Config(e.to_string()))?
.join("snapshots");
if !dir.exists() {