Initial import.
FossilOrigin-Name: de46b0e10c5d9f516acbbf2ea01d84d0d5ac126412949d459265279262a1b87e
This commit is contained in:
commit
dbfce3528e
15 changed files with 586 additions and 0 deletions
25
PGConnection.h
Normal file
25
PGConnection.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue