Code Generator for Objective-C

I am using CodeSmith .NET code generation from a database. Is there a similar code generation tool for SQLite DB that generates code for objective-c?

+3
source share
4 answers

This Objective-C-based repository for SQLite has a simple bash script that will read the SQLite database and create suitable ORM models for you. Url https://github.com/ziminji/objective-c-sql-query-builder

All you have to do is set up a small properties file that will tell the bash script where the SQLite database is located on your hard drive.

+5
source

. . , , , .

, , . ; , . , , ( ).

, Interface Builder, , , . , IB, Core Data , , . , .

+3

​​ , , , OS X/IOS. , Core Data ORM, (-Core Data) . , Objective-C , . Active Record . .

+1

I agree with what Barry and bbum said about Core Data. It is very useful. However, this is not a panacea. There may be times when you need to access an existing SQLite database, and transferring it to Core Data will be a complete excess. In these cases, you should use the Flying Meat Database wrapper , also known as "FMDB". It is clean and easy to use.

+1
source

Source: https://habr.com/ru/post/1792820/


All Articles