Files
nexusphp/nexus/Database/DBInterface.php
T
2026-04-18 12:15:14 +07:00

37 lines
747 B
PHP

<?php
namespace Nexus\Database;
use PDOStatement;
interface DBInterface
{
public function connect($host, $username, $password, $database, $port, $driver = 'mysql');
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);
public function prepare(string $sql): PDOStatement;
}