1 {*********************************************************}
3 { Zeos Database Objects }
4 { Database Connection Component }
6 { Originally written by Sergey Seroukhov }
8 {*********************************************************}
10 {@********************************************************}
11 { Copyright (c) 1999-2012 Zeos Development Group }
13 { License Agreement: }
15 { This library is distributed in the hope that it will be }
16 { useful, but WITHOUT ANY WARRANTY; without even the }
17 { implied warranty of MERCHANTABILITY or FITNESS FOR }
18 { A PARTICULAR PURPOSE. See the GNU Lesser General }
19 { Public License for more details. }
21 { The source code of the ZEOS Libraries and packages are }
22 { distributed under the Library GNU General Public }
23 { License (see the file COPYING / COPYING.ZEOS) }
24 { with the following modification: }
25 { As a special exception, the copyright holders of this }
26 { library give you permission to link this library with }
27 { independent modules to produce an executable, }
28 { regardless of the license terms of these independent }
29 { modules, and to copy and distribute the resulting }
30 { executable under terms of your choice, provided that }
31 { you also meet, for each linked independent module, }
32 { the terms and conditions of the license of that module. }
33 { An independent module is a module which is not derived }
34 { from or based on this library. If you modify this }
35 { library, you may extend this exception to your version }
36 { of the library, but you are not obligated to do so. }
37 { If you do not wish to do so, delete this exception }
38 { statement from your version. }
41 { The project web site is located on: }
42 { http://zeos.firmos.at (FORUM) }
43 { http://sourceforge.net/p/zeoslib/tickets/ (BUGTRACKER)}
44 { svn://svn.code.sf.net/p/zeoslib/code-0/trunk (SVN) }
46 { http://www.sourceforge.net/projects/zeoslib. }
49 { Zeos Development Group. }
50 {********************************************************@}
59 SysUtils, Classes, ZAbstractConnection, ZClasses;
62 ZEOS_MAJOR_VERSION = ZClasses.ZEOS_MAJOR_VERSION;
63 ZEOS_MINOR_VERSION = ZClasses.ZEOS_MINOR_VERSION;
64 ZEOS_SUB_VERSION = ZClasses.ZEOS_SUB_VERSION;
65 ZEOS_STATUS = ZClasses.ZEOS_STATUS;
66 ZEOS_VERSION = ZClasses.ZEOS_VERSION;
70 {** Represents a component which wraps a connection to database. }
71 TZConnection = class(TZAbstractConnection)
73 property HostName: string read GetHostName write SetHostName;
74 property Port: Integer read GetConnPort write SetConnPort;
75 property Database: string read GetDatabase write SetDatabase;
76 property User: string read GetUser write SetUser;
77 property Password: string read GetPassword write SetPassword;
78 property Protocol: string read GetProtocol write SetProtocol;
79 property Catalog: string read FCatalog write FCatalog;
80 property LibraryLocation: String read GetLibLocation write SetLibLocation;