Overview
TBIDB provides database connectivity for importing data from SQL databases into TeeBI structures. Works with any ADO, FireDAC, or dbExpress connection through a pluggable engine architecture.
Location: BI.DB.pas:51
Setup
Before using TBIDB, you must configure the database engine:Constructor
Properties
Engine
Methods
Import from Connection
Import from Definition
Import from File
Usage Example
Basic Import
Using Data Definition
TBIDBExport
Location:BI.DB.pas:76
Export data to database tables or create TDataSet from TDataItem.
Methods
Usage Example
Supported Engines
- FireDAC: TBIFireDACEngine (BI.DB.FireDAC)
- ADO: TBIADOEngine (BI.DB.ADO)
- dbExpress: TBIDBExpressEngine (BI.DB.DBX)
Features
- Parallel Import: Multi-threaded table loading for large databases
- Schema Detection: Automatic detection of primary keys and foreign keys
- Type Mapping: Automatic conversion of SQL types to TDataKind
- Progress Events: Monitor import progress
- Error Handling: Skip problematic tables with error callbacks
