renamed from ebaboba to baza; resolved #13
This commit is contained in:
parent
65d729d6a9
commit
23e03fef14
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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": [],
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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 <arsen@mirzaev.sexy>
|
|
@ -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 <arsen@mirzaev.sexy>
|
|
@ -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
|
||||
*
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
use mirzaev\ebaboba\database,
|
||||
mirzaev\ebaboba\record,
|
||||
mirzaev\ebaboba\column,
|
||||
mirzaev\ebaboba\enumerations\encoding,
|
||||
mirzaev\ebaboba\enumerations\type;
|
||||
use mirzaev\baza\database,
|
||||
mirzaev\baza\record,
|
||||
mirzaev\baza\column,
|
||||
mirzaev\baza\enumerations\encoding,
|
||||
mirzaev\baza\enumerations\type;
|
||||
|
||||
// Importing files of thr project and dependencies
|
||||
require(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php');
|
||||
|
@ -249,7 +249,7 @@ try {
|
|||
$test = 0;
|
||||
|
||||
// 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";
|
||||
|
Loading…
Reference in New Issue