function db_select

cis7 database.inc db_select($table, $alias = NULL, array $options = array())
cle7 database.inc db_select($table, $alias = NULL, array $options = array())
elmsmedia7 database.inc db_select($table, $alias = NULL, array $options = array())
icor7 database.inc db_select($table, $alias = NULL, array $options = array())
meedjum_blog7 database.inc db_select($table, $alias = NULL, array $options = array())
mooc7 database.inc db_select($table, $alias = NULL, array $options = array())

Returns a new SelectQuery object for the active database.

Parameters

$table: The base table for this query. May be a string or another SelectQuery object. If a query object is passed, it will be used as a subselect.

$alias: The alias for the base table of this query.

$options: An array of options to control how the query operates.

Return value

SelectQuery A new SelectQuery object for this connection.

Related topics

395 calls to db_select()
accessibility_admin_existing_tests in sites/all/modules/ulmus/accessibility/accessibility.admin.inc
List existing accessibility tests. @todo - add a filter form
accessibility_get_active_tests in sites/all/modules/ulmus/accessibility/accessibility.module
Helper function to return all active accessibiliy test entities.
accessibility_get_test_by_machine_name in sites/all/modules/ulmus/accessibility/accessibility.module
Returns the test ID for a given machine name.
actions_do in includes/actions.inc
Performs a given list of actions by executing their callback functions.
action_nodequeue_remove in sites/all/modules/local_contrib/nodequeue/includes/nodequeue.actions.inc
Old-style action to remove a node from a queue.

... See full list

1 string reference to 'db_select'
httprl.examples.php in sites/all/modules/ulmus/httprl/examples/httprl.examples.php
HTTP Parallel Request Library code examples.

File

includes/database/database.inc, line 2516
Core systems for the database layer.

Code

function db_select($table, $alias = NULL, array $options = array()) {
  if (empty($options['target'])) {
    $options['target'] = 'default';
  }
  return Database::getConnection($options['target'])->select($table, $alias, $options);
}