Refactor entire codebase and rewrite documentation

This commit is contained in:
2025-10-10 18:06:34 +03:00
parent b4e9755c15
commit 8e471f2b9f
74 changed files with 3405 additions and 4149 deletions

View File

@@ -0,0 +1,22 @@
import Foundation
import Testing
import DataLiteCore
private struct BindableStub: SQLiteBindable {
let value: SQLiteValue
var sqliteValue: SQLiteValue { value }
}
struct SQLiteBindableTests {
@Test(arguments: [
SQLiteValue.int(42),
SQLiteValue.real(0.5),
SQLiteValue.text("O'Reilly"),
SQLiteValue.blob(Data([0x00, 0xAB])),
SQLiteValue.null
])
func testDefaultSqliteLiteralPassThrough(_ value: SQLiteValue) {
let stub = BindableStub(value: value)
#expect(stub.sqliteLiteral == value.sqliteLiteral)
}
}