Delete::Run

Execute the query

Sintaxe

namespace ProtocolLive\PhpLiveDb;

/**

 */
final class Delete{
public function Run(
bool $Debug = false,
bool $HtmlSafe = true,
bool $TrimValues = true,
bool $Log = false,
int|BackedEnum $LogEvent = null,
int $LogUser = null
):array|bool;
}
Parameters

$Debug - Dumps in screen the query sended to server. Do not work if a error occurs in the preparation phase;

$HtmlSafe - If HTML tag will be escaped;

$TrimValues - If spaces in the begin and end of the values need to be removed;

$Log - If the query will be logged in the logs table. The table structure are in sql folder;

$LogEvent - An integer to represent the event to be logged;

$LogUser - The user ID to be logged;

Examples

$Db->Delete('users')
->WhereAdd('id', 10, Types::Int)
->Run();