ObjPgSQL  Artifact [260fd28f22]

Artifact 260fd28f2271412c511632ad03a3e145782fba5e0204bc06d001e5aca391b070:

  • File PGConnection.h — part of check-in [d2fe40f160] at 2012-10-05 20:17:45 on branch trunk — Nicer API.

    -[executeCommand:parameters:] is now a variadic function instead of
    taking an array as argument. (user: js size: 507)


#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: (id)firstParameter, ...;
- (PGconn*)PG_connection;
@end