From 69f3cae54afe7eec60160a89886fb59e7b8f8fe4 Mon Sep 17 00:00:00 2001 From: MarcioCamello Date: Mon, 17 Nov 2014 21:56:52 -0300 Subject: [PATCH 1/3] Namespaces from driver, not set Better call absolute namespace triagens\ArangoDb\ConnectionOptions and add OPTION_AUTH_USER , OPTION_AUTH_PASSWD for authorization database --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fa8f623..1a773a5 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,10 @@ return [ 'arangodb' => [ 'class' => '\devgroup\arangodb\Connection', 'connectionOptions' => [ - ArangoConnectionOptions::OPTION_DATABASE => "mydatabase", - ArangoConnectionOptions::OPTION_ENDPOINT => 'tcp://127.0.0.1:8529', + triagens\ArangoDb\ConnectionOptions::OPTION_DATABASE => "mydatabase", + triagens\ArangoDb\ConnectionOptions::OPTION_ENDPOINT => 'tcp://127.0.0.1:8529', + //triagens\ArangoDb\ConnectionOptions::OPTION_AUTH_USER => '', + //triagens\ArangoDb\ConnectionOptions::OPTION_AUTH_PASSWD => '', ], ], ], From 04dd977843673826d3fcaa807451bc143709bb74 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 18 Nov 2014 16:21:23 +0300 Subject: [PATCH 2/3] return fix --- Query.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Query.php b/Query.php index b73ff79..eaf3299 100644 --- a/Query.php +++ b/Query.php @@ -551,11 +551,7 @@ class Query extends Component implements QueryInterface $names = ''; foreach ($columns as $name => $column) { - if (is_int($name)) { - $names .= $column . ', '; - } else { - $names .= "\"$name\": $this->from.$column, "; - } + $names .= "\"$name\": $this->from.$column, "; } return 'RETURN {' . trim($names, ', ') . '}'; From 7879c60bce431a8e23c23c3a6fe8f78509f7c7fd Mon Sep 17 00:00:00 2001 From: Bitdeli Chef Date: Sun, 23 Nov 2014 12:18:02 +0000 Subject: [PATCH 3/3] Add a Bitdeli badge to README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1a773a5..748778a 100644 --- a/README.md +++ b/README.md @@ -179,3 +179,7 @@ return [ ... ]; ``` + + +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/DevGroup-ru/yii2-arangodb/trend.png)](https://bitdeli.com/free "Bitdeli Badge") +