TSQLConnection class
An abstract class representing a connection to a SQL Database.
Declaration
TSQLConnection = class(TDatabase)Inheritance
- TSQLConnection
- TDatabase
- TCustomConnection
- TComponent
- TPersistent
- TObject
Descends from it: TIBConnection TMSSQLConnection TSQLConnector
Description
TSQLConnection is an abstract class for making a connection to a SQL
Database. This class will never be instantiated directly, for each database
type a descendent class specific for this database type must be created.
Most of common properties to SQL databases are implemented in this class.
See also
Properties
Statements | protected | |
Port | protected | Port the SQL engine is listening on. |
CodePage | protected | |
ConnOptions | public | The set of Connection options being used in the Connection. |
Handle | public | Low level handle used by the connection. |
FieldNameQuoteChars | public | Characters used to quote field names. |
Password | published | Password used when authenticating on the database server. |
Transaction | published | Default transaction to be used for this connection. |
UserName | published | The username for authentication on the database server. |
CharSet | published | The character set to be used in this database. |
HostName | published | The name of the host computer where the database resides. |
LogEvents | published | Filter for events to log. |
Options | published | Options to observe for this connection. |
Role | published | Role in which the user is connecting to the database. |
Connected | published | Is a connection to the server active or not. |
DatabaseName | published | The name of the database to which connection is required. |
KeepConnection | published | Attempt to keep the connection open once it is established. |
LoginPrompt | published | Should SQLDB prompt for user credentials when a connection is activated. |
Params | published | Extra connection parameters. |
Methods
AddFieldToUpdateWherePart | protected | |
ConstructInsertSQL | protected | |
ConstructUpdateSQL | protected | |
ConstructDeleteSQL | protected | |
ConstructRefreshSQL | protected | |
CreateCustomQuery | protected | |
InitialiseUpdateStatement | protected | |
ApplyFieldUpdate | protected | |
ApplyRecUpdate | protected | |
RefreshLastInsertID | protected | |
GetDBInfo | protected | |
PortParamName | protected | |
GetConnectionCharSet | protected | |
SetTransaction | protected | |
DoConnect | protected | |
DoInternalConnect | protected | |
DoInternalDisconnect | protected | |
GetAsString | protected | |
GetAsSQLText | protected | |
GetHandle | protected | |
LogEvent | protected | |
LogParams | protected | |
Log | protected | |
RegisterStatement | protected | |
UnRegisterStatement | protected | |
UnPrepareStatements | protected | |
AllocateCursorHandle | protected | |
DeAllocateCursorHandle | protected | |
StrToStatementType | protected | |
PrepareStatement | protected | |
UnPrepareStatement | protected | |
Execute | protected | |
RowsAffected | protected | |
Fetch | protected | |
AddFieldDefs | protected | |
AddFieldDef | protected | |
LoadField | protected | |
LoadBlobIntoBuffer | protected | |
FreeFldBuffers | protected | |
AllocateTransactionHandle | protected | |
GetTransactionHandle | protected | |
Commit | protected | |
RollBack | protected | |
StartImplicitTransaction | protected | |
StartDBTransaction | protected | |
CommitRetaining | protected | |
RollBackRetaining | protected | |
UpdateIndexDefs | protected | |
GetSchemaInfoSQL | protected | |
GetNextValueSQL | protected | |
MaybeConnect | protected | |
Create | public | Create a new instance of TSQLConnection. |
Destroy | public | Destroys the instance of the connection. |
StartTransaction | public | Start the Transaction associated with this Connection. |
EndTransaction | public | End the Transaction associated with this connection. |
ExecuteDirect | public | Execute a piece of SQL code directly, using a Transaction if specified. |
GetObjectNames | public | Return a collection of object names for a given type of object. |
HasTable | public | |
GetTableNames | public | Get a list of the tables in the specified database. |
GetProcedureNames | public | Gets a list of Stored Procedures in the Database. |
GetFieldNames | public | Gets a list of the field names in the specified table. |
GetSchemaNames | public | Get database schema names. |
GetSequenceNames | public | Return a list of sequence names. |
GetConnectionInfo | public | Return some information about the connection. |
GetStatementInfo | public | Get statement information. |
CreateDB | public | Create a new Database on the server. |
DropDB | public | Procedure to drop or remove a Database. |
GetNextValue | public | Get next value for a sequence. |
Events
OnLog | published | Event handler for logging events. |
OnLogin | published | Event handler for login process. |
Fields
FConnOptions | protected | |
FSQLFormatSettings | protected |
Inherited
From TDatabase (12)
CheckConnected CheckDisConnected CloseDataSets CloseTransactions Directory DoDisconnect GetConnected GetDataset GetDataSetCount IsSQLBased TransactionCount Transactions
From TCustomConnection (20)
AfterConnect AfterDisconnect BeforeConnect BeforeDisconnect Close CloseForDestroy DataSetCount DataSets DoCloseError DoLoginPrompt ForcedClose GetLoginParams InternalHandleException Loaded OnCloseError Open SetConnected SetForcedClose SetLoginParams StreamedConnected
From TComponent (73)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (5)
Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (37)
AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
