method getUniqueKeys documentation in bbn\Db\Languages\Sql

Return the unique keys of a table as a numeric array.

Example

X::dump($db->getUniqueKeys('table_users')); // (array) ["userid", "userdataid"] function(string $table) { if ($ks = $this->getKeys($table)) { foreach ($ks['keys'] as $k){ if ($k['unique']) { return $k['columns']; } } } return []; }

Return the unique keys of a table as a numeric array. 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.