2 Commits
1.0.2 ... 1.2.0

Author SHA1 Message Date
root
8f5f5b44de just rules and license 2023-07-09 16:37:43 +00:00
root
8e7972d933 cool patch 2023-07-09 16:24:00 +00:00
9 changed files with 310 additions and 296 deletions

0
.gitignore vendored Normal file → Executable file
View File

11
LICENSE Normal file
View File

@@ -0,0 +1,11 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# PHP 8.2 Framework for working with ArangoDB
🤟 Very simple and flexible, easy to scale and integrate

0
composer.json Normal file → Executable file
View File

0
composer.lock generated Normal file → Executable file
View File

6
mirzaev/arangodb/system/collection.php Normal file → Executable file
View File

@@ -69,9 +69,9 @@ class collection
* @param _connection $session Сессия соединения с базой данных
* @param string $query AQL-запрос
*
* @return _document|null Инстанция документа
* @return _document|array|string|int|null Инстанция документа
*/
public static function search(_connection $session, string $query): ?_document
public static function search(_connection $session, string $query): _document|string|array|int|null
{
// Поиск журнала
$journal = (new _statement(
@@ -90,7 +90,7 @@ class collection
$buffer[$key] = $value;
}
return $buffer[0] ?? null;
return is_array($buffer) && count($buffer) > 1 ? $buffer : $buffer[0] ?? null;
}
/**

0
mirzaev/arangodb/system/connection.php Normal file → Executable file
View File

0
mirzaev/arangodb/system/document.php Normal file → Executable file
View File

0
mirzaev/arangodb/system/terminal.php Normal file → Executable file
View File