//
//  CEResultSetPostgreSQL.h
//  CEResultSetPostgreSQL
//
//  Copyright 2006 Cutedge. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <CEDatabase/CEResultSet.h>

#import "libpq-fe.h"
#import "pg_type.h"

@interface CEResultSetPostgreSQL : CEResultSet 
{
	PGresult	*_result;
	int			_currentRow;
}
 
+ (id)resultSet:(PGresult *)result;

- (void)dealloc;
- (BOOL)next;

- (NSString *)fieldTypeAtIndex:(int)index;
- (NSString *)fieldNameAtIndex:(int)index;
- (id)fieldAtIndex:(int)index;
- (id)convertFieldAtIndex:(int)index;

- (void)setResult:(PGresult *)result;

- (void)setCurrentRow:(int)value;
- (int)currentRow;

@end
