[Overview][Constants][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TIBConnection: Firebird/Interbase specific TSQLConnection
Source position: ibconnection.pp line 49
type TIBConnection = class(TSQLConnection) |
||
public |
||
constructor Create(); override; |
|
Creates a TIBConnection object |
procedure CreateDB; override; |
|
Creates a database on disk |
procedure DropDB; override; |
|
Deletes a database from disk |
BlobSegmentSize: Word; |
|
Write this amount of bytes per BLOB segment |
function GetDBDialect; |
|
Retrieves database dialect |
published |
||
DatabaseName: <NIL>; |
|
Name of the database to connect to |
|
Database dialect |
|
KeepConnection: <NIL>; |
|
Keep open connection after first query |
LoginPrompt: <NIL>; |
|
Switch for showing custom login prompt |
Params: <NIL>; |
|
Firebird/Interbase specific parameters |
OnLogin: <NIL>; |
|
Event triggered when a login prompt needs to be shown. |
end; |
|
TIBConnection: Firebird/Interbase specific TSQLConnection |
|
| | ||
TSQLConnection |
||
? | ||
TObject |
TIBConnection is a descendant of TSQLConnection and represents a connection to a Firebird/Interbase server.
It is designed to work with Interbase 6, Firebird 1 and newer database servers.
TIBConnection by default requires the Firebird/Interbase client library (e.g. gds32.dll, libfbclient.so, fbclient.dll,fbembed.dll) and its dependencies to be installed on the system. The bitness between library and your application must match: e.g. use 32 bit fbclient when developing a 32 bit application on 64 bit Linux.
On Windows, in accordance with the regular Windows way of loading DLLs, the library can also be in the executable directory. In fact, this directory is searched first, and might be a good option for distributing software to end users as it eliminates problems with incompatible DLL versions.
TIBConnection is based on FPC Interbase/Firebird code (ibase60.inc) that tries to load the client library. If you want to use Firebird embedded, make sure the embedded library is searched/loaded first. There are several ways to do this:
Pre 2.5.1 versions of FPC did not try to load the fbembed library by default. See FPC bug 17664 for more details.
An indication of which DLLs need to be installed on Windows (Firebird 2.5, differs between versions:
Please see your database documentation for details.
TSQLConnection |