function drush_tripal_core_tripal_chadotable_desc
2.x tripal_core.drush.inc | drush_tripal_core_tripal_chadotable_desc($table_name) |
3.x tripal_core.drush.inc | drush_tripal_core_tripal_chadotable_desc($table_name) |
1.x tripal_core.drush.inc | drush_tripal_core_tripal_chadotable_desc($table_name) |
Returns the Tripal Schema API Description of the given table
Parameters
$table_name: The name of the table to return the description of
File
- tripal_core/
tripal_core.drush.inc, line 296 - Contains function relating to drush-integration of this module.
Code
function drush_tripal_core_tripal_chadotable_desc($table_name) {
$section = drush_get_option('section');
drush_print("Schema API Description for $table_name:");
$desc = tripal_core_get_chado_table_schema($table_name);
if (!empty($section)) {
drush_print("$section = " . print_r($desc[$section], TRUE));
}
else {
drush_print(print_r($desc, TRUE));
}
}