<?php

// auto-generated by sfDatabaseConfigHandler
// date: 2009/08/15 10:45:03
$database = new sfPropelDatabase();
$database->initialize(array('dsn' => 'pgsql://*****:*****@localhost/coscupdemo'), 'propel');
$this->databases['propel'] = $database;
예제 #2
0
 public function initialize()
 {
     // 'config/databases.yml' config file
     // auto-generated by sfDatabaseConfigHandler
     // date: 2015/09/01 13:56:04
     $database = new sfPropelDatabase();
     $database->initialize(array('phptype' => 'mysql', 'host' => '127.0.0.1', 'database' => 'tm_marks', 'username' => 'root', 'password' => 'root', 'encoding' => 'utf8'), 'propel');
     $this->databases['propel'] = $database;
     $database = new sfPropelDatabase();
     $database->initialize(array('phptype' => 'mysql', 'host' => '127.0.0.1', 'database' => 'tm_marks', 'username' => 'root', 'password' => 'root', 'encoding' => 'utf8'), 'tm_marks');
     $this->databases['tm_marks'] = $database;
 }
<?php

/*
 * This file is part of the symfony package.
 * (c) 2004-2006 Fabien Potencier <*****@*****.**>
 * 
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
require_once dirname(__FILE__) . '/../../../../bootstrap/unit.php';
set_include_path(sfConfig::get('sf_symfony_lib_dir') . '/vendor' . PATH_SEPARATOR . get_include_path());
$t = new lime_test(4, new lime_output_color());
$p = new sfPropelDatabase();
$configuration = array('propel' => array('datasources' => array('propel' => array('adapter' => 'mysql', 'connection' => array('phptype' => 'mysql', 'hostspec' => 'localhost', 'database' => 'testdb', 'username' => 'foo', 'password' => 'bar', 'port' => null, 'encoding' => 'utf8', 'persistent' => '1', 'protocol' => null)), 'default' => 'propel')));
$parametersTests = array(array('dsn' => 'mysql://*****:*****@localhost/testdb?encoding=utf8&persistent=1'), array('dsn' => 'mysql://*****:*****@localhost/testdb', 'encoding' => 'utf8', 'persistent' => 1), array('phptype' => 'mysql', 'database' => 'testdb', 'encoding' => 'utf8', 'host' => 'localhost', 'username' => 'foo', 'password' => 'bar', 'persistent' => 1), array('phptype' => 'mysql', 'database' => 'testdb', 'encoding' => 'utf8', 'hostspec' => 'localhost', 'username' => 'foo', 'password' => 'bar', 'persistent' => 1));
foreach ($parametersTests as $parameters) {
    $p->initialize($parameters);
    $t->is($p->getConfiguration(), $configuration);
}
예제 #4
0
 public function initialize()
 {
     $database = new sfPropelDatabase();
     $database->initialize(array('phptype' => 'mysql', 'hostspec' => 'localhost', 'database' => 'lekar_bm400', 'username' => 'root', 'password' => NULL, 'persistent' => true, 'port' => 3306), 'propel');
     $this->databases['propel'] = $database;
 }
예제 #5
0
<?php

// auto-generated by sfDatabaseConfigHandler
// date: 2015/09/01 13:56:04
$database = new sfPropelDatabase();
$database->initialize(array('phptype' => 'mysql', 'host' => '127.0.0.1', 'database' => 'tm_marks', 'username' => 'root', 'password' => 'root', 'encoding' => 'utf8'), 'propel');
$this->databases['propel'] = $database;
$database = new sfPropelDatabase();
$database->initialize(array('phptype' => 'mysql', 'host' => '127.0.0.1', 'database' => 'tm_marks', 'username' => 'root', 'password' => 'root', 'encoding' => 'utf8'), 'tm_marks');
$this->databases['tm_marks'] = $database;
예제 #6
0
<?php

// auto-generated by sfDatabaseConfigHandler
// date: 2015/12/07 17:49:30
$database = new sfPropelDatabase();
$database->initialize(array('phptype' => 'mysql', 'hostspec' => 'localhost', 'database' => 'lekar_bm400', 'username' => 'root', 'password' => NULL, 'persistent' => true, 'port' => 3306), 'propel');
$this->databases['propel'] = $database;