mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 22:20:57 +08:00
25 lines
516 B
PHP
25 lines
516 B
PHP
<?php
|
|
|
|
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): array|null;
|
|
|
|
public function fetchRow($result): array|null;
|
|
|
|
public function affectedRows(): int;
|
|
|
|
public function escapeString(string $string): string;
|
|
|
|
} |