Tripal
|
Functions | |
chado_table_exists ($table, $chado_schema=NULL) | |
chado_column_exists ($table, $column, $chado_schema=NULL) | |
chado_sequence_exists ($sequence, $chado_schema=NULL) | |
chado_index_exists ($table, $name, $no_suffix=FALSE, $chado_schema=NULL) | |
chado_add_index ($table, $name, $fields, $chado_schema=NULL) | |
chado_dbschema_exists ($chado_schema) | |
chado_get_schema_name ($schema='chado') | |
chado_get_installed_schemas () | |
chado_is_local ($force_recheck=FALSE, $chado_schema=NULL) | |
chado_is_installed ($chado_schema=NULL) | |
chado_get_version ($exact=FALSE, $warn_if_unsupported=FALSE, $chado_schema=NULL) | |
chado_get_table_names ($include_custom=NULL, $chado_schema=NULL) | |
chado_get_schema ($table, $chado_schema=NULL) | |
chado_get_custom_table_schema ($table, $chado_schema=NULL) | |
chado_get_base_tables ($chado_schema=NULL) | |
chado_get_cvterm_mapping ($params) | |
Provides an application programming interface (API) for describing Chado tables.
chado_get_cvterm_mapping | ( | $params | ) |
Get information about which Chado base table a cvterm is mapped to.
Vocabulary terms that represent content types in Tripal must be mapped to Chado tables. A cvterm can only be mapped to one base table in Chado. This function will return an object that contains the chado table and foreign key field to which the cvterm is mapped. The 'chado_table' property of the returned object contains the name of the table, and the 'chado_field' property contains the name of the foreign key field (e.g. type_id), and the 'cvterm' property contains a cvterm object.
array | $params | An associative array that contains the following keys:
|
@upgrade
chado_get_installed_schemas | ( | ) |
List all installed chado schema.