From 26fd5686e7d50470bf9f893c70d667f210626a6f Mon Sep 17 00:00:00 2001 From: Oleksii Zghurskyi Date: Tue, 11 Nov 2025 17:26:54 +0200 Subject: [PATCH] Make SQLiteAction conform to Hashable --- Sources/DataLiteCore/Classes/Connection+Key.swift | 2 +- Sources/DataLiteCore/Enums/JournalMode.swift | 2 +- Sources/DataLiteCore/Enums/SQLiteAction.swift | 2 +- Sources/DataLiteCore/Enums/Synchronous.swift | 2 +- Sources/DataLiteCore/Enums/TransactionType.swift | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/DataLiteCore/Classes/Connection+Key.swift b/Sources/DataLiteCore/Classes/Connection+Key.swift index 09fb4e9..9d59359 100644 --- a/Sources/DataLiteCore/Classes/Connection+Key.swift +++ b/Sources/DataLiteCore/Classes/Connection+Key.swift @@ -7,7 +7,7 @@ extension Connection { /// Two formats are supported: /// - a passphrase, which undergoes key derivation; /// - a raw 256-bit key (32 bytes) passed without transformation. - public enum Key { + public enum Key: Sendable { /// A human-readable passphrase used for key derivation. /// /// The passphrase is supplied as-is and processed by the underlying key derivation diff --git a/Sources/DataLiteCore/Enums/JournalMode.swift b/Sources/DataLiteCore/Enums/JournalMode.swift index 88c5e8a..dfd9ef6 100644 --- a/Sources/DataLiteCore/Enums/JournalMode.swift +++ b/Sources/DataLiteCore/Enums/JournalMode.swift @@ -6,7 +6,7 @@ import Foundation /// journal for rollback and recovery. /// /// - SeeAlso: [journal_mode](https://sqlite.org/pragma.html#pragma_journal_mode) -public enum JournalMode: String, SQLiteRepresentable { +public enum JournalMode: String, SQLiteRepresentable, Sendable { /// DELETE journal mode. /// /// This is the default behavior. The rollback journal is deleted at the conclusion of each diff --git a/Sources/DataLiteCore/Enums/SQLiteAction.swift b/Sources/DataLiteCore/Enums/SQLiteAction.swift index 9d3f87b..fc56dc8 100644 --- a/Sources/DataLiteCore/Enums/SQLiteAction.swift +++ b/Sources/DataLiteCore/Enums/SQLiteAction.swift @@ -7,7 +7,7 @@ import Foundation /// as the database name, table, and affected row ID. /// /// - SeeAlso: [Data Change Notification Callbacks](https://sqlite.org/c3ref/update_hook.html) -public enum SQLiteAction { +public enum SQLiteAction: Hashable, Sendable { /// A new row was inserted into a table. /// /// - Parameters: diff --git a/Sources/DataLiteCore/Enums/Synchronous.swift b/Sources/DataLiteCore/Enums/Synchronous.swift index 2e21a92..8b0b5f5 100644 --- a/Sources/DataLiteCore/Enums/Synchronous.swift +++ b/Sources/DataLiteCore/Enums/Synchronous.swift @@ -6,7 +6,7 @@ import Foundation /// disk. It defines the balance between durability, consistency, and performance during commits. /// /// - SeeAlso: [PRAGMA synchronous](https://sqlite.org/pragma.html#pragma_synchronous) -public enum Synchronous: UInt8, SQLiteRepresentable { +public enum Synchronous: UInt8, SQLiteRepresentable, Sendable { /// Disables synchronization for maximum performance. /// /// With `synchronous=OFF`, SQLite does not wait for data to reach non-volatile storage before diff --git a/Sources/DataLiteCore/Enums/TransactionType.swift b/Sources/DataLiteCore/Enums/TransactionType.swift index 02de957..93706cf 100644 --- a/Sources/DataLiteCore/Enums/TransactionType.swift +++ b/Sources/DataLiteCore/Enums/TransactionType.swift @@ -7,7 +7,7 @@ import Foundation /// during the transaction. /// /// - SeeAlso: [Transaction](https://sqlite.org/lang_transaction.html) -public enum TransactionType: String, CustomStringConvertible { +public enum TransactionType: String, CustomStringConvertible, Sendable { /// Defers the start of the transaction until the first database access. /// /// With `BEGIN DEFERRED`, no locks are acquired immediately. If the first statement is a read