function tripal_get_mviews

2.x tripal_get_mviews()

Retrieves the list of materialized view IDs and their names

Return value

An array of objects with the following properties: mview_id, name

Related topics


tripal_core/api/, line 362
Provides an application programming interface (API) to manage materialized views in Chado.


function tripal_get_mviews() {

  $results = db_select('tripal_mviews', 'tm')
    ->fields('tm', array('mview_id', 'name'))

  $list = array();
  while ($mview = $results->fetchObject()) {
    $list[] = $mview;
  return $list;