ObjPgSQL  Artifact [6e2d36c890]

Artifact 6e2d36c89077e064e0275c9336f8bdf009349a977158a43a605d7ddbc5f75f46:

  • File PGConnection.h — part of check-in [de46b0e10c] at 2012-10-03 13:20:06 on branch trunk — Initial import. (user: js size: 504)

#include <libpq-fe.h>

#import <ObjFW/ObjFW.h>

#import "PGResult.h"

@interface PGConnection: OFObject
{
	PGconn *conn;
	OFDictionary *parameters;
}

#ifdef OF_HAVE_PROPERTIES
@property (copy) OFDictionary *parameters;
#endif

- (void)setParameters: (OFDictionary*)parameters;
- (OFDictionary*)parameters;
- (void)connect;
- (void)reset;
- (PGResult*)executeCommand: (OFString*)command;
- (PGResult*)executeCommand: (OFString*)command
		 parameters: (OFArray*)parameters;
- (PGconn*)PG_connection;
@end