Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Object-oriented convenience wrapper around the procedural sqlite3 API
Objective-C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
SQLHelper.h
SQLHelper.m

README

Esay-to-use SQL helper class for simple, quick and easy database operations. Usage:

	SQLHelper *sqh = [[SQLHelper alloc] initWithContentsOfFile:@"SomeDB.sqlite3"];
	NSArray *rows = [sqh executeQuery:@"SELECT name, value FROM fruits"];
	for (NSDictionary *row in rows) {
		NSString *name = [row objectForKey:@"name"];
		NSNumber *value = [row objectForKey:@"value"];
		NSLog(@"%@ is worth $%@", name, value);
	}
	[sqh release];

Result:

	Orange is worth $100000
	Apple is worth $1000000000

etc.

The actual objects contained by a row dictionary can be NSString, NSNumber,
NSData and NSNull objects, depending on how the actual value was stored in
the SQLite database.

Something went wrong with that request. Please try again.