Swift Database Driver Design
Provides expert architectural guidance and implementation patterns for building high-performance, production-grade database client libraries in Swift.
This skill equips developers with the specialized design patterns and best practices required to construct robust Swift database drivers. It covers critical technical aspects including wire protocol implementation using state machines, type-safe API design via string interpolation, and performance optimization through Swift NIO and actor executor alignment. By following patterns derived from industry-leading libraries like postgres-nio and valkey-swift, developers can ensure their database clients handle connection pooling, backpressure, and SQL injection prevention with production-quality reliability.