Skip to content

EF.DB.DBX ​

DBExpress-based database access layer.

TEFDBDBXInfo class ​

Retrieves metadata from a database through DBX. Should support all databases supported by DBX, depending on the driver used.

pascal
constructor Create(const AConnection: TSQLConnection);

Creates the info object bound to the given DBX connection.

pascal
property Connection: TSQLConnection read FConnection write FConnection;

The DBX connection used to retrieve database metadata.

TEFSQLConnection class ​

TSQLConnection descendant used internally by the DBX adapter.

TEFDBDBXConnection class ​

DBExpress implementation of TEFDBConnection. Supports the databases reachable through the configured DBX driver.

pascal
procedure AfterConstruction;

Creates the internal TSQLConnection and connection string.

pascal
destructor Destroy;

Closes and destroys the internal TSQLConnection.

pascal
function IsOpen: Boolean;

DBX implementation of TEFDBConnection.IsOpen.

pascal
function ExecuteImmediate(const AStatement: string): Integer;

DBX implementation of TEFDBConnection.ExecuteImmediate.

pascal
procedure InternalStartTransaction;

DBX implementation of TEFDBConnection.InternalStartTransaction.

pascal
procedure InternalCommitTransaction;

DBX implementation of TEFDBConnection.InternalCommitTransaction.

pascal
procedure InternalRollbackTransaction;

DBX implementation of TEFDBConnection.InternalRollbackTransaction.

pascal
function IsInTransaction: Boolean;

DBX implementation of TEFDBConnection.IsInTransaction.

pascal
function GetLastAutoincValue(const ATableName: string = ''): Int64;

Auto-inc fields are not supported in dbExpress; always returns 0.

pascal
function FetchSequenceGeneratorValue(const ASequenceName: string): Int64;

Fetches the next value of a sequence generator (Oracle and IB/Fb only).

pascal
function CreateDBCommand: TEFDBCommand;

DBX implementation of TEFDBConnection.CreateDBCommand.

pascal
function CreateDBQuery: TEFDBQuery;

DBX implementation of TEFDBConnection.CreateDBQuery.

pascal
function GetConnection: TObject;

Returns the underlying TSQLConnection instance.

TEFSQLQuery class ​

Customized TSQLQuery used inside TEFDBXCommand and TEFDBDBXQuery.

pascal
function ExecSQL(ExecDirect: Boolean = False): Integer;

Patches unknown parameter types before delegating to the inherited ExecSQL, to avoid the DBX "No value for parameter X" error.

TEFDBDBXCommand class ​

DBExpress implementation of TEFDBCommand (statements returning no result set), backed by an internal TEFSQLQuery.

pascal
procedure AfterConstruction;

Creates the internal TEFSQLQuery.

pascal
destructor Destroy;

Destroys the internal TEFSQLQuery.

pascal
function Execute: Integer;

DBX implementation of TEFDBCommand.Execute; returns the number of affected rows.

TEFDBDBXQuery class ​

DBExpress implementation of TEFDBQuery (statements returning a result set), backed by an internal TEFSQLQuery.

pascal
procedure AfterConstruction;

Creates the internal TEFSQLQuery.

pascal
destructor Destroy;

Destroys the internal TEFSQLQuery.

pascal
function Execute: Integer;

Execute and Open are synonims in this class. Execute always returns 0.

pascal
procedure Open;

DBX implementation of TEFDBQuery.Open; opens the underlying dataset.

pascal
procedure Close;

DBX implementation of TEFDBQuery.Close; closes the underlying dataset.

pascal
function IsOpen: Boolean;

DBX implementation of TEFDBQuery.IsOpen.

TEFDBDBXConnectionConfig class ​

DBExpress connection parameters. YAML path: DatabaseRouter/DatabaseName/Connection

TEFDBDBXAdapter class ​

Database adapter that creates DBExpress connections. Registered with the adapter registry under the ClassId 'DBX'.

Released under Apache License, Version 2.0.