Tripal Custom Tables API

  1. 2.x tripal_core/api/tripal_core.custom_tables.api.inc tripal_custom_tables_api
  2. 1.x tripal_core/api/tripal_core_custom_tables.api.inc tripal_custom_tables_api

Provides an API to manage custom tables in Chado.

File

tripal_core/api/tripal_core.custom_tables.api.inc, line 7
Provides an API to manage custom tables in Chado.

Functions

Namesort ascending Location Description
chado_validate_custom_table_schema tripal_core/api/tripal_core.custom_tables.api.inc This function is used to validate a Drupal Schema API array prior to passing it ot the chado_create_custom_table_schema(). This function can be used in a form validate function or whenver a schema is provided by a user and needs validation.
chado_get_mview_table_names tripal_core/api/tripal_core.mviews.api.inc Retrieves the list of materialized views in this site.
chado_get_custom_table_names tripal_core/api/tripal_core.custom_tables.api.inc Retrieves the list of custom tables in this site.
chado_get_custom_table_id tripal_core/api/tripal_core.custom_tables.api.inc Retrieve the custom table id given the name
chado_edit_custom_table tripal_core/api/tripal_core.custom_tables.api.inc Edits a custom table in the chado database. It supports using the Drupal Schema API array.
chado_delete_custom_table tripal_core/api/tripal_core.custom_tables.api.inc Deletes the specified custom table
chado_create_custom_table tripal_core/api/tripal_core.custom_tables.api.inc Add a new table to the Chado schema. This function is simply a wrapper for the db_create_table() function of Drupal, but ensures the table is created inside the Chado schema rather than the Drupal schema. If the table already exists then it will be…