| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/WPCAFE/wp-content/plugins/wp-cafe/base/contracts/ |
Upload File : |
<?php
namespace WpCafe\Contracts;
/**
* Contract for WP Database
*
* @package WpCafe/Contracts
*/
interface Database_Interface {
/**
* Begin database transaction
*
* @return void
*/
public function begin_transaction(): void;
/**
* Commit transactions to database
*
* @return void
*/
public function commit(): void;
/**
* Rollback uncommited transactions
*
* @return void
*/
public function roll_back(): void;
/**
* Delete records of specific table
*
* @param string $table
* @param array $where
*
* @return void
*/
public function delete( string $table, array $where ): void;
/**
* Batch insert records
*
* @param string $table
* @param array $records
*
* @return void
*/
public function insert_batch( string $table, array $records ): void;
}