function drush_tripal_core_trp_get_table

2.x tripal_core.drush.inc drush_tripal_core_trp_get_table()

Returns the Tripal Schema API Description of the given table

Related topics

File

tripal_core/tripal_core.drush.inc, line 589
Contains function relating to drush-integration of this module.

Code

function drush_tripal_core_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));
  }
}