Files
nexusphp/nexus/Database/DBInterface.php
xiaomlove 8e792bafc7 install
2021-01-27 16:26:37 +08:00

32 lines
651 B
PHP

<?php
namespace Nexus\Database;
interface DBInterface
{
public function connect($host, $username, $password, $database, $port);
public function query(string $sql);
public function error(): string;
public function errno(): int;
public function numRows($result): int;
public function selectDb($database);
public function fetchAssoc($result);
public function fetchRow($result);
public function fetchArray($result, $type);
public function affectedRows(): int;
public function escapeString(string $string): string;
public function lastInsertId(): int;
public function freeResult($result);
}