From 23e03fef1414698eb56644029ffc62de79ec6a7d Mon Sep 17 00:00:00 2001 From: mirzaev Date: Tue, 28 Jan 2025 14:14:13 +0700 Subject: [PATCH] renamed from ebaboba to baza; resolved #13 --- composer.json | 12 ++++++------ composer.lock | 2 +- mirzaev/{ebaboba => baza}/system/column.php | 8 ++++---- mirzaev/{ebaboba => baza}/system/database.php | 8 ++++---- .../system/enumerations/encoding.php | 4 ++-- .../{ebaboba => baza}/system/enumerations/type.php | 4 ++-- mirzaev/{ebaboba => baza}/system/record.php | 5 ++--- mirzaev/{ebaboba => baza}/tests/.gitignore | 0 mirzaev/{ebaboba => baza}/tests/record.php | 12 ++++++------ 9 files changed, 27 insertions(+), 28 deletions(-) rename mirzaev/{ebaboba => baza}/system/column.php (95%) rename mirzaev/{ebaboba => baza}/system/database.php (99%) rename mirzaev/{ebaboba => baza}/system/enumerations/encoding.php (96%) rename mirzaev/{ebaboba => baza}/system/enumerations/type.php (94%) rename mirzaev/{ebaboba => baza}/system/record.php (97%) rename mirzaev/{ebaboba => baza}/tests/.gitignore (100%) rename mirzaev/{ebaboba => baza}/tests/record.php (98%) diff --git a/composer.json b/composer.json index 8bc5727..5d6cab1 100755 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { - "name": "mirzaev/ebaboba", + "name": "mirzaev/baza", "description": "Lightweight binary database by pure PHP", - "homepage": "https://git.svoboda.works/mirzaev/ebaboba", + "homepage": "https://git.svoboda.works/mirzaev/baza", "type": "database", "keywords": [ "binary", @@ -20,8 +20,8 @@ ], "support": { "email": "arsen@mirzaev.sexy", - "wiki": "https://git.svoboda.works/mirzaev/ebaboba/wiki", - "issues": "https://git.svoboda.works/mirzaev/ebaboba/issues" + "wiki": "https://git.svoboda.works/mirzaev/baza/wiki", + "issues": "https://git.svoboda.works/mirzaev/baza/issues" }, "minimum-stability": "stable", "require": { @@ -29,12 +29,12 @@ }, "autoload": { "psr-4": { - "mirzaev\\ebaboba\\": "mirzaev/ebaboba/system/" + "mirzaev\\baza\\": "mirzaev/baza/system/" } }, "autoload-dev": { "psr-4": { - "mirzaev\\ebaboba\\tests\\": "mirzaev/ebaboba/tests" + "mirzaev\\baza\\tests\\": "mirzaev/baza/tests" } } diff --git a/composer.lock b/composer.lock index 388fbe1..e90fe7b 100755 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d05285edd5fdf816383617183f6d6c38", + "content-hash": "a83cda6b5d1de267690c8b7e2a2ddf86", "packages": [], "packages-dev": [], "aliases": [], diff --git a/mirzaev/ebaboba/system/column.php b/mirzaev/baza/system/column.php similarity index 95% rename from mirzaev/ebaboba/system/column.php rename to mirzaev/baza/system/column.php index d80eec3..96cfa49 100644 --- a/mirzaev/ebaboba/system/column.php +++ b/mirzaev/baza/system/column.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace mirzaev\ebaboba; +namespace mirzaev\baza; // Files of the project -use mirzaev\ebaboba\database, - mirzaev\ebaboba\enumerations\type; +use mirzaev\baza\database, + mirzaev\baza\enumerations\type; // Built-in libraries use DomainException as exception_domain, @@ -16,7 +16,7 @@ use DomainException as exception_domain, /** * Column * - * @package mirzaev\ebaboba + * @package mirzaev\baza * * @var string $name Name of the column * @var type $type Type of the column values diff --git a/mirzaev/ebaboba/system/database.php b/mirzaev/baza/system/database.php similarity index 99% rename from mirzaev/ebaboba/system/database.php rename to mirzaev/baza/system/database.php index 2373450..1ee2ac3 100644 --- a/mirzaev/ebaboba/system/database.php +++ b/mirzaev/baza/system/database.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace mirzaev\ebaboba; +namespace mirzaev\baza; // Files of the project -use mirzaev\ebaboba\enumerations\encoding, - mirzaev\ebaboba\enumerations\type; +use mirzaev\baza\enumerations\encoding, + mirzaev\baza\enumerations\type; // Built-in libraries use LogicException as exception_logic, @@ -16,7 +16,7 @@ use LogicException as exception_logic, /** * Database * - * @package mirzaev\ebaboba + * @package mirzaev\baza * * @var string $database Path to the database file * @var string $backups Path to the backups files directory diff --git a/mirzaev/ebaboba/system/enumerations/encoding.php b/mirzaev/baza/system/enumerations/encoding.php similarity index 96% rename from mirzaev/ebaboba/system/enumerations/encoding.php rename to mirzaev/baza/system/enumerations/encoding.php index c4990c1..6a70d13 100644 --- a/mirzaev/ebaboba/system/enumerations/encoding.php +++ b/mirzaev/baza/system/enumerations/encoding.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace mirzaev\ebaboba\enumerations; +namespace mirzaev\baza\enumerations; // Build-in libraries use UnexpectedValueException as exception_unexpected_value; @@ -35,7 +35,7 @@ use UnexpectedValueException as exception_unexpected_value; * @see https://www.unicode.org/main.html Abount unicode encodings * @see https://www.unicode.org/faq/utf_bom.html About UTF * - * @package mirzaev\ebaboba\enumerations + * @package mirzaev\baza\enumerations * * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @author Arsen Mirzaev Tatyano-Muradovich diff --git a/mirzaev/ebaboba/system/enumerations/type.php b/mirzaev/baza/system/enumerations/type.php similarity index 94% rename from mirzaev/ebaboba/system/enumerations/type.php rename to mirzaev/baza/system/enumerations/type.php index 1c15930..a3485eb 100644 --- a/mirzaev/ebaboba/system/enumerations/type.php +++ b/mirzaev/baza/system/enumerations/type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace mirzaev\ebaboba\enumerations; +namespace mirzaev\baza\enumerations; // Build-in libraries use UnexpectedValueException as exception_unexpected_value; @@ -12,7 +12,7 @@ use UnexpectedValueException as exception_unexpected_value; * * @see https://www.php.net/pack Types * - * @package mirzaev\ebaboba\enumerations + * @package mirzaev\baza\enumerations * * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @author Arsen Mirzaev Tatyano-Muradovich diff --git a/mirzaev/ebaboba/system/record.php b/mirzaev/baza/system/record.php similarity index 97% rename from mirzaev/ebaboba/system/record.php rename to mirzaev/baza/system/record.php index 4641ab1..5ab6f9a 100644 --- a/mirzaev/ebaboba/system/record.php +++ b/mirzaev/baza/system/record.php @@ -2,13 +2,12 @@ declare(strict_types=1); -namespace mirzaev\ebaboba; - +namespace mirzaev\baza; /** * Record * - * @package mirzaev\ebaboba + * @package mirzaev\baza * * @var array $values The record values * diff --git a/mirzaev/ebaboba/tests/.gitignore b/mirzaev/baza/tests/.gitignore similarity index 100% rename from mirzaev/ebaboba/tests/.gitignore rename to mirzaev/baza/tests/.gitignore diff --git a/mirzaev/ebaboba/tests/record.php b/mirzaev/baza/tests/record.php similarity index 98% rename from mirzaev/ebaboba/tests/record.php rename to mirzaev/baza/tests/record.php index b6e9930..94ba81a 100644 --- a/mirzaev/ebaboba/tests/record.php +++ b/mirzaev/baza/tests/record.php @@ -1,10 +1,10 @@ read(filter: fn($record) => $record?->name === 'Margarita', update: function (&$record) { $record->height += 0.5; }, amount: 1); +$records_readed_filter_update = $database->read(filter: fn($record) => $record?->name === 'Margarita', update: fn(&$record) => $record->height += 0.5, amount: 1); echo '[' . ++$action . "] Updated the record in the database by filter\n";