1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536
|
<?xml version="1.0" encoding="utf-8"?>
<fpdoc-descriptions>
<package name="fcl">
<!--
====================================================================
IBConnection
====================================================================
-->
<module name="IBConnection">
<short>Firebird/Interbase database connection unit</short>
<!-- constant Visibility: default -->
<element name="DEFDIALECT">
<short>Default Interbase/Firebird dialect</short>
<descr>Default dialect that will be used when connecting to databases. See <link id="TIBConnection.Dialect"/> for more details on dialects.
</descr>
<seealso>
<link id="TIBConnection.Dialect"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.IBConnection.EIBDatabaseError
********************************************************************
-->
<!-- class Visibility: default -->
<element name="EIBDatabaseError">
<short>Firebird/Interbase database error</short>
<descr>Firebird/Interbase database error, a descendant of <link id="db.EDatabaseError"/>.
</descr>
<errors/>
<seealso>
<link id="db.EDatabaseError"/>
</seealso>
</element>
<!-- variable Visibility: public -->
<element name="EIBDatabaseError.GDSErrorCode">
<short>Firebird/Interbase GDS error code.</short>
<descr>Firebird/Interbase-specific error code, the GDS error code. From a Firebird perspective:
Firebird throws 2 error codes for an exception. The high-level one is the SQLCODE, which is a negative 3-digit code. The lower-level one is the ISC code
(or GDSCODE) which has 9 digits. Related ISC error types are grouped under the same SQLCODE. In some cases, each successive gdscode error gives you further information about the error condition.
Note: SQLCODE is a deprecated SQL standard; its successor is SQLSTATE.
</descr>
<seealso/>
</element>
<!--
********************************************************************
#fcl.IBConnection.TIBCursor
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TIBCursor">
<short>Firebird/Interbase cursor</short>
<descr>A cursor that keeps track of where you are in a Firebird/Interbase dataset. It is a descendent of
<link id="TSQLCursor"/>.</descr>
<seealso>
<link id="TSQLCursor"/>
<link id="TIBConnection"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.IBConnection.TIBTrans
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TIBTrans">
<short>Firebird/Interbase transaction</short>
<descr>Firebird/Interbase database transaction object. Descendant of
<link id="TSQLHandle"/>.</descr>
<seealso>
<link id="TSQLHandle"/>
<link id="TIBConnection"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.IBConnection.TIBConnection
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TIBConnection">
<short>
<var>TIBConnection</var>: Firebird/Interbase specific
<link id="TSQLConnection"/>
</short>
<descr>
<p>
<var>TIBConnection</var> is a descendant of
<link id="TSQLConnection"/> and represents a connection to a Firebird/Interbase server.</p>
<p>It is designed to work with Interbase 6, Firebird 1 and newer database servers.</p>
<p>
<var>TIBConnection</var> 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.</p>
<p>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.</p>
<p>
<var>TIBConnection</var> 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:
</p>
<ul>
<li>Include <var>ibase60</var> in your uses clause, set <var>UseEmbeddedFirebird</var> to true</li>
<li>On Windows, with FPC newer than 2.5.1, put fbembed.dll in your application directory</li>
<li>On Windows, put the fbembed.dll in your application directory and rename it to fbclient.dll</li>
</ul>
<p>
Pre 2.5.1 versions of FPC did not try to load the fbembed library by default. See
<url href="http://mantis.freepascal.org/view.php?id=17664">FPC bug 17664</url> for more details.</p>
<p>An indication of which DLLs need to be installed on Windows (Firebird 2.5, differs between
versions:
</p>
<ul>
<li>fbclient.dll (or fbembed.dll)</li>
<li>firebird.msg</li>
<li>ib_util.dll</li>
<li>icudt30.dll</li>
<li>icuin30.dll</li>
<li>icuuc30.dll</li>
<li>msvcp80.dll</li>
<li>msvcr80.dll</li>
</ul>
<p>Please see your database documentation for details.</p>
<p>
The <var>TIBConnection</var> component does not reliably detect
computed fields as such. This means that automatically generated update SQL
statements will attempt to update these fields, resulting in SQL
errors. These errors can be avoided by removing the
<var>pfInUpdate</var> flag from the provideroptions from a field, once it has been created:
</p>
<code>
MyQuery.FieldByName('full_name').ProviderFlags:=[];
</code>
</descr>
<seealso>
<link id="TSQLConnection"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TIBConnection.Create">
<short>Creates a <var>TIBConnection</var> object</short>
<descr/>
<errors/>
<seealso/>
</element>
<!-- argument Visibility: default -->
<element name="TIBConnection.Create.AOwner">
<short>Owner of the connection; use nil when not using a widgetset.</short>
</element>
<!-- procedure Visibility: public -->
<element name="TIBConnection.CreateDB">
<short>Creates a database on disk</short>
<descr>
<p>Instructs the Interbase or Firebird database server to create a new database.</p>
<p>If set, the <link id="TSQLConnection.Params"/> (specifically, <var>PAGE_SIZE</var>) and <link
id="TSQLConnection.CharSet"/> properties influence the database creation.</p>
<p>If creating a database using a client/server environment, the <var>TIBConnection</var> code will connect to the database server before trying to create the database. Therefore make sure the connection properties are already correctly set, e.g. <link id="TSQLConnection.HostName"/>, <link id="TSQLConnection.UserName"/>, <link id="TSQLConnection.Password"/>.</p>
<p>If creating a database using Firebird embedded, make sure the embedded library is loaded, the <link
id="TSQLConnection.HostName"/> property is empty, and set the <link id="TSQLConnection.UserName"/> to e.g. 'SYSDBA'. See <printshort id="TIBConnection"/> for details on loading the embedded database library.</p>
</descr>
<seealso>
<link id="TSQLConnection.Params"/>
<link id="TSQLConnection.DropDB"/>
<link id="TIBConnection"/>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TIBConnection.DropDB">
<short>Deletes a database from disk</short>
<descr>
<p>
<var>DropDB</var> instructs the Interbase/Firebird database server to delete the database that is specified in the
<link id="TIBConnection"/>.</p>
<p>In a client/server environment, the <var>TIBConnection</var> code will connect to the database server before telling it to drop the database.
Therefore make sure the connection properties are already correctly set, e.g. <link
id="TSQLConnection.HostName"/>, <link
id="TSQLConnection.UserName"/>, <link
id="TSQLConnection.Password"/>.</p>
<p>When using Firebird embedded, make sure the embedded connection library is loaded, the <link
id="TSQLConnection.HostName"/> property is empty, and set the <link
id="TSQLConnection.UserName"/> to e.g. 'SYSDBA'. See <printshort id="TIBConnection"/> for more details on loading the embedded library.</p>
</descr>
<seealso>
<link id="TSQLConnection.CreateDB"/>
<link id="TSQLConnection.HostName"/>
<link id="TSQLConnection.UserName"/>
<link id="TSQLConnection.Password"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TIBConnection.BlobSegmentSize">
<short>Write this amount of bytes per BLOB segment</short>
<descr>
<p>
<b>Deprecated</b> since FPC 2.7.1 revision 19659</p>
<p>When sending BLOBs to the database, the code writes them in segments.</p>
<p>Before FPC 2.7.1 revision 19659, these segments were 80 bytes and could be changed using <var>BlobSegmentSize</var>. Please set BlobSegmentSize to 65535 for better write performance.</p>
<p>In newer FPC versions, the BlobSegmentSize property is ignored and segments of 65535 bytes are always used.</p>
</descr>
</element>
<!-- function Visibility: public -->
<element name="TIBConnection.GetDBDialect">
<short>Retrieves database dialect</short>
<descr>
<p>Gets the Interbase/Firebird database dialect. You should take account of dialect when sending queries to the database.</p>
<p>Note: the dialect for new Interbase/Firebird databases is 3; dialects 1 and 2 are only used in legacy environments. See your database documentation for more details.</p>
</descr>
<seealso>
<link id="TIBConnection.Dialect"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TIBConnection.GetDBDialect.Result">
<short>The dialect as a number</short>
</element>
<!-- property Visibility: published -->
<!-- Reinier Olislagers: this is inherited from SQLDB, but need to add Firebird-specific info, e.g. regarding port, embedded use -->
<element name="TIBConnection.HostName">
<short>Name of the server to connect to</short>
<descr>
<p>
<var>HostName</var> specifies the server to connect to.</p>
<p>In a client/server environment, this is the hostname or IP address of the Interbase/Firebird server. If the server uses some TCP/IP port other than the default 3050, add a slash (/) and the port number after the server name.</p>
<p>Documentation for Firebird 2.0 and up indicates that on Windows, you can also connect to a server on local machine using the local transport protocol, in which case <var>HostName</var> must be empty.</p>
<p>If using an embedded Firebird database, the name must be empty. Please see <printshort id="TIBConnection"/> for details on loading the right library</p>
<p>Examples:</p>
<p>
<code>MyConnection.HostName:='firebird.example.com'; //Connect via TCP/IP using hostname</code>
</p>
<p>
<code>MyConnection.HostName:='127.0.0.1/3000'; //Connect to port 3000 on localhost via TCP/IP</code>
</p>
<p>
<code>MyConnection.HostName:=''; //Connect to embedded server or perhaps using local transport protocol on Windows</code>
</p>
<p>Please see your database documentation for details.</p>
</descr>
<seealso>
<link id="TIBConnection"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TIBConnection.DatabaseName">
<short>Name of the database to connect to</short>
<descr>
<p>Name of the Interbase/Firebird database to connect to.</p>
<p>This can be either the path to the database or an alias name. Please see your database documentation for details.</p>
<p>In a client/server environment, the name indicates the location of the database on the server's file system, so if you have a Linux Firebird server, you might have something like /var/lib/firebird/2.5/data/employee.fdb</p>
<p>If using an embedded Firebird database, the name is a relative path relative to the fbembed library.</p>
<p>Note that the path is specified as an Ansistring, meaning that
databases residing in directories that rely on Unicode characters
will not work. (firebird itself also cannot handle this).
</p>
</descr>
</element>
<!-- property Visibility: published -->
<element name="TIBConnection.Dialect">
<short>Database dialect</short>
<descr>
<p>Firebird/Interbase servers since Interbase 6 have a dialect setting for backwards compatibility. It can be 1, 2 or 3, the default is
3.</p>
<p>Note: the dialect for new Interbase/Firebird databases is 3; dialects 1 and 2 are only used in legacy environments. In practice, you can ignore this setting for newly created databases.</p>
</descr>
</element>
<!-- property Visibility: published -->
<element name="TIBConnection.KeepConnection">
<short>Keep open connection after first query</short>
<descr>Determines whether to keep the connection open once it is established and the first query has been executed.
</descr>
<seealso/>
</element>
<!-- property Visibility: published -->
<element name="TIBConnection.LoginPrompt">
<short>Switch for showing custom login prompt</short>
<descr>If true, the <link id="TSQLConnection.OnLogin">OnLogin</link> event will fire, allowing you to handle supplying of credentials yourself.
</descr>
<seealso>
<link id="TSQLConnection.OnLogin"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TIBConnection.Params">
<short>Firebird/Interbase specific parameters</short>
<descr>
<p>
<var>Params</var> is a
<link id="#rtl.classes.TStringList"/> of name=value combinations that set database-specific parameters.
</p>
<p>The following parameter is supported:</p>
<ul>
<li>
<var>PAGE_SIZE</var>: size of database pages (an integer), e.g. 16384.</li>
</ul>
<p>See your database documentation for more details.</p>
</descr>
<seealso>
<link id="#fcl.sqldb.TSQLConnection.Params"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TIBConnection.OnLogin">
<short>Event triggered when a login prompt needs to be shown.</short>
<descr>OnLogin is triggered when the connection needs a login prompt when connecting: it is triggered when the <link
id="TSQLConnection.LoginPrompt">LoginPrompt</link> property is True, after the
<link id="#fcl.db.TCustomConnection.BeforeConnect">BeforeConnect</link> event, but before the connection is actually established.
</descr>
<seealso>
<link id="#fcl.db.TCustomConnection.BeforeConnect"/>
<link id="TSQLConnection.LoginPrompt"/>
<link id="#fcl.db.TCustomConnection.Open"/>
<link id="TSQLConnection.OnLogin"/>
<!-- actually child of TCustomConnection.Login -->
</seealso>
</element>
<!--
********************************************************************
#fcl.IBConnection.TIBConnectionDef
********************************************************************
-->
<!-- class Visibility: default -->
<element name="TIBConnectionDef">
<short>Describes <link id="TIBConnection"/> class</short>
<descr>Child of <link
id="sqldb.TConnectionDef">TConnectionDef</link> used to register an Interbase/Firebird connection, so that it is available in "connection factory" scenarios where database drivers/connections are loaded at runtime and it is unknown at compile time whether the required database libraries are present on the end user's system.</descr>
<seealso>
<link id="TConnectionDef"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="TIBConnectionDef.TypeName">
<short>Firebird/Interbase child of <link id="TConnectionDef.TypeName"/>
</short>
<seealso>
<link id="TConnectionDef.TypeName"/>
<link id="TIBConnection"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TIBConnectionDef.TypeName.Result">
<short>Descriptive name</short>
</element>
<!-- function Visibility: default -->
<element name="TIBConnectionDef.ConnectionClass">
<short>Firebird/Interbase child of <link
id="#fcl.sqldb.TConnectionDef.ConnectionClass">ConnectionClass</link>
</short>
<seealso>
<link id="TConnectionDef.ConnectionClass"/>
<link id="TIBConnection"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TIBConnectionDef.ConnectionClass.Result">
<short>Class of connection</short>
</element>
<!-- function Visibility: default -->
<element name="TIBConnectionDef.Description">
<short>Description for the Firebird/Interbase child of <link
id="#fcl.sqldb.TConnectionDef.ConnectionClass"/>
</short>
<descr>The description identifies this
<var>ConnectionDef</var> object as a Firebird/Interbase connection.</descr>
<seealso>
<link id="#fcl.sqldb.TConnectionDef.Description"/>
<link id="TIBConnection"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TIBConnectionDef.Description.Result">
<short>Description</short>
</element>
<element name="EIBDatabaseError.StatusVector">
<short>Low-level IB API status vector</short>
<descr>
<var>StatusVector</var> contains the low-level status information returned by the last firebird/interbase APO call.
</descr>
<seealso/>
</element>
<element name="MAXBLOBSEGMENTSIZE">
<short>Maximum size to use when fetching blob segments
</short>
<descr/>
<seealso/>
</element>
<element name="TDatabaseInfo">
<short>Record with available database information</short>
<descr>
<var>TDatabaseInfo</var> is used internally by <var>TIBconnection</var> to store information about the connected database.
</descr>
<seealso>
<link id="TIBConnection"/>
</seealso>
</element>
<element name="TDatabaseInfo.Dialect">
<short>SQL dialect (1,2 or 3)</short>
</element>
<element name="TDatabaseInfo.ODSMajorVersion">
<short>Database On-Disk Structure major version</short>
</element>
<element name="TDatabaseInfo.ServerVersion">
<short>Short Interbase/Firebird server version as reported by server</short>
</element>
<element name="TDatabaseInfo.ServerVersionString">
<short>Long Interbase/Firebird server version as reported by server</short>
</element>
<element name="TIBConnection.CheckTransactionParams">
<short>Let StartTransaction check transaction parameters</short>
<descr>
<var>CheckTransactionParams</var> can be set to <var>True</var> to force the connection component
to check the transaction parameters for valid values before starting a transaction.
</descr>
</element>
<element name="TIBConnection.GetConnectionInfo">
<short>Return some information about the connection</short>
<descr><var>GetConnectionInfo</var> overrides
<link id="#fcl.sqldb.TSQLConnection.GetConnectionInfo">TSQLConnection.GetConnectionInfo</link>
to return the relevant information for the Interbase/Firebird connection.
</descr>
<seealso>
<link id="#fcl.sqldb.TSQLConnection.GetConnectionInfo">TSQLConnection.GetConnectionInfo</link>
<link id="#fcl.sqldb.TConnInfoType">TConnInfoType</link>
</seealso>
</element>
<element name="TIBConnection.GetConnectionInfo.Result">
<short>Requested information as a string value.</short>
</element>
<element name="TIBConnection.GetConnectionInfo.InfoType">
<short>The kind of connection information to be returned.</short>
</element>
<element name="TIBConnection.ODSMajorVersion">
<short>Database On-Disk Structure major version</short>
<descr>
<var>ODSMajorVersion</var> is the Database On-Disk Structure major version. It is provided for information purposes only.
</descr>
<seealso/>
</element>
<element name="TIBConnection.Port">
<short>Port at which the server listens</short>
<descr>
<var>Port</var> can be set to the port that Firebird is listening on. If not specified, the default port of 3050 is used when establishing a connection. This property must be set prior to activaiting the connection.
</descr>
<seealso/>
</element>
<element name="TIBConnection.UseConnectionCharSetIfNone">
<short>For string/blob fields with codepage none, use the connection character set when copying data</short>
<descr>
<var>UseConnectionCharSetIfNone</var> can be set to true to assume that fields which have no codepage set in the database schema, use the connection character set.
</descr>
<seealso>
<link id="#fcl.sqldb.TSQLConnection.Charset">TSQLConnection.Charset</link>
</seealso>
</element>
<element name="TIBConnection.WireCompression">
<short>Use wire compression when communicating with the server</short>
<descr>
<var>WireCompression </var> can be set to <var>True</var> to force the client to use compression when communicating with the server.
This property must be set prior to activaiting the connection.
</descr>
<seealso/>
</element>
<element name="TIBConnectionDef.DefaultLibraryName">
<short>Default name of the firebird client library</short>
<descr>
<var>DefaultLibraryName</var> returns the library name to use when loading the firebird client library.
</descr>
<seealso/>
</element>
<element name="TIBConnectionDef.DefaultLibraryName.Result">
<short>The library name</short>
</element>
<element name="TIBConnectionDef.LoadedLibraryName">
<short>Actally loaded library name</short>
<descr>
<var>LoadedLibraryName</var> returns the actually loaded library name.
</descr>
<seealso>
<link id="TIBConnectionDef.DefaultLibraryName">DefaultLibraryName</link>
</seealso>
</element>
<element name="TIBConnectionDef.LoadedLibraryName.Result">
<short>The actually loaded library</short>
</element>
<element name="TIBConnectionDef.LoadFunction">
<short>Return Function to call when loading firebird support</short>
<descr>
<var>LoadFunction</var> is used by the connector logic to get the function to dynamically load firebird support.
</descr>
<seealso/>
</element>
<element name="TIBConnectionDef.LoadFunction.Result">
<short>a function to call when loading firebird support</short>
</element>
<element name="TIBConnectionDef.UnLoadFunction">
<short>Return Function to call when unloading firebird support</short>
<descr>
<var>UnLoadFunction</var> is used by the connector logic to get the function to unload firebird support.
</descr>
</element>
<element name="TIBConnectionDef.UnLoadFunction.Result">
<short>a function to call when unloading firebird support</short>
</element>
<element name="TStatusVector">
<short>Firebird status vector</short>
<descr>
<var>TStatusVector</var> is the (opaque) type of the Interbase internal status vector.
</descr>
<seealso/>
</element>
</module>
<!-- IBConnection -->
</package>
</fpdoc-descriptions>
|