renamed from ebaboba to baza; resolved #13

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2025-01-28 14:14:13 +07:00
parent 65d729d6a9
commit 23e03fef14
9 changed files with 27 additions and 28 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "mirzaev/ebaboba", "name": "mirzaev/baza",
"description": "Lightweight binary database by pure PHP", "description": "Lightweight binary database by pure PHP",
"homepage": "https://git.svoboda.works/mirzaev/ebaboba", "homepage": "https://git.svoboda.works/mirzaev/baza",
"type": "database", "type": "database",
"keywords": [ "keywords": [
"binary", "binary",
@ -20,8 +20,8 @@
], ],
"support": { "support": {
"email": "arsen@mirzaev.sexy", "email": "arsen@mirzaev.sexy",
"wiki": "https://git.svoboda.works/mirzaev/ebaboba/wiki", "wiki": "https://git.svoboda.works/mirzaev/baza/wiki",
"issues": "https://git.svoboda.works/mirzaev/ebaboba/issues" "issues": "https://git.svoboda.works/mirzaev/baza/issues"
}, },
"minimum-stability": "stable", "minimum-stability": "stable",
"require": { "require": {
@ -29,12 +29,12 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"mirzaev\\ebaboba\\": "mirzaev/ebaboba/system/" "mirzaev\\baza\\": "mirzaev/baza/system/"
} }
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
"mirzaev\\ebaboba\\tests\\": "mirzaev/ebaboba/tests" "mirzaev\\baza\\tests\\": "mirzaev/baza/tests"
} }
} }

2
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "d05285edd5fdf816383617183f6d6c38", "content-hash": "a83cda6b5d1de267690c8b7e2a2ddf86",
"packages": [], "packages": [],
"packages-dev": [], "packages-dev": [],
"aliases": [], "aliases": [],

View File

@ -2,11 +2,11 @@
declare(strict_types=1); declare(strict_types=1);
namespace mirzaev\ebaboba; namespace mirzaev\baza;
// Files of the project // Files of the project
use mirzaev\ebaboba\database, use mirzaev\baza\database,
mirzaev\ebaboba\enumerations\type; mirzaev\baza\enumerations\type;
// Built-in libraries // Built-in libraries
use DomainException as exception_domain, use DomainException as exception_domain,
@ -16,7 +16,7 @@ use DomainException as exception_domain,
/** /**
* Column * Column
* *
* @package mirzaev\ebaboba * @package mirzaev\baza
* *
* @var string $name Name of the column * @var string $name Name of the column
* @var type $type Type of the column values * @var type $type Type of the column values

View File

@ -2,11 +2,11 @@
declare(strict_types=1); declare(strict_types=1);
namespace mirzaev\ebaboba; namespace mirzaev\baza;
// Files of the project // Files of the project
use mirzaev\ebaboba\enumerations\encoding, use mirzaev\baza\enumerations\encoding,
mirzaev\ebaboba\enumerations\type; mirzaev\baza\enumerations\type;
// Built-in libraries // Built-in libraries
use LogicException as exception_logic, use LogicException as exception_logic,
@ -16,7 +16,7 @@ use LogicException as exception_logic,
/** /**
* Database * Database
* *
* @package mirzaev\ebaboba * @package mirzaev\baza
* *
* @var string $database Path to the database file * @var string $database Path to the database file
* @var string $backups Path to the backups files directory * @var string $backups Path to the backups files directory

View File

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace mirzaev\ebaboba\enumerations; namespace mirzaev\baza\enumerations;
// Build-in libraries // Build-in libraries
use UnexpectedValueException as exception_unexpected_value; 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/main.html Abount unicode encodings
* @see https://www.unicode.org/faq/utf_bom.html About UTF * @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 * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy> * @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace mirzaev\ebaboba\enumerations; namespace mirzaev\baza\enumerations;
// Build-in libraries // Build-in libraries
use UnexpectedValueException as exception_unexpected_value; use UnexpectedValueException as exception_unexpected_value;
@ -12,7 +12,7 @@ use UnexpectedValueException as exception_unexpected_value;
* *
* @see https://www.php.net/pack Types * @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 * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy> * @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,13 +2,12 @@
declare(strict_types=1); declare(strict_types=1);
namespace mirzaev\ebaboba; namespace mirzaev\baza;
/** /**
* Record * Record
* *
* @package mirzaev\ebaboba * @package mirzaev\baza
* *
* @var array $values The record values * @var array $values The record values
* *

View File

@ -1,10 +1,10 @@
<?php <?php
use mirzaev\ebaboba\database, use mirzaev\baza\database,
mirzaev\ebaboba\record, mirzaev\baza\record,
mirzaev\ebaboba\column, mirzaev\baza\column,
mirzaev\ebaboba\enumerations\encoding, mirzaev\baza\enumerations\encoding,
mirzaev\ebaboba\enumerations\type; mirzaev\baza\enumerations\type;
// Importing files of thr project and dependencies // Importing files of thr project and dependencies
require(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'); require(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php');
@ -249,7 +249,7 @@ try {
$test = 0; $test = 0;
// Updating the record in the database // Updating the record in the database
$records_readed_filter_update = $database->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"; echo '[' . ++$action . "] Updated the record in the database by filter\n";