Skip to content

Commit

Permalink
Fix Swift 6 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Oct 6, 2024
1 parent e4b1e0f commit a10f320
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Sources/FluentSQLiteDriver/SQLiteError+Database.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import SQLiteNIO
import FluentKit

extension SQLiteError: DatabaseError {
// Required for Database Error
extension SQLiteError {
public var isSyntaxError: Bool {
switch self.reason {
case .error, .schema:
Expand Down Expand Up @@ -32,3 +33,9 @@ extension SQLiteError: DatabaseError {
}
}
}

#if compiler(<6)
extension SQLiteError: DatabaseError { }
#else
extension SQLiteError: @retroactive DatabaseError { }
#endif

0 comments on commit a10f320

Please sign in to comment.