Skip to content

Commit 253f51c

Browse files
committed
fix: add startupCommands to test connection and fix import order
1 parent a1ac808 commit 253f51c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

TablePro/Views/Connection/ConnectionFormView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// Created by Ngo Quoc Dat on 16/12/25.
66
//
77

8+
import os
89
import SwiftUI
910
import UniformTypeIdentifiers
10-
import os
1111

1212
/// Form for creating or editing a database connection
1313
struct ConnectionFormView: View {
@@ -960,7 +960,9 @@ struct ConnectionFormView: View {
960960
mongoReadPreference: mongoReadPreference.isEmpty ? nil : mongoReadPreference,
961961
mongoWriteConcern: mongoWriteConcern.isEmpty ? nil : mongoWriteConcern,
962962
mssqlSchema: mssqlSchema.isEmpty ? nil : mssqlSchema,
963-
oracleServiceName: oracleServiceName.isEmpty ? nil : oracleServiceName
963+
oracleServiceName: oracleServiceName.isEmpty ? nil : oracleServiceName,
964+
startupCommands: startupCommands.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
965+
? nil : startupCommands
964966
)
965967

966968
Task {

0 commit comments

Comments
 (0)