Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
drush_sql_query($query = NULL)
contributions/drush/drush_sql/drush_sql.module, line 158
Command callback. Executes the given SQL query on the Drupal database. Reads from STDIN if no query is provided.
<?php
function drush_sql_query($query = NULL) {
// Get any arguments to be passed through to the SQL client program.
if (func_num_args() > 1 && ($args = func_get_args())) {
$args = ' ' . implode(' ', array_slice($args, 1)); // skip query argument
}
return drush_sql_query_execute($query, NULL, $args);
}
?>