You are here

function dba_check_tables in Database Administration 5

Perform specified check type on specified table(s) (MySQL specific).

Related topics

1 call to dba_check_tables()
dba_check_table_form_pre_render in ./dba.module
2 string references to 'dba_check_tables'
dba_check_tables_form in ./dba.module
dba_check_table_form_pre_render in ./dba.module

File

./dba.module, line 1377
Allows administrators direct access to their Drupal database. Written by Jeremy Andrews <jeremy@kerneltrap.org>, June 2004. PostgreSQL functionality provided by AAM <aam@ugpl.de> Major security audit, porting, and maintenance by Derek…

Code

function dba_check_tables($tables, $type = 'MEDIUM') {
  $query = 'CHECK TABLE ' . implode(', ', $tables) . ' ' . db_escape_string($type) . ';';
  drupal_set_message(check_plain($query));
  return db_query($query);
}