VoiceMac/Frameworks/MGMUsers.framework/Versions/A/Headers/MGMLiteResult.h

42 lines
1.1 KiB
C
Raw Normal View History

2010-09-20 19:44:17 -05:00
//
// MGMLiteResult.h
// MGMUsers
//
// Created by Mr. Gecko on 8/13/10.
// Copyright (c) 2010 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/
//
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#import <sqlite3.h>
#else
2010-09-20 19:44:17 -05:00
#import <Cocoa/Cocoa.h>
#import <MGMUsers/sqlite3.h>
#endif
2010-09-20 19:44:17 -05:00
@class MGMLiteConnection;
@interface MGMLiteResult : NSObject {
MGMLiteConnection *connection;
sqlite3_stmt *result;
NSArray *columnNames;
int columnCount;
}
+ (id)resultWithConnection:(MGMLiteConnection *)theConnection result:(sqlite3_stmt *)theResult;
- (id)initWithConnection:(MGMLiteConnection *)theConnection result:(sqlite3_stmt *)theResult;
- (int)dataCount;
- (int)columnCount;
- (NSString *)columnName:(int)theColumn;
- (NSArray *)columnNames;
- (NSNumber *)integerAtColumn:(int)theColumn;
- (NSNumber *)doubleAtColumn:(int)theColumn;
- (NSString *)stringAtColumn:(int)theColumn;
- (NSData *)dataAtColumn:(int)theColumn;
- (id)objectAtColumn:(int)theColumn;
- (NSArray *)nextRowAsArray;
- (NSDictionary *)nextRow;
- (int)step;
- (int)reset;
@end