ObjPgSQL/PGConnection.h
Jonathan Schleifer 6e1eda2f24 Nicer API.
-[executeCommand:parameters:] is now a variadic function instead of
taking an array as argument.

FossilOrigin-Name: d2fe40f16065b5ccf5ba135af1ec95f09ed2f8ee96e661a7a7d085da833e972e
2012-10-05 20:17:44 +00:00

25 lines
507 B
Objective-C

#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