From 7dd33a85a537c410cd3b31d661731b1f8d1e7d59 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 10 Sep 2012 11:09:56 +0000 Subject: Rework type handling; reducing the number of paremeters being passed around as well as libpq calls. --- .../PostgresKit/Source/FLXPostgresTypeHandlerProtocol.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Frameworks/PostgresKit/Source/FLXPostgresTypeHandlerProtocol.h') diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypeHandlerProtocol.h b/Frameworks/PostgresKit/Source/FLXPostgresTypeHandlerProtocol.h index a0c04c26..8b22c158 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresTypeHandlerProtocol.h +++ b/Frameworks/PostgresKit/Source/FLXPostgresTypeHandlerProtocol.h @@ -27,6 +27,14 @@ */ @protocol FLXPostgresTypeHandlerProtocol +@property (readwrite, assign) NSUInteger row; + +@property (readwrite, assign) NSUInteger column; + +@property (readwrite, assign) FLXPostgresOid type; + +@property (readwrite, assign) const PGresult *result; + /** * The remote type values handled by this class (terminated by 0). * @@ -51,12 +59,8 @@ /** * Convert the value at the specified row and column in the supplied result to a native object. * - * @param result The result to extract the value from. - * @param row The row to extract the value from. - * @param column The column to extract the value from. - * * @return An object represenation of the data. */ -- (id)objectFromResult:(const PGresult *)result atRow:(NSUInteger)row column:(NSUInteger)column; +- (id)objectFromResult; @end -- cgit v1.2.3