-
-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy pathSQLImportOptionsView.swift
More file actions
26 lines (22 loc) · 873 Bytes
/
SQLImportOptionsView.swift
File metadata and controls
26 lines (22 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// SQLImportOptionsView.swift
// SQLImportPlugin
//
import SwiftUI
struct SQLImportOptionsView: View {
let plugin: SQLImportPlugin
var body: some View {
VStack(alignment: .leading, spacing: 12) {
Toggle("Wrap in transaction (BEGIN/COMMIT)", isOn: Bindable(plugin.options).wrapInTransaction)
.font(.system(size: 13))
.help(
"Execute all statements in a single transaction. If any statement fails, all changes are rolled back."
)
Toggle("Disable foreign key checks", isOn: Bindable(plugin.options).disableForeignKeyChecks)
.font(.system(size: 13))
.help(
"Temporarily disable foreign key constraints during import. Useful for importing data with circular dependencies."
)
}
}
}