DataLireCoder swift package
This commit is contained in:
parent
2cca986016
commit
5aec6ea578
60 changed files with 7144 additions and 0 deletions
12
Sources/DLCEncoder/Protocols/RowEncoder.swift
Normal file
12
Sources/DLCEncoder/Protocols/RowEncoder.swift
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import Foundation
|
||||
import DataLiteCore
|
||||
|
||||
public protocol RowEncoder: Encoder {
|
||||
var count: Int { get }
|
||||
|
||||
func set(_ value: Any, for key: CodingKey) throws
|
||||
func encodeNil(for key: CodingKey) throws
|
||||
func encodeDate(_ date: Date, for key: CodingKey) throws
|
||||
func encode<T: SQLiteRawBindable>(_ value: T, for key: CodingKey) throws
|
||||
func encoder(for key: CodingKey) throws -> any Encoder
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue