spaces to tabs
This commit is contained in:
parent
1ea9c1f41f
commit
d7e3a61e63
20
README.md
20
README.md
|
@ -21,20 +21,20 @@ use mirzaev\baza\database,
|
||||||
// Initializing the database
|
// Initializing the database
|
||||||
$database = new database()
|
$database = new database()
|
||||||
->encoding(encoding::utf8)
|
->encoding(encoding::utf8)
|
||||||
->columns(
|
->columns(
|
||||||
new column('name', type::string, ['length' => 32]),
|
new column('name', type::string, ['length' => 32]),
|
||||||
new column('second_name', type::string, ['length' => 64]),
|
new column('second_name', type::string, ['length' => 64]),
|
||||||
new column('age', type::integer),
|
new column('age', type::integer),
|
||||||
new column('height', type::float)
|
new column('height', type::float)
|
||||||
)
|
)
|
||||||
->connect(__DIR__ . DIRECTORY_SEPARATOR . 'database.ba');
|
->connect(__DIR__ . DIRECTORY_SEPARATOR . 'database.ba');
|
||||||
|
|
||||||
// Initializing the record
|
// Initializing the record
|
||||||
$record = $database->record(
|
$record = $database->record(
|
||||||
'Arsen',
|
'Arsen',
|
||||||
'Mirzaev',
|
'Mirzaev',
|
||||||
23,
|
23,
|
||||||
(float) 165
|
(float) 165
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($database->write($record)) {
|
if ($database->write($record)) {
|
||||||
|
|
Loading…
Reference in New Issue