Make SQLiteAction conform to Hashable
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user