A Swift framework for connecting to MySQL databases and executing CRUD operations with minimal SQL knowledge.
OHMySQL is a Swift framework that provides a high-level API for connecting to MySQL databases and performing CRUD operations from iOS, macOS, and other Apple platform applications. It abstracts the underlying MySQL C API, allowing developers to interact with databases without writing low-level C code or extensive SQL.
Swift and Objective-C developers building iOS, macOS, watchOS, or tvOS apps that need to connect to a MySQL database backend.
Developers choose OHMySQL for its simplicity, native Swift/Objective-C integration, and ability to perform database operations with minimal SQL knowledge, reducing the learning curve compared to raw MySQL C API usage.
Swift + MySQL = ❤️
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Works with both Swift and Objective-C, making it versatile for mixed or legacy codebases, as explicitly listed in the features section.
Provides query factories for common CRUD operations like SELECT and INSERT, reducing the need for raw SQL, as demonstrated in the usage examples.
Supports iOS, macOS, watchOS, tvOS, and Mac Catalyst, ensuring coverage across Apple devices, per the platforms table in the README.
Offers installation via Swift Package Manager and Carthage with clear documentation, simplifying dependency management, as shown by badges and links.
Object mapping is basic and requires custom implementation; Swift fundamental types like Int aren't supported, only NSNumber, as admitted in the README.
Built solely on MySQL C API, locking you into MySQL without flexibility for other databases, which could hinder backend adaptability.
Maintained by one developer who solicits donations, raising concerns about long-term updates and support, as indicated in the project support section.