Hide package API

This commit is contained in:
2025-10-27 20:08:27 +02:00
parent a408e41643
commit 7d1bb97aca
17 changed files with 76 additions and 78 deletions

View File

@@ -1,6 +1,6 @@
import Foundation
public protocol DateDecoder {
package protocol DateDecoder {
func decode(from decoder: any ValueDecoder) throws -> Date
func decode(from decoder: any RowDecoder, for key: any CodingKey) throws -> Date
}

View File

@@ -1,6 +1,6 @@
import Foundation
public protocol Decoder: Swift.Decoder {
package protocol Decoder: Swift.Decoder {
associatedtype SQLiteData
var dateDecoder: any DateDecoder { get }

View File

@@ -1,5 +1,5 @@
import Foundation
public protocol KeyCheckingDecoder: Decoder {
package protocol KeyCheckingDecoder: Decoder {
func contains(_ key: CodingKey) -> Bool
}

View File

@@ -1,7 +1,7 @@
import Foundation
import DataLiteCore
public protocol RowDecoder: Decoder {
package protocol RowDecoder: Decoder {
var count: Int? { get }
func decodeNil(for key: CodingKey) throws -> Bool

View File

@@ -1,7 +1,7 @@
import Foundation
import DataLiteCore
public protocol ValueDecoder: Decoder {
package protocol ValueDecoder: Decoder {
func decodeNil() -> Bool
func decodeDate() throws -> Date
func decode<T: SQLiteRepresentable>(_ type: T.Type) throws -> T