|
Adodb Dokumentation
V5.14 8 Sept 2011
|

Öffentliche Methoden | |
| _CPULoad () | |
| MemInfo () | |
| CPULoad () | |
| Tracer ($sql) | |
| Explain ($sql, $partial=false) | |
| InvalidSQL ($numsql=10) | |
| _SuspiciousSQL ($numsql=10) | |
| CheckMemory () | |
| SuspiciousSQL ($numsql=10) | |
| ExpensiveSQL ($numsql=10) | |
| _ExpensiveSQL ($numsql=10) | |
| DBParameter ($param) | |
| PollParameters () | |
| _DBParameter ($sql) | |
| WarnCacheRatio ($val) | |
| clearsql () | |
| UI ($pollsecs=5) | |
| Poll ($secs=5) | |
| HealthCheckCLI () | |
| HealthCheck ($cli=false) | |
| Tables ($orderby='1') | |
| CreateLogTable () | |
| DoSQLForm () | |
| SplitSQL ($sql) | |
| undomq ($m) | |
| OptimizeTables () | |
| OptimizeTable ($table, $mode=ADODB_OPT_LOW) | |
| optimizeDatabase () | |
Öffentliche, statische Methoden | |
| static | table ($newtable=false) |
Datenfelder | |
| $conn | |
| $color = '#F0F0F0' | |
| $table = '<table border=1 bgcolor=white>' | |
| $titles = '<tr><td><b>Parameter</b></td><td><b>Value</b></td><td><b>Description</b></td></tr>' | |
| $warnRatio = 90 | |
| $tablesSQL = false | |
| $cliFormat = "%32s => %s \r\n" | |
| $sql1 = 'sql1' | |
| $explain = true | |
| $helpurl = "<a href=http://phplens.com/adodb/reference.functions.fnexecute.and.fncacheexecute.properties.html#logsql>LogSQL help</a>" | |
| $createTableSQL = false | |
| $maxLength = 2000 | |
| $_lastLoad | |
Definiert in Zeile 217 der Datei adodb-perf.inc.php.
| optimizeDatabase | ( | ) |
Reorganise current database. Default implementation loops over all MetaTables() and optimize each using optmizeTable()
true on success and false on error Definiert in Zeile 1080 der Datei adodb-perf.inc.php.
{
$conn = $this->conn;
if ( !$conn) return false;
$tables = $conn->MetaTables( 'TABLES');
if ( !$tables ) return false;
foreach( $tables as $table) {
if ( !$this->optimizeTable( $table)) {
return false;
}
}
return true;
}
| OptimizeTable | ( | $ | table, |
| $ | mode = ADODB_OPT_LOW |
||
| ) |
Reorganise the table-indices/statistics/.. depending on the given mode. Default Implementation throws an error.
| string | table name of the table to optimize |
| int | mode optimization-mode ADODB_OPT_HIGH for full optimization ADODB_OPT_LOW for CPU-less optimization Default is LOW ADODB_OPT_LOW |
true on success and false on error Definiert in Zeile 1066 der Datei adodb-perf.inc.php.
{
ADOConnection::outp( sprintf( "<p>%s: '%s' not implemented for driver '%s'</p>", __CLASS__, __FUNCTION__, $this->conn->databaseType));
return false;
}