method importAll documentation in bbn\Appui\Database

Imports a whole database structure in the options table.

function(string $db = '') { $res = null; if ($tables = $this->db->getTables($db)) { $res = [ 'tables' => 0, 'columns' => 0, 'keys' => 0 ]; foreach ($tables as $t){ if ($tmp = $this->import(($db ?: $this->db->getCurrent()).'.'.$t)) { $res['tables']++; $res['columns'] += $tmp['columns']; $res['keys'] += $tmp['keys']; } } } return $res; }

Imports a whole database structure in the options table. 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.