I've been working on **CosmoSQLClient-Swift** — a Swift 6 database driver that connects to all four major databases through a single, unified `async/await` API, built entirely on SwiftNIO with no C libraries or FreeTDS.
**GitHub:** GitHub - vkuttyp/CosmoSQLClient-Swift: Unified Swift NIO SQL driver for MSSQL, PostgreSQL, MySQL, and SQLite
**Swift Package Index:** https://swiftpackageindex.com/vkuttyp/CosmoSQLClient-Swift
### The flagship feature: JSON Streaming ![]()
This is something no other Swift SQL library does.
When SQL Server returns `FOR JSON PATH` results, it fragments the output at ~2033-character boundaries that **don't align with JSON object boundaries**. Most libraries buffer the entire response before doing anything with it.