function drush_tripal_chado_trp_get_table
3.x tripal_chado.drush.inc | drush_tripal_chado_trp_get_table() |
Returns the Tripal Schema API Description of the given table
Related topics
File
- tripal_chado/
tripal_chado.drush.inc, line 244 - Contains function relating to drush-integration of this module.
Code
function drush_tripal_chado_trp_get_table() {
$section = drush_get_option('section');
$table_name = drush_get_option('table');
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));
}
}