function tripal_db_get_db_by_db_id

2.x tripal_db.DEPRECATED.inc tripal_db_get_db_by_db_id($db_id)
3.x tripal_db.DEPRECATED.inc tripal_db_get_db_by_db_id($db_id)
1.x tripal_db.api.inc tripal_db_get_db_by_db_id($db_id)

Purpose: To retrieve a chado db object

Parameters

$db_id: db.db_id

Return value

Chado db object with all fields from the chado db table

Related topics

File

tripal_db/api/tripal_db.api.inc, line 85
Provides an application programming interface (API) to manage references to external databases

Code

function tripal_db_get_db_by_db_id($db_id) {

  $r = db_fetch_object(chado_query(
  "SELECT * FROM {db} WHERE db_id=%d", $db_id
  ));

  return $r;
}