- Swift 100%
swift-atproto-sqlite-data #
SQLiteData and GRDB storage for open Lexicon values and PDS import progress.
import ATProtoSQLite
import GRDB
// Given a GRDB DatabaseWriter and a Database connection:
try LexiconDatabase.migrate(writer)
let collection: ATProto.NSID = "app.bsky.feed.post"
let registration = try LexiconDatabase.registration(collection, in: db)
print(registration?.recordCount ?? 0)
ATProtoSQLite reexports ATProtoTypes and SQLiteData. It contains registered Lexicon schemas, open-value SQL support, import progress, and record import/query APIs. It depends on swift-atproto for protocol values.
Development and release status #
Use Swift 6.4 (Xcode 27 on macOS) for the current dependency graph, even though this package's manifest declares Swift tools 6.3. Run from this package directory:
swift test --build-system native
This is a branch-publication candidate; no version tag has been published.
After the reviewed candidate is pushed, consume its remote main branch:
.package(url: "https://tangled.org/woody.fm/swift-atproto-sqlite-data", branch: "main")
The graph uses prerelease Point-Free branches. Consumers and CI need access to any private upstream dependencies selected by their graph, including TCA26 for the server package and Composable Atmosphere. Private upstream source is not included in this repository.
The planned 0.1.0 release follows TCA 2 and compatible versioned requirements
throughout the dependency graph. Existing version tags will not be moved.
See source provenance for the frozen integration revision.