Index: sql.drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_extras/sql.drush.inc,v
retrieving revision 1.1.2.2.2.8
diff -u -u -p -r1.1.2.2.2.8 sql.drush.inc
--- sql.drush.inc	7 Feb 2009 05:43:15 -0000	1.1.2.2.2.8
+++ sql.drush.inc	1 Mar 2009 04:10:59 -0000
@@ -27,16 +27,19 @@ function sql_drush_command() {
     'callback' => 'drush_sql_url',
     'description' => 'Print database connection details.',
     'core' => array('6'),
+    'bootstrap' => 0, // We actually only need configuration here - we can do this even if we don't have an actual connection
   );
   $items['sql version server'] = array(
     'callback' => 'drush_sql_version_server',
     'description' => 'Print database server version number.',
     'core' => array('6'),
+    'bootstrap' => 2,
   );
   $items['sql version client'] = array(
     'callback' => 'drush_sql_version_client',
     'description' => 'Print database client library version number.',
     'core' => array('6'),
+    'bootstrap' => 2,
   );
   $items['sql dump'] = array(
     'callback' => 'drush_sql_dump',
@@ -50,6 +53,7 @@ function sql_drush_command() {
       '--result-file' => 'Save to a file. The file should be relative to Drupal root. Recommended.',
       '--skip-tables-key' => 'A key in the $skip_tables array. @see example.drushrc.php. Optional.',
     ),
+    'bootstrap' => 2,
   );
   $items['sql query'] = array(
     'callback' => 'drush_sql_query',
@@ -61,6 +65,7 @@ function sql_drush_command() {
     'arguments' => array(
        'query' => 'A SQL query. Mandatory.',
     ),
+    'bootstrap' => 2,
   );
   $items['sql load'] = array(
     'callback' => 'drush_sql_load',
@@ -76,12 +81,13 @@ function sql_drush_command() {
     'options' => array(
       '--skip-tables-key' => 'A key in the $skip_tables array. @see example.drushrc.php. Optional.',
     ),
-    // 'bootstrap' => -1, // TODO: Bootstrap just to DB.
+    'bootstrap' => 2,
   );
   $items['sql cli'] = array(
     'callback' => 'drush_sql_cli',
     'description' => 'Open a SQL command-line interface using Drupal’s credentials.',
     'core' => array('6'),
+    'bootstrap' => 2,
   );
   return $items;
 }
Index: tools.drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_extras/tools.drush.inc,v
retrieving revision 1.1.4.3
diff -u -u -p -r1.1.4.3 tools.drush.inc
--- tools.drush.inc	6 Feb 2009 03:38:53 -0000	1.1.4.3
+++ tools.drush.inc	1 Mar 2009 04:10:59 -0000
@@ -53,7 +53,7 @@ function tools_drush_command() {
       'source' => 'See rsync documentation.',
       'destination' => 'See rsync documentation.',
     ),
-    
+    'bootstrap' => 0,
   );
   $items['eval'] = array(
     'callback' => 'drush_tools_eval',
@@ -65,6 +65,7 @@ function tools_drush_command() {
     'arguments' => array(
       'code' => 'PHP code',
     ),
+    'bootstrap' => -1,
   );
   return $items;
 }
