What problem does it solve?
This Skill provides expert guidance on building production-quality database client libraries in Swift, covering wire protocol implementation, connection management, type-safe APIs, and integration with Swift Concurrency.
Core Features & Use Cases
- Wire protocol design: Guidance on building reliable wire formats, including state machines and backpressure-aware streaming.
- Type-safe API patterns: Commands designed as types with associated response, and safe encoding/decoding practices.
- NIO executor alignment & pooling: Strategies to align Swift actors with NIO event loops and implement connection pools.
- Use Case: When starting a new Swift database client for a production system, apply this skill to structure wire protocol, commands, and lifecycle management to ensure safety and performance.
Quick Start
Design a minimal Swift DB client outline for a new project: wire protocol skeleton, command-as-type patterns, state machine, backpressure strategy, and a basic NIO-compatible executor setup.