20250820 v1.0.2-b2

This commit is contained in:
2025-08-20 18:09:37 +03:00
parent cc3b1ef41b
commit 95aa7d9411
22 changed files with 594 additions and 68 deletions

View File

@@ -29,16 +29,19 @@
*/
public function Delete (string $table, ConditionBuilder $where = new ConditionBuilder()): bool
{
// Подготавливаю имя таблицы
$table = $this->PrepareTableName($table);
/**
* Получаю SQL-запрос и параметры для where.
*
* @var string $sql_where SQL-запрос для where.
* @var array $params Параметры запроса.
*/
[$sql_where, $params] = $where->Build();
[$sql_where, $params] = $where->Build($this->Config->Driver);
// Создаю запрос
$sql = "DELETE FROM $this->DBSignOpen$table$this->DBSignClose";
$sql = "DELETE FROM $table";
// Если заданы where-параметры
if ($where->Count() > 0)