mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
56 lines
1005 B
PHP
Executable File
56 lines
1005 B
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package phpOMS\Utils\IO
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Utils\IO;
|
|
|
|
/**
|
|
* IO database mapper.
|
|
*
|
|
* @package phpOMS\Utils\IO
|
|
* @license OMS License 2.0
|
|
* @link https://jingga.app
|
|
* @since 1.0.0
|
|
*/
|
|
interface IODatabaseMapper
|
|
{
|
|
/**
|
|
* Insert data from excel sheet into database
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function insert() : void;
|
|
|
|
/**
|
|
* Select data from database and store in excel sheet
|
|
*
|
|
* @param \phpOMS\DataStorage\Database\Query\Builder[] $queries Queries to execute
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function select(array $queries) : void;
|
|
|
|
/**
|
|
* Update data from excel sheet into database
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function update() : void;
|
|
}
|