feel free to keep it strictly simple...
describe_table

method "describe_table"

Get detailed informations for the table-fields of a given db-table. The result is also store in an array passed by reference.

$info = array();
$database->describe_table( TABLE_PREFIX."mod_code2", $info);