diff --git a/manual/docs/Basic Components - DB - Connecting to a database.php b/manual/docs/Basic Components - DB - Connecting to a database.php index bc6c43de3..b56dabbf8 100644 --- a/manual/docs/Basic Components - DB - Connecting to a database.php +++ b/manual/docs/Basic Components - DB - Connecting to a database.php @@ -1,10 +1,14 @@ <?php -// using PDO dsn for connecting sqlite memory table +// using PDO like dsn for connecting sqlite memory table -//$dbh = Doctrine_DB::getConnection('sqlite::memory:'); +$dbh = Doctrine_DB::getConnection('sqlite::memory:'); + +// using PDO like dsn for connecting pgsql database + +$dbh = Doctrine_DB::getConnection('pgsql://root:password@localhost/mydb'); // using PEAR like dsn for connecting mysql database -//$dbh = Doctrine_DB::getConnection('mysql://root:password@localhost/test'); +$dbh = Doctrine_DB::getConnection('mysql://root:password@localhost/test'); ?>