ccgus/fmdb ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Objective C library for Apple apps that makes working with SQLite much easier.
I want it to wrap the normal SQLite C API with a cleaner interface for opening databases, running queries, doing inserts and updates, handling transactions, and working safely from both Objective C and Swift. It should support use in iOS and macOS projects, work with ARC or manual memory management, and be easy to add through CocoaPods, Carthage, and Swift Package Manager.
Please also make it possible to use an encrypted database option with SQLCipher, and keep the code friendly to older Cocoa style projects while still feeling modern enough for Swift users. Add tests, basic docs, and a simple example of how someone would create a database, write data, and read it back. If you need to check the latest SQLite or Apple package setup details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit