Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion TableProTests/Views/Main/MaterializedViewRowWriteTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ struct MaterializedViewRowWriteTests {
let item = try #require(
QuickSwitcherViewModel.makeCrossConnectionItems(
tables: [TableInfo(name: "daily_totals", type: .materializedView, rowCount: nil)],
target: target
target: target,
connectionSwitchesDatabases: true
).first
)
fromSwitcher.handleQuickSwitcherSelection(item)
Expand Down
15 changes: 12 additions & 3 deletions TableProTests/Views/QuickSwitcherObjectKindTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ struct QuickSwitcherObjectKindTests {
TableInfo(name: "daily_totals", type: .materializedView, rowCount: nil),
TableInfo(name: "orders", type: .partitionedTable, rowCount: nil)
],
target: target
target: target,
connectionSwitchesDatabases: true
)

#expect(items.map(\.tableType) == [.materializedView, .partitionedTable])
Expand All @@ -46,7 +47,11 @@ struct QuickSwitcherObjectKindTests {
defer { coordinator.teardown() }

let item = QuickSwitcherItem(
id: QuickSwitcherItem.tableItemId(name: "daily_totals", schema: "public"),
frecencyKey: QuickSwitcherFrecencyKey.table(
name: "daily_totals",
schema: "public",
in: .init(database: "shop", connectionSwitchesDatabases: true)
),
name: "daily_totals",
kind: .view,
subtitle: String(localized: "Materialized View"),
Expand Down Expand Up @@ -75,7 +80,11 @@ struct QuickSwitcherObjectKindTests {
defer { coordinator.teardown() }

let item = QuickSwitcherItem(
id: QuickSwitcherItem.tableItemId(name: "events", schema: "public"),
frecencyKey: QuickSwitcherFrecencyKey.table(
name: "events",
schema: "public",
in: .init(database: "shop", connectionSwitchesDatabases: true)
),
name: "events",
kind: .table,
subtitle: String(localized: "Partitioned Table"),
Expand Down
Loading