]> err.no Git - sope/blob - sope-gdl1/PostgreSQL/PostgreSQL72Adaptor.h
Add libxml2-dev to libsope-xml4.7-dev deps
[sope] / sope-gdl1 / PostgreSQL / PostgreSQL72Adaptor.h
1 /* 
2    PostgreSQL72Adaptor.h
3
4    Copyright (C) 1999 MDlink online service center GmbH and Helge Hess
5    Copyright (C) 2000-2004 SKYRIX Software AG and Helge Hess
6
7    Author: Helge Hess (helge.hess@opengroupware.org)
8    
9    This file is part of the PostgreSQL72 Adaptor Library
10
11    This library is free software; you can redistribute it and/or
12    modify it under the terms of the GNU Library General Public
13    License as published by the Free Software Foundation; either
14    version 2 of the License, or (at your option) any later version.
15
16    This library is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19    Library General Public License for more details.
20
21    You should have received a copy of the GNU Library General Public
22    License along with this library; see the file COPYING.LIB.
23    If not, write to the Free Software Foundation,
24    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 */
26
27 #ifndef ___PostgreSQL72_Adaptor_H___
28 #define ___PostgreSQL72_Adaptor_H___
29
30 /*
31   The PostgreSQL72 adaptor.
32
33   The connection dictionary of this adaptor understands these keys:
34     hostName
35     port
36     options
37     tty
38     userName
39     password
40     databaseName
41
42   The adaptor is based on libpq.
43 */
44
45 #import <Foundation/NSMapTable.h>
46 #import <GDLAccess/EOAdaptor.h>
47 #import <GDLAccess/EOAttribute.h>
48
49 @class NSString, NSMutableDictionary, NSArray;
50
51 @interface PostgreSQL72Adaptor : EOAdaptor
52 {
53 }
54
55 - (id)initWithName:(NSString *)_name;
56
57 /* connection management */
58
59 - (NSString *)serverName;
60 - (NSString *)loginName;
61 - (NSString *)loginPassword;
62 - (NSString *)databaseName;
63 - (NSString *)port;
64 - (NSString *)options;
65 - (NSString *)tty;
66 - (NSString *)newKeyExpression;
67
68 /* sequence for primary key generation */
69
70 - (NSString *)primaryKeySequenceName;
71
72 /* value formatting */
73
74 - (id)formatValue:(id)value forAttribute:(EOAttribute *)attribute;
75
76 /* attribute typing */
77
78 - (BOOL)attributeAllowedInDistinctSelects:(EOAttribute *)_attr;
79
80 /* classes used */
81
82 - (Class)adaptorContextClass; // PostgreSQL72Context
83 - (Class)adaptorChannelClass; // PostgreSQL72Channel
84 - (Class)expressionClass;     // PostgreSQL72Expression
85
86 @end
87
88 #endif