fixing connection use
This commit is contained in:
parent
2f4c725b51
commit
9c704db451
|
@ -3,13 +3,13 @@
|
||||||
namespace explosivebit\arangodb;
|
namespace explosivebit\arangodb;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use triagens\ArangoDb\CollectionHandler;
|
use ArangoDBClient\CollectionHandler;
|
||||||
//use triagens\ArangoDb\ConnectionOptions;
|
|
||||||
use ArangoDBClient\ConnectionOptions;
|
use ArangoDBClient\ConnectionOptions;
|
||||||
use triagens\ArangoDb\Document;
|
use ArangoDBClient\Document;
|
||||||
use triagens\ArangoDb\DocumentHandler;
|
use ArangoDBClient\DocumentHandler;
|
||||||
use triagens\ArangoDb\Statement;
|
use ArangoDBClient\Statement;
|
||||||
use triagens\ArangoDb\UpdatePolicy;
|
use ArangoDBClient\UpdatePolicy;
|
||||||
|
|
||||||
|
|
||||||
use yii\base\Object;
|
use yii\base\Object;
|
||||||
|
|
||||||
|
@ -53,8 +53,8 @@ class Connection extends Object
|
||||||
Yii::info($token, 'explosivebit\arangodb\Connection::open');
|
Yii::info($token, 'explosivebit\arangodb\Connection::open');
|
||||||
Yii::beginProfile($token, 'explosivebit\arangodb\Connection::open');
|
Yii::beginProfile($token, 'explosivebit\arangodb\Connection::open');
|
||||||
$this->connection = new \ArangoDBClient\Connection($this->connectionOptions);
|
$this->connection = new \ArangoDBClient\Connection($this->connectionOptions);
|
||||||
$this->collectionHandler = new \ArangoDBClient\CollectionHandler($this->connection);
|
$this->collectionHandler = new CollectionHandler($this->connection);
|
||||||
$this->documentHandler = new \ArangoDBClient\DocumentHandler($this->connection);
|
$this->documentHandler = new DocumentHandler($this->connection);
|
||||||
Yii::endProfile($token, 'explosivebit\arangodb\Connection::open');
|
Yii::endProfile($token, 'explosivebit\arangodb\Connection::open');
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
Yii::endProfile($token, 'explosivebit\arangodb\Connection::open');
|
Yii::endProfile($token, 'explosivebit\arangodb\Connection::open');
|
||||||
|
@ -103,6 +103,6 @@ class Connection extends Object
|
||||||
*/
|
*/
|
||||||
public function getStatement($options = [])
|
public function getStatement($options = [])
|
||||||
{
|
{
|
||||||
return new \ArangoDBClient\Statement($this->connection, $options);
|
return new Statement($this->connection, $options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue