mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
install
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user