]> err.no Git - sope/blob - sope-gdl1/PostgreSQL/PostgreSQL72Adaptor.h
renamed PostgreSQL72 to PostgreSQL, install in Library/GDLAdaptors-1.1
[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 // $Id: PostgreSQL72Adaptor.h 1 2004-08-20 10:38:46Z znek $
27
28 #ifndef ___PostgreSQL72_Adaptor_H___
29 #define ___PostgreSQL72_Adaptor_H___
30
31 /*
32   The PostgreSQL72 adaptor.
33
34   The connection dictionary of this adaptor understands these keys:
35     hostName
36     port
37     options
38     tty
39     userName
40     password
41     databaseName
42
43   The adaptor is based on libpq.
44 */
45
46 #import <Foundation/NSMapTable.h>
47 #import <GDLAccess/EOAdaptor.h>
48 #import <GDLAccess/EOAttribute.h>
49
50 @class NSString, NSMutableDictionary, NSArray;
51
52 @interface PostgreSQL72Adaptor : EOAdaptor
53 {
54 }
55
56 - (id)initWithName:(NSString *)_name;
57
58 /* connection management */
59
60 - (NSString *)serverName;
61 - (NSString *)loginName;
62 - (NSString *)loginPassword;
63 - (NSString *)databaseName;
64 - (NSString *)port;
65 - (NSString *)options;
66 - (NSString *)tty;
67 - (NSString *)newKeyExpression;
68
69 /* sequence for primary key generation */
70
71 - (NSString *)primaryKeySequenceName;
72
73 /* value formatting */
74
75 - (id)formatValue:(id)value forAttribute:(EOAttribute *)attribute;
76
77 /* attribute typing */
78
79 - (BOOL)attributeAllowedInDistinctSelects:(EOAttribute *)_attr;
80
81 /* classes used */
82
83 - (Class)adaptorContextClass; // PostgreSQL72Context
84 - (Class)adaptorChannelClass; // PostgreSQL72Channel
85 - (Class)expressionClass;     // PostgreSQL72Expression
86
87 @end
88
89 #endif