PhpLiveDb class

The main class to make the connection and create work objects

Methods


namespace ProtocolLive\PhpLiveDb;
use PDO;
use ProtocolLive\PhpLiveDb\Enums\Drivers;

abstract class PhpLiveDb
extends Basics{
public function __construct(
string $Ip,
string $User = null,
string $Pwd = null,
string $Db = null,
Drivers $Driver = Drivers::MySql,
string $Charset = 'utf8mb4',
int $TimeOut = 5,
string $Prefix = null,
callable $OnRun = null
);

public function Delete(
string $Table
):Delete;

public function GetCustom():PDO;

public function Insert(
string $Table
):Insert;

public function InsertUpdate(
string $Table
):InsertUpdate;

public function Select(
string $Table,
bool $ThrowError = true
):Select;

public function Truncate(
string $Table
):int|false;

public function Update(
string $Table
):Update;
}
See more

- Basics methods