method getTableComment documentation in bbn\Db\Languages\Mysql

Returns the comment (or an empty string if none) for a given table.

function(string $table) { if ($tmp = $this->tableFullName($table)) { $bits = X::split($tmp, '.'); return $this->getOne( "SELECT table_comment FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = ? AND table_name = ?", $bits[0], $bits[1] ) ?? ''; } return ''; }

Returns the comment (or an empty string if none) for a given 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.