Hide package API
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
public protocol Decoder: Swift.Decoder {
|
||||
package protocol Decoder: Swift.Decoder {
|
||||
associatedtype SQLiteData
|
||||
|
||||
var dateDecoder: any DateDecoder { get }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Foundation
|
||||
|
||||
public protocol KeyCheckingDecoder: Decoder {
|
||||
package protocol KeyCheckingDecoder: Decoder {
|
||||
func contains(_ key: CodingKey) -> Bool
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user