function TPDO.getAvailableDrivers: TStringList;
This function returns all currently available PDO drivers which can be used for database connection
procedure list_drivers; var driverList: TStringList; totdrivers, loop: Byte; Begin driverList := db.getAvailableDrivers; totdrivers := driverList.count; for loop := 0 to totdrivers - 1 do writeln (driverList.strings[loop]); driverList.free; End;
The above example may output something similar to:
mysql-4.0 mysql-4.1 mysql-5.0 pgsql-8.1