1
0
mirror of synced 2024-12-13 14:56:01 +03:00

updated database connecting docs

This commit is contained in:
zYne 2006-10-19 19:22:10 +00:00
parent a300634b2a
commit 7dabc66260

View File

@ -1,10 +1,14 @@
<?php <?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 // 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');
?> ?>