aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source/FLXPostgresResult.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-09-16 04:27:12 +0000
committerstuconnolly <stuart02@gmail.com>2012-09-16 04:27:12 +0000
commita0b76fba5ade5b1c018cb7ebcfae193cec114f5f (patch)
tree3a64048771b0fed2efac5de13176c6a4c28031fc /Frameworks/PostgresKit/Source/FLXPostgresResult.h
parent202413b252af301e314a097b3deda6ac1a592a2a (diff)
downloadsequelpro-a0b76fba5ade5b1c018cb7ebcfae193cec114f5f.tar.gz
sequelpro-a0b76fba5ade5b1c018cb7ebcfae193cec114f5f.tar.bz2
sequelpro-a0b76fba5ade5b1c018cb7ebcfae193cec114f5f.zip
Add the ability to set the default row return type.
Diffstat (limited to 'Frameworks/PostgresKit/Source/FLXPostgresResult.h')
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresResult.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXPostgresResult.h b/Frameworks/PostgresKit/Source/FLXPostgresResult.h
index 4148ba3d..168f8f15 100644
--- a/Frameworks/PostgresKit/Source/FLXPostgresResult.h
+++ b/Frameworks/PostgresKit/Source/FLXPostgresResult.h
@@ -30,7 +30,7 @@ typedef enum
}
FLXPostgresResultRowType;
-@interface FLXPostgresResult : NSObject
+@interface FLXPostgresResult : NSObject
{
void *_result;
void **_typeHandlers;
@@ -43,6 +43,7 @@ FLXPostgresResultRowType;
NSString **_fields;
NSStringEncoding _stringEncoding;
+ FLXPostgresResultRowType _defaultRowType;
FLXPostgresConnection *_connection;
}
@@ -62,6 +63,11 @@ FLXPostgresResultRowType;
*/
@property (readonly) NSStringEncoding stringEncoding;
+/**
+ * @property defaultRowType The row type that should be used when calling -row.
+ */
+@property (readwrite, assign) FLXPostgresResultRowType defaultRowType;
+
- (id)initWithResult:(void *)result connection:(FLXPostgresConnection *)connection;
- (NSUInteger)numberOfFields;
@@ -70,6 +76,7 @@ FLXPostgresResultRowType;
- (NSArray *)fields;
+- (id)row;
- (NSArray *)rowAsArray;
- (NSDictionary *)rowAsDictionary;
- (id)rowAsType:(FLXPostgresResultRowType)type;