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 DateEncoder {
package protocol DateEncoder {
func encode(_ date: Date, to encoder: any ValueEncoder) throws
func encode(_ date: Date, for key: any CodingKey, to encoder: any RowEncoder) throws
}

View File

@@ -1,6 +1,6 @@
import Foundation
public protocol Encoder: Swift.Encoder {
package protocol Encoder: Swift.Encoder {
associatedtype SQLiteData
var dateEncoder: any DateEncoder { get }

View File

@@ -1,7 +1,7 @@
import Foundation
import DataLiteCore
public protocol RowEncoder: Encoder {
package protocol RowEncoder: Encoder {
var count: Int { get }
func set(_ value: Any, for key: CodingKey) throws

View File

@@ -1,7 +1,7 @@
import Foundation
import DataLiteCore
public protocol ValueEncoder: Encoder {
package protocol ValueEncoder: Encoder {
func encodeNil() throws
func encodeDate(_ date: Date) throws
func encode<T: SQLiteBindable>(_ value: T) throws