method getKeys documentation in bbn\Db

Return the table's keys as an array indexed with the fields names.

Example

X::dump($db->getKeys("table_users")); /* (array)[ "keys" => [ "PRIMARY" => [ "columns" => [ "id", ], "ref_db" => null, "ref_table" => null, "ref_column" => null, "unique" => 1, ], "number" => [ "columns" => [ "number", ], "ref_db" => null, "ref_table" => null, "ref_column" => null, "unique" => 1, ], ], "cols" => [ "id" => [ "PRIMARY", ], "number" => [ "number", ], ], ] function(string $table) { return $this->language->getKeys($table); }

Return the table's keys as an array indexed with the fields names. 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.