method getDelete documentation in bbn\Db\Languages\Pgsql

Return SQL code for row(s) DELETE.

Example

X::dump($db->getDelete(['tables' => 'users']); // (string) DELETE FROM `db_example`.`table_users` function(array $cfg) { $res = ''; if (count($cfg['tables']) === 1) { $res = 'DELETE ' . (count($cfg['join'] ?? []) ? current($cfg['tables']) . ' ' : '') . 'FROM ' . $this->tableFullName(current($cfg['tables']), true) . PHP_EOL; } return $res; }

Return SQL code for row(s) DELETE. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.