Open Source iOS Library Providing A Blocks Driven Syntax For Working With SQLite Databases

Some time ago I mentioned the long time popular FMDB library working with SQLite databases, and iActiveRecord which provides an active record based library for working with SQLite.

Here’s a newer library that allows you to easily work with SQLite using a blocks based syntax called AFSQLManager from Alvaro Franco.

AFSQLManage provides a simple syntax for performing queries, and helpers for creating, opening, deleting, and renaming databases.

Here’s an example from the readme showing how to create a SQLite database with error checking:

[[AFSQLManager sharedManager]createDatabaseWithName:@"nyancat.sqlite" openInmediately:YES withStatusBlock:^(BOOL success, NSError *error) {

<pre><code>if (success) {
    // Yeah, database created successfully
} else {
    NSLog(@"%@",error);
}
</code></pre>

}];

You can find AFSQLManager on Github here.

A nice simple library for working with SQLite databases.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Open Source iOS Library Providing A Blocks Driven Syntax For Working With SQLite Databases

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *