Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments