2
This file is part of the Free Pascal run time library.
3
Copyright (c) 2007 by Michael Van Canneyt, member of the
4
Free Pascal development team
6
Postgresql Data Dictionary Engine Implementation.
8
See the file COPYING.FPC, included in this distribution,
9
for details about the copyright.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
**********************************************************************}
23
Classes, SysUtils, sqldb, fpdatadict, fpddsqldb;
26
{ TSQLDBPostGreSQLDDEngine }
28
TSQLDBPostGreSQLDDEngine = Class(TSQLDBDDEngine)
30
Function CreateConnection(AConnectString : String) : TSQLConnection; override;
32
Class function Description : string; override;
33
Class function DBType : String; override;
36
Procedure RegisterPostgreSQLDDengine;
37
Procedure UnRegisterPostgreSQLDDengine;
43
procedure RegisterPostgreSQLDDengine;
45
RegisterDictionaryEngine(TSQLDBPostGreSQLDDEngine);
48
procedure UnRegisterPostgreSQLDDengine;
50
UnRegisterDictionaryEngine(TSQLDBPostGreSQLDDEngine);
53
{ TSQLDBPostGreSQLDDEngine }
55
function TSQLDBPostGreSQLDDEngine.CreateConnection(AConnectString: String
58
Result:=TPQConnection.Create(Self);
61
class function TSQLDBPostGreSQLDDEngine.Description: string;
63
Result:='PostGreSQL using SQLDB';
66
class function TSQLDBPostGreSQLDDEngine.DBType: String;