Files
data-lite-coder/Sources/DLCDecoder/Protocols/RowDecoder.swift
2025-10-24 20:16:30 +03:00

12 lines
368 B
Swift

import Foundation
import DataLiteCore
public protocol RowDecoder: Decoder {
var count: Int? { get }
func decodeNil(for key: CodingKey) throws -> Bool
func decodeDate(for key: CodingKey) throws -> Date
func decode<T: SQLiteRepresentable>(_ type: T.Type, for key: CodingKey) throws -> T
func decoder(for key: CodingKey) throws -> any Decoder
}