Home
last modified time | relevance | path

Searched refs:dsn (Results 1 – 22 of 22) sorted by relevance

/plugin/sentry/
H A Dhelper.php21 $dsn = [];
22 $dsn['protocol'] = $parts['scheme'];
23 $dsn['public'] = $parts['user'];
24 $dsn['secret'] = $parts['pass'];
26 $dsn['url'] = $parts['host'];
34 $dsn['path'] = $path;
36 return $dsn;
46 $dsn = $this->parseDSN();
47 …return $dsn['protocol'] . '://' . $dsn['url'] . $dsn['path'] . '/api/' . $dsn['project'] . '/store…
57 $dsn = $this->parseDSN();
[all …]
/plugin/sql/
H A DDB.php17 function __construct($dsn, $username="", $password="", $driver_options=array()) { argument
18 parent::__construct($dsn,$username,$password, $driver_options);
63 static function &connect($dsn, $options = array()) argument
65 if (! is_array($dsn) && strpos($dsn,'//')) {
66 $parts = explode('/', $dsn);
71 $dsn = $dsna;
73 …if (is_array($dsn)) $obj = new MDB3($dsn['phptype'].':host='.$dsn['hostspec'].';dbname='.$dsn['dat…
74 else $obj = new MDB3($dsn);
76 $obj->dsn = $dsn;
/plugin/strata/driver/
H A Ddriver.php88 * @param dsn string the dsn to use for connecting
91 public function connect($dsn) { argument
92 $this->_dsn = $dsn;
94 $this->_db = $this->initializePDO($dsn);
97 … msg(sprintf($this->util->getLang('driver_failed_detail'), hsc($dsn), hsc($e->getMessage())), -1);
110 * @param dsn string the dsn to use for construction
113 protected function initializePDO($dsn) { argument
118 return new PDO($dsn, $credentials[0], $credentials[1]);
/plugin/dbquery/
H A Dhelper.php36 * @param string|null $dsn
41 public function getPDO($dsn = null, $user = null, $pass = null) argument
43 $dsn = $dsn ?: $this->getConf('dsn');
46 $conid = md5($dsn . $user . $pass);
56 $this->pdo[$conid] = new PDO($dsn, $user, $pass, $opts);
/plugin/authwordpress/
H A Dauth.php234 $dsn = array(
241 $dsn[] = 'port=' . $port;
243 $dsn = 'mysql:' . implode(';', $dsn);
245 $this->db = new PDO($dsn, $this->getConf('username'), $this->getConf('password'));
/plugin/authphpbb3/
H A Dauth.php593 $dsn = '';
598 $dsn = ':host=' . $this->_phpbb_conf['dbhost'] . $port .
604 $dsn = 'mysql' . $dsn . ';charset=utf8';
606 $dsn,
611 $dsn = 'pgsql' . $dsn .
614 $this->_phpbb_sql_link = new PDO($dsn);
618 $dsn = 'oci' . $dsn . ';charset=utf8';
620 $dsn,
633 … $dsn = $host . ':' . $this->_phpbb_conf['root_path'] . $this->_phpbb_conf['dbhost'];
634 $this->_phpbb_sql_link = new PDO($dsn);
/plugin/davcal/vendor/sabre/dav/bin/
H A Dmigrateto21.php57 $dsn = $argv[1]; variable
61 echo "Connecting to database: " . $dsn . "\n";
63 $pdo = new PDO($dsn, $user, $pass);
H A Dmigrateto30.php56 $dsn = $argv[1]; variable
60 echo "Connecting to database: " . $dsn . "\n";
62 $pdo = new PDO($dsn, $user, $pass);
H A Dmigrateto20.php56 $dsn = $argv[1]; variable
60 echo "Connecting to database: " . $dsn . "\n";
62 $pdo = new PDO($dsn, $user, $pass);
H A Dmigrateto17.php50 $dsn = $argv[1]; variable
54 echo "Connecting to database: " . $dsn . "\n";
56 $pdo = new PDO($dsn, $user, $pass);
/plugin/elasticsearch/helper/
H A Dclient.php66 $dsn = ['servers' => []];
77 $dsn['servers'][] = compact('host', 'port', 'proxy');
80 $this->elasticaClient = new \Elastica\Client($dsn);
/plugin/database2/
H A Dmedia.php115 list( $dsn, $authSlot, $table, $column, $idColumn, $rowid, $pageID,
148 public function __construct( $dsn, $authSlot, $table, $ioIndex, argument
152 if ( !$this->connect( $dsn, $authSlot ) )
219 $db = new Database2_media( $dsn, $authSlot, $table, $ioIndex, $pageID );
H A Ddatabase2.php127 private $dsn = null; variable in Database2
394 $dsn = substr( $dbPath, 1 );
398 $dsn = 'sqlite:' . $dbPath;
400 $dsn = 'sqlite:' . metaFN( $dbPath, '.db' );
463 $this->db = new PDO( $dsn, $username, $password );
482 $this->dsn = $dsn;
4571 $selector = array( '@'.$this->dsn, $this->authSlot, $this->table,
4630 $selector = array( '@'.$this->dsn, $this->authSlot, $this->table,'fake',
/plugin/yuriigantt/_test/Drivers/
H A Dembedded.test.php74 $this->assertEquals($database->dsn, Embedded::DSN);
75 $this->assertEquals($database->dsn, Embedded::DSN);
/plugin/pgsqlquery/
H A Dsyntax.php89 $dsn = "pgsql:host=$host;dbname=$DB;user=$user;password=$password";
94 $link = new PDO($dsn);
/plugin/strata/helper/
H A Dtriples.php44 * @param dsn string an optional alternative DSN
49 $dsn = $this->getConf('default_dsn');
50 $dsn = $this->_expandTokens($dsn);
52 $this->_dsn = $dsn;
55 list($driver,$connection) = explode(':',$dsn,2);
66 if(!$this->_db->connect($dsn)) {
/plugin/sqlite/classes/
H A Dadapter_pdosqlite.php70 $dsn = 'sqlite:'.$this->dbfile;
73 $this->db = new PDO($dsn);
/plugin/yuriigantt/
H A DREADME.md46 "dsn": ":embedded:",
75 "dsn": ":embedded:", <-- says parser what database driver was used
H A Dsyntax.php141 if ($data->dsn !== Embedded::DSN) {
/plugin/freechat/phpfreechat/src/containers/
H A Doracle.class.php145 $dsn = array(
152 $this->_db = DB::connect($dsn);
/plugin/yuriigantt/_test/
H A Dtest_page.txt10 "dsn": ":embedded:",
/plugin/semanticdata/phpSesame/
H A DphpSesame.php45 private $dsn; variable in phpSesame