Add CI/CD configuration and API documentation

This commit is contained in:
2026-07-01 21:40:53 +08:00
commit c590135d68
4168 changed files with 740252 additions and 0 deletions
@@ -0,0 +1,21 @@
import XCTest
@testable import GRDB
private struct Person : FetchableRecord, TableRecord {
static let databaseTableName = "persons"
init(row: Row) {
}
}
class RecordUniqueIndexTests: GRDBTestCase {
func testKeyFilterAcceptsUniqueIndex() throws {
let dbQueue = try makeDatabaseQueue()
try dbQueue.inDatabase { db in
try db.execute(sql: "CREATE TABLE persons (id INTEGER PRIMARY KEY, name TEXT, email TEXT UNIQUE)")
_ = try Person.filter(keys: [["id": nil]]).fetchOne(db)
_ = try Person.filter(keys: [["email": nil]]).fetchOne(db)
}
}
}