2 Commits
2.0.0 ... 2.0.2

Author SHA1 Message Date
3e095e14f7 return values fix 2024-10-12 19:21:25 +03:00
577bc837d8 connection fix 2024-10-12 11:24:32 +03:00
3 changed files with 5 additions and 3 deletions

View File

@@ -179,10 +179,10 @@ class collection
// Count and exit (success) // Count and exit (success)
return static::execute( return static::execute(
<<<'AQL' <<<'AQL'
RETURN LENGTH(@collection) RETURN LENGTH(@@collection)
AQL, AQL,
[ [
'collection' => $collection '@collection' => $collection
] ]
); );
} catch (exception $e) { } catch (exception $e) {

View File

@@ -92,6 +92,8 @@ final class connection
* Конструктор * Конструктор
* *
* @param array $settings Настройки * @param array $settings Настройки
*
* @todo ПЕРЕДЕЛАТЬ ПОЛНОСТЬЮ
*/ */
public function __construct(array $settings = null) public function __construct(array $settings = null)
{ {

View File

@@ -51,7 +51,7 @@ class document
bool $check = false, bool $check = false,
?terminal $terminal = null, ?terminal $terminal = null,
array &$errors = [] array &$errors = []
): ?string { ): string|null|false {
try { try {
// Инициализация коллекции // Инициализация коллекции
collection::initialize($collection, isset($data['_from'], $data['_to']) ? type::edge : type::document); collection::initialize($collection, isset($data['_from'], $data['_to']) ? type::edge : type::document);