method fullTables documentation in bbn\Appui\Database

Returns a list of tables in the given database with its statistics.

function(string $db = '', string $host = '', string $engine = 'mysql') { if (!bbn\Str::isUid($db)) { if (Str::isUid($host)) { $db = $this->dbId($db, $host); } else { $db = $this->dbId($db, $host, $engine); } } if (bbn\Str::isUid($db) && ($id_parent = $this->o->fromCode('tables', $db))) { $o =& $this->o; if ($fo = $this->o->fullOptions($id_parent)) { $res = array_map( function ($a) use ($o) { $r = array_merge( $a, [ 'name' => $a['code'], 'num_columns' => 0, 'num_keys' => 0 ] ); if ($id_columns = $o->fromCode('columns', $a['id'])) { $r['num_columns'] = $o->count($id_columns); } if ($id_keys = $o->fromCode('keys', $a['id'])) { $r['num_keys'] = $o->count($id_keys); } return $r; }, $fo ); return $res ?: []; } } return null; }

Returns a list of tables in the given database with its statistics. 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.