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
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ final class ConnectionCoordinator {
// MARK: - Database / Schema Switching

func switchDatabase(to name: String) async {
guard let session, name != activeDatabase, !isSwitching else { return }
guard session != nil, name != activeDatabase, !isSwitching else { return }
isSwitching = true
defer { isSwitching = false }

Expand Down
2 changes: 1 addition & 1 deletion TableProMobile/TableProMobile/Drivers/MySQLDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ final class MySQLDriver: DatabaseDriver, @unchecked Sendable {
continuation.yield(.columns(columns))
var emitted = 0
while !Task.isCancelled, emitted < options.maxRows {
guard let cells = try await actor.fetchNextRow(options: options, columns: columns) else {
guard let cells = await actor.fetchNextRow(options: options, columns: columns) else {
break
}
continuation.yield(.row(Row(cells: cells)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ final class PostgreSQLDriver: DatabaseDriver, @unchecked Sendable {
continuation.yield(.columns(columns))
var emitted = 0
while !Task.isCancelled, emitted < options.maxRows {
guard let cells = try await actor.fetchNextRow(options: options, columns: columns) else {
guard let cells = await actor.fetchNextRow(options: options, columns: columns) else {
break
}
continuation.yield(.row(Row(cells: cells)))
Expand Down
2 changes: 1 addition & 1 deletion TableProMobile/TableProMobile/Drivers/SQLiteDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ final class SQLiteDriver: DatabaseDriver, @unchecked Sendable {
continuation.yield(.columns(columns))
var emitted = 0
while !Task.isCancelled, emitted < options.maxRows {
guard let cells = try await actor.fetchNextRow(options: options, columns: columns) else {
guard let cells = await actor.fetchNextRow(options: options, columns: columns) else {
break
}
continuation.yield(.row(Row(cells: cells)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ actor StreamingExporter {
}

extension ExportFormat {
var fileExtension: String {
nonisolated var fileExtension: String {
switch self {
case .csv: return "csv"
case .json: return "json"
Expand Down
Loading