Provides an application programming interface (API) for describing Chado tables. This API consists of a set of functions, one for each table in Chado. Each function simply returns a Drupal style array that defines the table.
Because Drupal 6 does not handle foreign key (FK) relationships, however FK relationships are needed to for Tripal Views. Therefore, FK relationships have been added to the schema defintitions below.
The functions provided in this documentation should not be called as is, but if you need the Drupal-style array definition for any table, use the following function call:
$table_desc = chado_get_schema($table)
where the variable $table contains the name of the table you want to retireve. The chado_get_schema function determines the appropriate version of Chado and uses the Drupal hook infrastructure to call the appropriate hook function to retrieve the table schema.
api/ tripal_core.chado_schema.api.inc, line 3
||Check that any given schema exists.|
||Retrieves the schema in an array for the specified custom table.|
||Retrieves the chado tables Schema API array.|
||Retrieves the list of tables in the Chado schema. By default it only returns the default Chado tables, but can return custom tables added to the Chado schema if requested|
||Returns the version number of the currently installed Chado instance. It can return the real or effective version. Note, this function is executed in the hook_init() of the tripal_core module which then sets the…|
||Check whether chado is installed (either in the same or a different database)|
||Check that the Chado schema exists within the local database|
||Check that any given Chado table exists. This function is necessary because Drupa's db_table_exists will not look in any other schema but the one were Drupal is installed|