Yii Framework Forum: Connection String Using Nosql - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Connection String Using Nosql Ctree database Rate Topic: ****- 1 Votes

#1 User is offline   Moy 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 30-August 13

Posted 30 August 2013 - 03:21 PM

We are using Faircom's ctree database. They have a sql connector that looks like this.

// connect to server
print("\t\tLogon to server...<br>\n");
$ses = ctsql_connect("localhost:ctreeSQL", "adata", "adata");
if (!$ses)
Handle_Error("ctsql_connect()");

return ($ses);

I'm trying to setup yii to use this.
It is using an array.
/*
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
*/
// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'ctsql:host=localhost;dbname=ctreeSQL',
'emulatePrepare' => true,
'username' => 'adata',
'password' => 'adata',
'charset' => 'utf8',
),

Does anyone know how to setup this connection array using ctsql?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users