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) |
DEPRECATED. Returns the Tripal Schema API Description of the given table.
Parameters
$table_name: The name of the table to return the description of
Related topics
File
- tripal_core/
tripal_core.drush.inc, line 612 - 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("\n\nDEPRECATED: This drush command is outdated.\nIt will " .
"continue to work but please consider using the 'trp-get-table' command.\n\n");
drush_print("Schema API Description for $table_name:");
$desc = chado_get_schema($table_name);
if (!empty($section)) {
drush_print("$section = " . print_r($desc[$section], TRUE));
}
else {
drush_print(print_r($desc, TRUE));
}
}