Skip to content

TConnectionDef

Connection type definition class.

Declaration

Source position: sqldb.pp line 835

type

  TConnectionDef = class(TPersistent)
    class function TypeName : string;
    class function ConnectionClass : TSQLConnectionClass;
    class function Description : string;
    class function DefaultLibraryName : string;
    class function LoadFunction : TLibraryLoadFunction;
    class function UnLoadFunction : TLibraryUnLoadFunction;
    class function LoadedLibraryName : string;
    procedure ApplyParams;
  end;

Description

TConnectionDef is an abstract class. When registering a new connection type for use in the universal connector, a descendent of this class must be made and registered using RegisterConnection. A descendent class should override at least the TConnectionDef.TypeName and TConnectionDef.ConnectionClass methods to return the specific name and connection class to use.

Methods

Member Visibility Description
ApplyParams default Apply parameters to an instance of TSQLConnection.
ConnectionClass default Class to instantiate when this connection is requested.
DefaultLibraryName default Default library name.
Description default A descriptive text for this connection type.
LoadedLibraryName default Currently loaded library.
LoadFunction default Return a function to call when the client library must be loaded.
TypeName default Name of the connection type.
UnLoadFunction default Return a function to call when the client library must be unloaded.
See all Methods

See also

Name Description
TConnectionDef.TypeName Name of the connection type.
TConnectionDef.ConnectionClass Class to instantiate when this connection is requested.
RegisterConnection Register a new connection type for use in the universal connector.