DTSQLiteDatabase Class Reference
| Inherits from | NSObject |
| Declared in | DTSQLiteDatabase.h |
Overview
A wrapper for SQLite databases which offers threadsafe concurrency and support for cancelling long-running operations.
Instance Methods
cancelAllQueries
Cancels all currently queued queries
- (void)cancelAllQueriesDeclared In
DTSQLiteDatabase.hfetchRowsForQuery:error:
Fetches the result rows for a query.
- (NSArray *)fetchRowsForQuery:(NSString *)query error:(NSError **)errorParameters
- query
The SQL query to execute
- error
If an error occurs this output parameter will contain it
Return Value
An array of NSDictionary instances
Discussion
You can call this from any queue/thread as long as it is the only one. For background operations you should call it exclusively via performBlock: or performBlockAndWait: for synchronization.
Declared In
DTSQLiteDatabase.hinitWithFileAtPath:
Opens the sqlite3 database file at the given path
- (id)initWithFileAtPath:(NSString *)pathParameters
- path
The file path to the database file
Declared In
DTSQLiteDatabase.h