From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001
From: Ciro Mattia Gonano
-Since version 3.1, PRADO starts to provide a DAO that is a thin wrap around PHP Data Objects (PDO). Although PDO has a nice feature set and good APIs, we choose to implement the PRADO DAO on top of PDO because the PRADO DAO classes are component classes and are thus configurable in a PRADO application. Users can use these DAO classes in a more PRADO-preferred way. +Since version 3.1, PRADO starts to provide a DAO that is a thin wrap around PHP Data Objects (PDO). Although PDO has a nice feature set and good APIs, we choose to implement the PRADO DAO on top of PDO because the PRADO DAO classes are component classes and are thus configurable in a PRADO application. Users can use these DAO classes in a more PRADO-preferred way.
The PRADO DAO mainly consists of the following four classes (in contrast to PDO which uses only two classes, PDO and PDOStatement): @@ -36,12 +36,13 @@ $connection->Active=true; // connection is established $connection->Active=false; // connection is closed
-Complete specification of DSN may be found in the PDO documentation. Below is a list of commonly used DSN formats: +Complete specification of DSN may be found in the PDO documentation. Below is a list of commonly used DSN formats:
In case any error occurs when establishing the connection (such as bad DSN or username/password), a TDbException will be raised. -- cgit v1.2.3