Minor query formatting changes

This commit is contained in:
Timothy Warren 2014-02-14 10:38:25 -05:00
parent 8e16cc0c19
commit 4cb7c97c60
40 changed files with 4623 additions and 4674 deletions

View File

@ -275,22 +275,6 @@ abstract class DB_PDO extends PDO {
// -------------------------------------------------------------------------
/**
* Deletes all the rows from a table. Does the same as the truncate
* method if the database does not support 'TRUNCATE';
*
* @param string $table
* @return mixed
*/
public function empty_table($table)
{
$sql = 'DELETE FROM '.$this->quote_ident($table);
return $this->query($sql);
}
// -------------------------------------------------------------------------
/**
* Return schemas for databases that list them
*

View File

@ -166,7 +166,7 @@ class Query_Builder implements iQuery_Builder {
}
}
$this->select_string .= implode(',', $safe_array);
$this->select_string .= implode(', ', $safe_array);
unset($safe_array);
@ -296,7 +296,7 @@ class Query_Builder implements iQuery_Builder {
public function from($tblname)
{
// Split identifiers on spaces
$ident_array = explode(' ', trim($tblname));
$ident_array = explode(' ', mb_trim($tblname));
$ident_array = array_map('mb_trim', $ident_array);
// Quote the identifiers
@ -547,7 +547,7 @@ class Query_Builder implements iQuery_Builder {
// Determine the correct conjunction
if (empty($this->query_map))
{
$conj = ' WHERE ';
$conj = "\nWHERE ";
}
elseif ($first_item['type'] === 'group_start')
{
@ -765,7 +765,7 @@ class Query_Builder implements iQuery_Builder {
$this->query_map[] = array(
'type' => 'join',
'conjunction' => strtoupper($type).' JOIN ',
'conjunction' => "\n" . strtoupper($type) . ' JOIN ',
'string' => $condition,
);
@ -828,8 +828,8 @@ class Query_Builder implements iQuery_Builder {
// Set the final string
$this->order_string = (empty($rand))
? ' ORDER BY '.implode(',', $order_clauses)
: ' ORDER BY'.$rand;
? "\nORDER BY ".implode(', ', $order_clauses)
: "\nORDER BY".$rand;
return $this;
}
@ -1218,10 +1218,7 @@ class Query_Builder implements iQuery_Builder {
$skip = array('db','sql','queries','table_prefix','parser','conn_name');
// Skip properties that are needed for every query
if (in_array($name, $skip))
{
continue;
}
if (in_array($name, $skip)) continue;
// Nothing query-generation related is safe!
$this->$name = NULL;
@ -1271,7 +1268,7 @@ class Query_Builder implements iQuery_Builder {
$total_time = number_format($end_time - $start_time, 5);
// Add the interpreted query to the list of executed queries
$esql = str_replace('?', '%s', $sql);
$esql = str_replace('?', "%s", $sql);
array_unshift($vals, $esql);
$this->queries[] = array(
@ -1329,7 +1326,7 @@ class Query_Builder implements iQuery_Builder {
{
default:
case "get":
$sql = "SELECT * FROM {$this->from_string}";
$sql = "SELECT * \nFROM {$this->from_string}";
// Set the select string
if ( ! empty($this->select_string))

View File

@ -22,245 +22,245 @@
</g>
<!-- \\DB_PDO -->
<g id="node2" class="node"><title>\\DB_PDO</title>
<polygon fill="none" stroke="black" points="325,-520 249,-520 249,-484 325,-484 325,-520"/>
<text text-anchor="start" x="257.5" y="-507.433" font-family="Times Roman,serif" font-size="11.00">«abstract»</text>
<text text-anchor="start" x="264" y="-494.233" font-family="Times Roman,serif" font-size="11.00">DB_PDO</text>
<polygon fill="none" stroke="black" points="325,-466 249,-466 249,-430 325,-430 325,-466"/>
<text text-anchor="start" x="257.5" y="-453.433" font-family="Times Roman,serif" font-size="11.00">«abstract»</text>
<text text-anchor="start" x="264" y="-440.233" font-family="Times Roman,serif" font-size="11.00">DB_PDO</text>
</g>
<!-- \\PDO -->
<g id="node27" class="node"><title>\\PDO</title>
<ellipse fill="none" stroke="black" cx="36" cy="-502" rx="35.0527" ry="18"/>
<text text-anchor="middle" x="36" y="-497.4" font-family="Times Roman,serif" font-size="14.00" fill="gray">\PDO</text>
<ellipse fill="none" stroke="black" cx="36" cy="-448" rx="35.0527" ry="18"/>
<text text-anchor="middle" x="36" y="-443.4" font-family="Times Roman,serif" font-size="14.00" fill="gray">\PDO</text>
</g>
<!-- \\DB_PDO&#45;&gt;\\PDO -->
<g id="edge3" class="edge"><title>\\DB_PDO&#45;&gt;\\PDO</title>
<path fill="none" stroke="black" d="M248.879,-502C204.032,-502 129.635,-502 81.7269,-502"/>
<polygon fill="none" stroke="black" points="81.6312,-498.5 71.6312,-502 81.6311,-505.5 81.6312,-498.5"/>
</g>
<!-- \\Firebird_Result -->
<g id="node3" class="node"><title>\\Firebird_Result</title>
<polygon fill="none" stroke="black" points="627,-358 531,-358 531,-322 627,-322 627,-358"/>
<text text-anchor="middle" x="579" y="-336.6" font-family="Times Roman,serif" font-size="11.00">Firebird_Result</text>
</g>
<!-- \\PDOStatement -->
<g id="node29" class="node"><title>\\PDOStatement</title>
<ellipse fill="none" stroke="black" cx="287" cy="-126" rx="85.1942" ry="18"/>
<text text-anchor="middle" x="287" y="-121.4" font-family="Times Roman,serif" font-size="14.00" fill="gray">\PDOStatement</text>
</g>
<!-- \\Firebird_Result&#45;&gt;\\PDOStatement -->
<g id="edge5" class="edge"><title>\\Firebird_Result&#45;&gt;\\PDOStatement</title>
<path fill="none" stroke="black" d="M530.433,-329.744C520.145,-325.821 509.994,-320.422 502,-313 443.364,-258.561 493.404,-196.803 430,-148 416.189,-137.37 399.361,-130.886 382.164,-127.081"/>
<polygon fill="none" stroke="black" points="382.497,-123.581 372.017,-125.14 381.181,-130.457 382.497,-123.581"/>
</g>
<!-- \\Firebird_Util -->
<g id="node4" class="node"><title>\\Firebird_Util</title>
<polygon fill="none" stroke="black" points="620,-1168 538,-1168 538,-1132 620,-1132 620,-1168"/>
<text text-anchor="middle" x="579" y="-1146.6" font-family="Times Roman,serif" font-size="11.00">Firebird_Util</text>
<path fill="none" stroke="black" d="M248.879,-448C204.032,-448 129.635,-448 81.7269,-448"/>
<polygon fill="none" stroke="black" points="81.6312,-444.5 71.6312,-448 81.6311,-451.5 81.6312,-444.5"/>
</g>
<!-- \\DB_Util -->
<g id="node10" class="node"><title>\\DB_Util</title>
<polygon fill="none" stroke="black" points="325,-1060 249,-1060 249,-1024 325,-1024 325,-1060"/>
<text text-anchor="start" x="257.5" y="-1047.43" font-family="Times Roman,serif" font-size="11.00">«abstract»</text>
<text text-anchor="start" x="266.5" y="-1034.23" font-family="Times Roman,serif" font-size="11.00">DB_Util</text>
<g id="node3" class="node"><title>\\DB_Util</title>
<polygon fill="none" stroke="black" points="325,-1006 249,-1006 249,-970 325,-970 325,-1006"/>
<text text-anchor="start" x="257.5" y="-993.433" font-family="Times Roman,serif" font-size="11.00">«abstract»</text>
<text text-anchor="start" x="266.5" y="-980.233" font-family="Times Roman,serif" font-size="11.00">DB_Util</text>
</g>
<!-- \\Firebird_Util&#45;&gt;\\DB_Util -->
<g id="edge7" class="edge"><title>\\Firebird_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M537.778,-1135.74C526.185,-1131.68 513.582,-1127.21 502,-1123 444.323,-1102.03 378.311,-1077 334.819,-1060.38"/>
<polygon fill="none" stroke="black" points="335.941,-1057.06 325.351,-1056.75 333.439,-1063.6 335.941,-1057.06"/>
<!-- \\Query_Parser -->
<g id="node4" class="node"><title>\\Query_Parser</title>
<polygon fill="none" stroke="black" points="624,-1222 534,-1222 534,-1186 624,-1186 624,-1222"/>
<text text-anchor="middle" x="579" y="-1200.6" font-family="Times Roman,serif" font-size="11.00">Query_Parser</text>
</g>
<!-- \\Query_Builder -->
<g id="node5" class="node"><title>\\Query_Builder</title>
<polygon fill="none" stroke="black" points="626,-1222 532,-1222 532,-1186 626,-1186 626,-1222"/>
<text text-anchor="middle" x="579" y="-1200.6" font-family="Times Roman,serif" font-size="11.00">Query_Builder</text>
<polygon fill="none" stroke="black" points="626,-1168 532,-1168 532,-1132 626,-1132 626,-1168"/>
<text text-anchor="middle" x="579" y="-1146.6" font-family="Times Roman,serif" font-size="11.00">Query_Builder</text>
</g>
<!-- \\iQuery_Builder -->
<g id="node24" class="node"><title>\\iQuery_Builder</title>
<polygon fill="none" stroke="black" points="336,-1222 238,-1222 238,-1186 336,-1186 336,-1222"/>
<text text-anchor="middle" x="287" y="-1200.6" font-family="Times Roman,serif" font-size="11.00">iQuery_Builder</text>
<g id="node25" class="node"><title>\\iQuery_Builder</title>
<polygon fill="none" stroke="black" points="336,-1168 238,-1168 238,-1132 336,-1132 336,-1168"/>
<text text-anchor="middle" x="287" y="-1146.6" font-family="Times Roman,serif" font-size="11.00">iQuery_Builder</text>
</g>
<!-- \\Query_Builder&#45;&gt;\\iQuery_Builder -->
<g id="edge9" class="edge"><title>\\Query_Builder&#45;&gt;\\iQuery_Builder</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M531.435,-1204C480.879,-1204 400.848,-1204 346.235,-1204"/>
<polygon fill="none" stroke="black" points="346.007,-1200.5 336.007,-1204 346.007,-1207.5 346.007,-1200.5"/>
</g>
<!-- \\Firebird -->
<g id="node6" class="node"><title>\\Firebird</title>
<polygon fill="none" stroke="black" points="608,-628 550,-628 550,-592 608,-592 608,-628"/>
<text text-anchor="middle" x="579" y="-606.6" font-family="Times Roman,serif" font-size="11.00">Firebird</text>
</g>
<!-- \\Firebird&#45;&gt;\\DB_PDO -->
<g id="edge11" class="edge"><title>\\Firebird&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M549.692,-599.901C535.297,-594.895 517.71,-588.713 502,-583 444.323,-562.026 378.311,-537.004 334.819,-520.376"/>
<polygon fill="none" stroke="black" points="335.941,-517.058 325.351,-516.753 333.439,-523.596 335.941,-517.058"/>
</g>
<!-- \\MySQL_Util -->
<g id="node7" class="node"><title>\\MySQL_Util</title>
<polygon fill="none" stroke="black" points="618,-1114 540,-1114 540,-1078 618,-1078 618,-1114"/>
<text text-anchor="middle" x="579" y="-1092.6" font-family="Times Roman,serif" font-size="11.00">MySQL_Util</text>
</g>
<!-- \\MySQL_Util&#45;&gt;\\DB_Util -->
<g id="edge13" class="edge"><title>\\MySQL_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M539.316,-1088.66C486.212,-1078.84 392.123,-1061.44 335.065,-1050.89"/>
<polygon fill="none" stroke="black" points="335.675,-1047.44 325.205,-1049.07 334.402,-1054.33 335.675,-1047.44"/>
<g id="edge5" class="edge"><title>\\Query_Builder&#45;&gt;\\iQuery_Builder</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M531.435,-1150C480.879,-1150 400.848,-1150 346.235,-1150"/>
<polygon fill="none" stroke="black" points="346.007,-1146.5 336.007,-1150 346.007,-1153.5 346.007,-1146.5"/>
</g>
<!-- \\ODBC_SQL -->
<g id="node8" class="node"><title>\\ODBC_SQL</title>
<polygon fill="none" stroke="black" points="617,-898 541,-898 541,-862 617,-862 617,-898"/>
<text text-anchor="middle" x="579" y="-876.6" font-family="Times Roman,serif" font-size="11.00">ODBC_SQL</text>
<g id="node6" class="node"><title>\\ODBC_SQL</title>
<polygon fill="none" stroke="black" points="617,-844 541,-844 541,-808 617,-808 617,-844"/>
<text text-anchor="middle" x="579" y="-822.6" font-family="Times Roman,serif" font-size="11.00">ODBC_SQL</text>
</g>
<!-- \\iDB_SQL -->
<g id="node25" class="node"><title>\\iDB_SQL</title>
<polygon fill="none" stroke="black" points="318,-790 256,-790 256,-754 318,-754 318,-790"/>
<text text-anchor="middle" x="287" y="-768.6" font-family="Times Roman,serif" font-size="11.00">iDB_SQL</text>
<g id="node24" class="node"><title>\\iDB_SQL</title>
<polygon fill="none" stroke="black" points="318,-736 256,-736 256,-700 318,-700 318,-736"/>
<text text-anchor="middle" x="287" y="-714.6" font-family="Times Roman,serif" font-size="11.00">iDB_SQL</text>
</g>
<!-- \\ODBC_SQL&#45;&gt;\\iDB_SQL -->
<g id="edge15" class="edge"><title>\\ODBC_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M540.948,-866.852C528.512,-862.503 514.647,-857.599 502,-853 441.314,-830.932 371.402,-804.382 328.201,-787.844"/>
<polygon fill="none" stroke="black" points="329.199,-784.479 318.609,-784.169 326.694,-791.015 329.199,-784.479"/>
<g id="edge7" class="edge"><title>\\ODBC_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M540.948,-812.852C528.512,-808.503 514.647,-803.599 502,-799 441.314,-776.932 371.402,-750.382 328.201,-733.844"/>
<polygon fill="none" stroke="black" points="329.199,-730.479 318.609,-730.169 326.694,-737.015 329.199,-730.479"/>
</g>
<!-- \\ODBC -->
<g id="node7" class="node"><title>\\ODBC</title>
<polygon fill="none" stroke="black" points="606,-574 552,-574 552,-538 606,-538 606,-574"/>
<text text-anchor="middle" x="579" y="-552.6" font-family="Times Roman,serif" font-size="11.00">ODBC</text>
</g>
<!-- \\ODBC&#45;&gt;\\DB_PDO -->
<g id="edge9" class="edge"><title>\\ODBC&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M551.863,-546.656C537.09,-541.525 518.508,-535.003 502,-529 444.323,-508.026 378.311,-483.004 334.819,-466.376"/>
<polygon fill="none" stroke="black" points="335.941,-463.058 325.351,-462.753 333.439,-469.596 335.941,-463.058"/>
</g>
<!-- \\ODBC_Util -->
<g id="node9" class="node"><title>\\ODBC_Util</title>
<polygon fill="none" stroke="black" points="615,-1060 543,-1060 543,-1024 615,-1024 615,-1060"/>
<text text-anchor="middle" x="579" y="-1038.6" font-family="Times Roman,serif" font-size="11.00">ODBC_Util</text>
<g id="node8" class="node"><title>\\ODBC_Util</title>
<polygon fill="none" stroke="black" points="615,-1114 543,-1114 543,-1078 615,-1078 615,-1114"/>
<text text-anchor="middle" x="579" y="-1092.6" font-family="Times Roman,serif" font-size="11.00">ODBC_Util</text>
</g>
<!-- \\ODBC_Util&#45;&gt;\\DB_Util -->
<g id="edge17" class="edge"><title>\\ODBC_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M542.314,-1042C489.861,-1042 393.362,-1042 335.2,-1042"/>
<polygon fill="none" stroke="black" points="335.156,-1038.5 325.156,-1042 335.156,-1045.5 335.156,-1038.5"/>
<g id="edge11" class="edge"><title>\\ODBC_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M542.122,-1083.26C529.389,-1078.81 515.047,-1073.74 502,-1069 444.323,-1048.03 378.311,-1023 334.819,-1006.38"/>
<polygon fill="none" stroke="black" points="335.941,-1003.06 325.351,-1002.75 333.439,-1009.6 335.941,-1003.06"/>
</g>
<!-- \\SQLite_SQL -->
<g id="node9" class="node"><title>\\SQLite_SQL</title>
<polygon fill="none" stroke="black" points="619,-790 539,-790 539,-754 619,-754 619,-790"/>
<text text-anchor="middle" x="579" y="-768.6" font-family="Times Roman,serif" font-size="11.00">SQLite_SQL</text>
</g>
<!-- \\SQLite_SQL&#45;&gt;\\iDB_SQL -->
<g id="edge13" class="edge"><title>\\SQLite_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M538.705,-764.548C483.474,-754.334 384.742,-736.075 328.755,-725.722"/>
<polygon fill="none" stroke="black" points="329.288,-722.261 318.819,-723.884 328.015,-729.144 329.288,-722.261"/>
</g>
<!-- \\SQLite_Util -->
<g id="node11" class="node"><title>\\SQLite_Util</title>
<polygon fill="none" stroke="black" points="617,-1006 541,-1006 541,-970 617,-970 617,-1006"/>
<text text-anchor="middle" x="579" y="-984.6" font-family="Times Roman,serif" font-size="11.00">SQLite_Util</text>
<g id="node10" class="node"><title>\\SQLite_Util</title>
<polygon fill="none" stroke="black" points="617,-1060 541,-1060 541,-1024 617,-1024 617,-1060"/>
<text text-anchor="middle" x="579" y="-1038.6" font-family="Times Roman,serif" font-size="11.00">SQLite_Util</text>
</g>
<!-- \\SQLite_Util&#45;&gt;\\DB_Util -->
<g id="edge19" class="edge"><title>\\SQLite_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M540.225,-995.171C487.246,-1004.97 392.288,-1022.53 334.918,-1033.14"/>
<polygon fill="none" stroke="black" points="334.205,-1029.71 325.008,-1034.97 335.478,-1036.59 334.205,-1029.71"/>
<g id="edge15" class="edge"><title>\\SQLite_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M540.225,-1034.83C487.246,-1025.03 392.288,-1007.47 334.918,-996.861"/>
<polygon fill="none" stroke="black" points="335.478,-993.406 325.008,-995.029 334.205,-1000.29 335.478,-993.406"/>
</g>
<!-- \\PgSQL_Util -->
<g id="node12" class="node"><title>\\PgSQL_Util</title>
<polygon fill="none" stroke="black" points="617,-952 541,-952 541,-916 617,-916 617,-952"/>
<text text-anchor="middle" x="579" y="-930.6" font-family="Times Roman,serif" font-size="11.00">PgSQL_Util</text>
<!-- \\SQLite -->
<g id="node11" class="node"><title>\\SQLite</title>
<polygon fill="none" stroke="black" points="606,-520 552,-520 552,-484 606,-484 606,-520"/>
<text text-anchor="middle" x="579" y="-498.6" font-family="Times Roman,serif" font-size="11.00">SQLite</text>
</g>
<!-- \\PgSQL_Util&#45;&gt;\\DB_Util -->
<g id="edge21" class="edge"><title>\\PgSQL_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M540.948,-947.148C528.512,-951.497 514.647,-956.401 502,-961 444.323,-981.974 378.311,-1007 334.819,-1023.62"/>
<polygon fill="none" stroke="black" points="333.439,-1020.4 325.351,-1027.25 335.941,-1026.94 333.439,-1020.4"/>
<!-- \\SQLite&#45;&gt;\\DB_PDO -->
<g id="edge17" class="edge"><title>\\SQLite&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M551.792,-496.968C502.303,-487.816 396.973,-468.338 335.113,-456.898"/>
<polygon fill="none" stroke="black" points="335.672,-453.442 325.203,-455.065 334.399,-460.325 335.672,-453.442"/>
</g>
<!-- \\PgSQL_SQL -->
<g id="node13" class="node"><title>\\PgSQL_SQL</title>
<polygon fill="none" stroke="black" points="619,-844 539,-844 539,-808 619,-808 619,-844"/>
<text text-anchor="middle" x="579" y="-822.6" font-family="Times Roman,serif" font-size="11.00">PgSQL_SQL</text>
<!-- \\Firebird_Util -->
<g id="node12" class="node"><title>\\Firebird_Util</title>
<polygon fill="none" stroke="black" points="620,-1006 538,-1006 538,-970 620,-970 620,-1006"/>
<text text-anchor="middle" x="579" y="-984.6" font-family="Times Roman,serif" font-size="11.00">Firebird_Util</text>
</g>
<!-- \\PgSQL_SQL&#45;&gt;\\iDB_SQL -->
<g id="edge23" class="edge"><title>\\PgSQL_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M538.705,-818.548C483.474,-808.334 384.742,-790.075 328.755,-779.722"/>
<polygon fill="none" stroke="black" points="329.288,-776.261 318.819,-777.884 328.015,-783.144 329.288,-776.261"/>
</g>
<!-- \\MySQL_SQL -->
<g id="node14" class="node"><title>\\MySQL_SQL</title>
<polygon fill="none" stroke="black" points="620,-790 538,-790 538,-754 620,-754 620,-790"/>
<text text-anchor="middle" x="579" y="-768.6" font-family="Times Roman,serif" font-size="11.00">MySQL_SQL</text>
</g>
<!-- \\MySQL_SQL&#45;&gt;\\iDB_SQL -->
<g id="edge25" class="edge"><title>\\MySQL_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M537.783,-772C482.4,-772 384.499,-772 328.813,-772"/>
<polygon fill="none" stroke="black" points="328.595,-768.5 318.595,-772 328.595,-775.5 328.595,-768.5"/>
<!-- \\Firebird_Util&#45;&gt;\\DB_Util -->
<g id="edge19" class="edge"><title>\\Firebird_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M537.783,-988C484.504,-988 391.879,-988 335.34,-988"/>
<polygon fill="none" stroke="black" points="335.221,-984.5 325.221,-988 335.221,-991.5 335.221,-984.5"/>
</g>
<!-- \\Firebird_SQL -->
<g id="node15" class="node"><title>\\Firebird_SQL</title>
<g id="node13" class="node"><title>\\Firebird_SQL</title>
<polygon fill="none" stroke="black" points="621,-736 537,-736 537,-700 621,-700 621,-736"/>
<text text-anchor="middle" x="579" y="-714.6" font-family="Times Roman,serif" font-size="11.00">Firebird_SQL</text>
</g>
<!-- \\Firebird_SQL&#45;&gt;\\iDB_SQL -->
<g id="edge27" class="edge"><title>\\Firebird_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M536.228,-725.91C480.57,-736.203 383.933,-754.074 328.771,-764.275"/>
<polygon fill="none" stroke="black" points="327.842,-760.888 318.645,-766.148 329.115,-767.771 327.842,-760.888"/>
<g id="edge21" class="edge"><title>\\Firebird_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M536.228,-718C480.57,-718 383.933,-718 328.771,-718"/>
<polygon fill="none" stroke="black" points="328.645,-714.5 318.645,-718 328.645,-721.5 328.645,-714.5"/>
</g>
<!-- \\SQLite -->
<g id="node16" class="node"><title>\\SQLite</title>
<polygon fill="none" stroke="black" points="606,-574 552,-574 552,-538 606,-538 606,-574"/>
<text text-anchor="middle" x="579" y="-552.6" font-family="Times Roman,serif" font-size="11.00">SQLite</text>
<!-- \\Firebird_Result -->
<g id="node14" class="node"><title>\\Firebird_Result</title>
<polygon fill="none" stroke="black" points="627,-304 531,-304 531,-268 627,-268 627,-304"/>
<text text-anchor="middle" x="579" y="-282.6" font-family="Times Roman,serif" font-size="11.00">Firebird_Result</text>
</g>
<!-- \\SQLite&#45;&gt;\\DB_PDO -->
<g id="edge29" class="edge"><title>\\SQLite&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M551.792,-550.968C502.303,-541.816 396.973,-522.338 335.113,-510.898"/>
<polygon fill="none" stroke="black" points="335.672,-507.442 325.203,-509.065 334.399,-514.325 335.672,-507.442"/>
<!-- \\PDOStatement -->
<g id="node38" class="node"><title>\\PDOStatement</title>
<ellipse fill="none" stroke="black" cx="287" cy="-126" rx="85.1942" ry="18"/>
<text text-anchor="middle" x="287" y="-121.4" font-family="Times Roman,serif" font-size="14.00" fill="gray">\PDOStatement</text>
</g>
<!-- \\SQLite_SQL -->
<g id="node17" class="node"><title>\\SQLite_SQL</title>
<polygon fill="none" stroke="black" points="619,-682 539,-682 539,-646 619,-646 619,-682"/>
<text text-anchor="middle" x="579" y="-660.6" font-family="Times Roman,serif" font-size="11.00">SQLite_SQL</text>
<!-- \\Firebird_Result&#45;&gt;\\PDOStatement -->
<g id="edge23" class="edge"><title>\\Firebird_Result&#45;&gt;\\PDOStatement</title>
<path fill="none" stroke="black" d="M530.48,-274.443C520.419,-270.603 510.352,-265.567 502,-259 455.775,-222.654 479.379,-179.93 430,-148 415.718,-138.765 398.987,-132.876 382.102,-129.209"/>
<polygon fill="none" stroke="black" points="382.64,-125.748 372.159,-127.298 381.319,-132.623 382.64,-125.748"/>
</g>
<!-- \\SQLite_SQL&#45;&gt;\\iDB_SQL -->
<g id="edge31" class="edge"><title>\\SQLite_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M538.973,-677.839C527.056,-682.012 513.982,-686.643 502,-691 441.314,-713.068 371.402,-739.618 328.201,-756.156"/>
<polygon fill="none" stroke="black" points="326.694,-752.985 318.609,-759.831 329.199,-759.521 326.694,-752.985"/>
<!-- \\Firebird -->
<g id="node15" class="node"><title>\\Firebird</title>
<polygon fill="none" stroke="black" points="608,-466 550,-466 550,-430 608,-430 608,-466"/>
<text text-anchor="middle" x="579" y="-444.6" font-family="Times Roman,serif" font-size="11.00">Firebird</text>
</g>
<!-- \\ODBC -->
<g id="node18" class="node"><title>\\ODBC</title>
<polygon fill="none" stroke="black" points="606,-520 552,-520 552,-484 606,-484 606,-520"/>
<text text-anchor="middle" x="579" y="-498.6" font-family="Times Roman,serif" font-size="11.00">ODBC</text>
</g>
<!-- \\ODBC&#45;&gt;\\DB_PDO -->
<g id="edge33" class="edge"><title>\\ODBC&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M551.792,-502C502.406,-502 397.407,-502 335.496,-502"/>
<polygon fill="none" stroke="black" points="335.203,-498.5 325.203,-502 335.203,-505.5 335.203,-498.5"/>
<!-- \\Firebird&#45;&gt;\\DB_PDO -->
<g id="edge25" class="edge"><title>\\Firebird&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M549.934,-448C499.752,-448 396.38,-448 335.263,-448"/>
<polygon fill="none" stroke="black" points="335.099,-444.5 325.099,-448 335.099,-451.5 335.099,-444.5"/>
</g>
<!-- \\PgSQL -->
<g id="node19" class="node"><title>\\PgSQL</title>
<polygon fill="none" stroke="black" points="606,-466 552,-466 552,-430 606,-430 606,-466"/>
<text text-anchor="middle" x="579" y="-444.6" font-family="Times Roman,serif" font-size="11.00">PgSQL</text>
<g id="node16" class="node"><title>\\PgSQL</title>
<polygon fill="none" stroke="black" points="606,-412 552,-412 552,-376 606,-376 606,-412"/>
<text text-anchor="middle" x="579" y="-390.6" font-family="Times Roman,serif" font-size="11.00">PgSQL</text>
</g>
<!-- \\PgSQL&#45;&gt;\\DB_PDO -->
<g id="edge35" class="edge"><title>\\PgSQL&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M551.907,-454.321C522.121,-461.153 472.804,-472.118 430,-480 398.567,-485.788 363.052,-491.258 335.279,-495.295"/>
<polygon fill="none" stroke="black" points="334.437,-491.88 325.039,-496.77 335.435,-498.809 334.437,-491.88"/>
<g id="edge27" class="edge"><title>\\PgSQL&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M551.907,-400.321C522.121,-407.153 472.804,-418.118 430,-426 398.567,-431.788 363.052,-437.258 335.279,-441.295"/>
<polygon fill="none" stroke="black" points="334.437,-437.88 325.039,-442.77 335.435,-444.809 334.437,-437.88"/>
</g>
<!-- \\PgSQL_Util -->
<g id="node17" class="node"><title>\\PgSQL_Util</title>
<polygon fill="none" stroke="black" points="617,-952 541,-952 541,-916 617,-916 617,-952"/>
<text text-anchor="middle" x="579" y="-930.6" font-family="Times Roman,serif" font-size="11.00">PgSQL_Util</text>
</g>
<!-- \\PgSQL_Util&#45;&gt;\\DB_Util -->
<g id="edge29" class="edge"><title>\\PgSQL_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M540.826,-941.06C488.034,-950.822 392.746,-968.444 335.135,-979.098"/>
<polygon fill="none" stroke="black" points="334.38,-975.679 325.183,-980.939 335.653,-982.562 334.38,-975.679"/>
</g>
<!-- \\PgSQL_SQL -->
<g id="node18" class="node"><title>\\PgSQL_SQL</title>
<polygon fill="none" stroke="black" points="619,-682 539,-682 539,-646 619,-646 619,-682"/>
<text text-anchor="middle" x="579" y="-660.6" font-family="Times Roman,serif" font-size="11.00">PgSQL_SQL</text>
</g>
<!-- \\PgSQL_SQL&#45;&gt;\\iDB_SQL -->
<g id="edge31" class="edge"><title>\\PgSQL_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M538.705,-671.452C483.474,-681.666 384.742,-699.925 328.755,-710.278"/>
<polygon fill="none" stroke="black" points="328.015,-706.856 318.819,-712.116 329.288,-713.739 328.015,-706.856"/>
</g>
<!-- \\MySQL -->
<g id="node19" class="node"><title>\\MySQL</title>
<polygon fill="none" stroke="black" points="606,-358 552,-358 552,-322 606,-322 606,-358"/>
<text text-anchor="middle" x="579" y="-336.6" font-family="Times Roman,serif" font-size="11.00">MySQL</text>
</g>
<!-- \\MySQL&#45;&gt;\\DB_PDO -->
<g id="edge33" class="edge"><title>\\MySQL&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M551.274,-347.161C536.158,-351.686 517.438,-358.327 502,-367 465.931,-387.264 467.783,-409.147 430,-426 400.273,-439.26 364,-444.733 335.425,-446.904"/>
<polygon fill="none" stroke="black" points="335.024,-443.423 325.272,-447.563 335.478,-450.408 335.024,-443.423"/>
</g>
<!-- \\MySQL_Util -->
<g id="node20" class="node"><title>\\MySQL_Util</title>
<polygon fill="none" stroke="black" points="618,-898 540,-898 540,-862 618,-862 618,-898"/>
<text text-anchor="middle" x="579" y="-876.6" font-family="Times Roman,serif" font-size="11.00">MySQL_Util</text>
</g>
<!-- \\MySQL_Util&#45;&gt;\\DB_Util -->
<g id="edge35" class="edge"><title>\\MySQL_Util&#45;&gt;\\DB_Util</title>
<path fill="none" stroke="black" d="M539.37,-893.7C527.347,-897.909 514.115,-902.594 502,-907 444.323,-927.974 378.311,-952.996 334.819,-969.624"/>
<polygon fill="none" stroke="black" points="333.439,-966.404 325.351,-973.247 335.941,-972.942 333.439,-966.404"/>
</g>
<!-- \\MySQL_SQL -->
<g id="node21" class="node"><title>\\MySQL_SQL</title>
<polygon fill="none" stroke="black" points="620,-628 538,-628 538,-592 620,-592 620,-628"/>
<text text-anchor="middle" x="579" y="-606.6" font-family="Times Roman,serif" font-size="11.00">MySQL_SQL</text>
</g>
<!-- \\MySQL_SQL&#45;&gt;\\iDB_SQL -->
<g id="edge37" class="edge"><title>\\MySQL_SQL&#45;&gt;\\iDB_SQL</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M537.778,-624.258C526.185,-628.321 513.582,-632.788 502,-637 441.314,-659.068 371.402,-685.618 328.201,-702.156"/>
<polygon fill="none" stroke="black" points="326.694,-698.985 318.609,-705.831 329.199,-705.521 326.694,-698.985"/>
</g>
<!-- \\BadDBDriverException -->
<g id="node20" class="node"><title>\\BadDBDriverException</title>
<polygon fill="none" stroke="black" points="650,-304 508,-304 508,-268 650,-268 650,-304"/>
<text text-anchor="middle" x="579" y="-282.6" font-family="Times Roman,serif" font-size="11.00">BadDBDriverException</text>
<g id="node22" class="node"><title>\\BadDBDriverException</title>
<polygon fill="none" stroke="black" points="650,-250 508,-250 508,-214 650,-214 650,-250"/>
<text text-anchor="middle" x="579" y="-228.6" font-family="Times Roman,serif" font-size="11.00">BadDBDriverException</text>
</g>
<!-- \\InvalidArgumentException -->
<g id="node46" class="node"><title>\\InvalidArgumentException</title>
<g id="node47" class="node"><title>\\InvalidArgumentException</title>
<ellipse fill="none" stroke="black" cx="287" cy="-72" rx="138.86" ry="18"/>
<text text-anchor="middle" x="287" y="-67.4" font-family="Times Roman,serif" font-size="14.00" fill="gray">\InvalidArgumentException</text>
</g>
<!-- \\BadDBDriverException&#45;&gt;\\InvalidArgumentException -->
<g id="edge37" class="edge"><title>\\BadDBDriverException&#45;&gt;\\InvalidArgumentException</title>
<path fill="none" stroke="black" d="M514.091,-267.872C509.746,-265.293 505.653,-262.353 502,-259 444.551,-206.27 491.254,-147.258 430,-99 423.79,-94.1079 416.963,-90.0083 409.76,-86.5805"/>
<polygon fill="none" stroke="black" points="411.025,-83.3149 400.455,-82.589 408.266,-89.7479 411.025,-83.3149"/>
<g id="edge39" class="edge"><title>\\BadDBDriverException&#45;&gt;\\InvalidArgumentException</title>
<path fill="none" stroke="black" d="M516.256,-213.95C511.211,-211.337 506.379,-208.369 502,-205 456.859,-170.276 477.626,-130.229 430,-99 422.555,-94.1182 414.45,-90.0687 406.008,-86.715"/>
<polygon fill="none" stroke="black" points="406.944,-83.3318 396.35,-83.2169 404.56,-89.9134 406.944,-83.3318"/>
</g>
<!-- \\BadConnectionException -->
<g id="node21" class="node"><title>\\BadConnectionException</title>
<g id="node23" class="node"><title>\\BadConnectionException</title>
<polygon fill="none" stroke="black" points="656,-196 502,-196 502,-160 656,-160 656,-196"/>
<text text-anchor="middle" x="579" y="-174.6" font-family="Times Roman,serif" font-size="11.00">BadConnectionException</text>
</g>
<!-- \\UnexpectedValueException -->
<g id="node48" class="node"><title>\\UnexpectedValueException</title>
<g id="node49" class="node"><title>\\UnexpectedValueException</title>
<ellipse fill="none" stroke="black" cx="287" cy="-18" rx="142.885" ry="18"/>
<text text-anchor="middle" x="287" y="-13.4" font-family="Times Roman,serif" font-size="14.00" fill="gray">\UnexpectedValueException</text>
</g>
<!-- \\BadConnectionException&#45;&gt;\\UnexpectedValueException -->
<g id="edge39" class="edge"><title>\\BadConnectionException&#45;&gt;\\UnexpectedValueException</title>
<g id="edge41" class="edge"><title>\\BadConnectionException&#45;&gt;\\UnexpectedValueException</title>
<path fill="none" stroke="black" d="M564.649,-159.998C540.297,-130.794 487.857,-73.4973 430,-45 420.639,-40.3894 410.577,-36.5637 400.283,-33.3896"/>
<polygon fill="none" stroke="black" points="400.935,-29.9357 390.358,-30.5418 399.005,-36.6642 400.935,-29.9357"/>
</g>
<!-- \\Query_Parser -->
<g id="node22" class="node"><title>\\Query_Parser</title>
<polygon fill="none" stroke="black" points="624,-250 534,-250 534,-214 624,-214 624,-250"/>
<text text-anchor="middle" x="579" y="-228.6" font-family="Times Roman,serif" font-size="11.00">Query_Parser</text>
</g>
<!-- \\MySQL -->
<g id="node23" class="node"><title>\\MySQL</title>
<polygon fill="none" stroke="black" points="606,-412 552,-412 552,-376 606,-376 606,-412"/>
<text text-anchor="middle" x="579" y="-390.6" font-family="Times Roman,serif" font-size="11.00">MySQL</text>
</g>
<!-- \\MySQL&#45;&gt;\\DB_PDO -->
<g id="edge41" class="edge"><title>\\MySQL&#45;&gt;\\DB_PDO</title>
<path fill="none" stroke="black" d="M551.274,-401.161C536.158,-405.686 517.438,-412.327 502,-421 465.931,-441.264 467.783,-463.147 430,-480 400.273,-493.26 364,-498.733 335.425,-500.904"/>
<polygon fill="none" stroke="black" points="335.024,-497.423 325.272,-501.563 335.478,-504.408 335.024,-497.423"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -85,7 +85,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -85,7 +85,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -59,13 +59,9 @@
<li class="method public "><a href="#method___construct" title="__construct() :: PDO constructor wrapper"><span class="description">PDO constructor wrapper</span><pre>__construct()</pre></a></li>
<li class="method public "><a href="#method_affected_rows" title="affected_rows() :: Returns number of rows affected by an INSERT, UPDATE, DELETE type query"><span class="description">Returns number of rows affected by an INSERT, UPDATE, DELETE type query</span><pre>affected_rows()</pre></a></li>
<li class="method public "><a href="#method_driver_query" title="driver_query() :: Method to simplify retreiving db results for meta-data queries"><span class="description">Method to simplify retreiving db results for meta-data queries</span><pre>driver_query()</pre></a></li>
<li class="method public "><a href="#method_empty_table" title="empty_table() :: Deletes all the rows from a table. Does the same as the truncate
method if the database does not support 'TRUNCATE';"><span class="description">Deletes all the rows from a table. Does the same as the truncate
method if the database does not support 'TRUNCATE';</span><pre>empty_table()</pre></a></li>
<li class="method public "><a href="#method_get_columns" title="get_columns() :: Retrieve column information for the current database table"><span class="description">Retrieve column information for the current database table</span><pre>get_columns()</pre></a></li>
<li class="method public "><a href="#method_get_dbs" title="get_dbs() :: Return list of dbs for the current connection, if possible"><span class="description">Return list of dbs for the current connection, if possible</span><pre>get_dbs()</pre></a></li>
<li class="method public "><a href="#method_get_functions" title="get_functions() :: Return list of function for the current database"><span class="description">Return list of function for the current database</span><pre>get_functions()</pre></a></li>
<li class="method public "><a href="#method_get_last_error" title="get_last_error() :: Return the last error for the current database connection"><span class="description">Return the last error for the current database connection</span><pre>get_last_error()</pre></a></li>
<li class="method public "><a href="#method_get_procedures" title="get_procedures() :: Return list of stored procedures for the current database"><span class="description">Return list of stored procedures for the current database</span><pre>get_procedures()</pre></a></li>
<li class="method public "><a href="#method_get_schemas" title="get_schemas() :: Return schemas for databases that list them"><span class="description">Return schemas for databases that list them</span><pre>get_schemas()</pre></a></li>
<li class="method public "><a href="#method_get_sequences" title="get_sequences() :: Return list of sequences for the current database, if they exist"><span class="description">Return list of sequences for the current database, if they exist</span><pre>get_sequences()</pre></a></li>
@ -192,22 +188,6 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a id="method_empty_table"></a><div class="element clickable method public method_empty_table" data-toggle="collapse" data-target=".method_empty_table .collapse">
<h2>Deletes all the rows from a table. Does the same as the truncate
method if the database does not support 'TRUNCATE';</h2>
<pre>empty_table(string $table) : mixed</pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$table</h4>
<code>string</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a id="method_get_columns"></a><div class="element clickable method public method_get_columns" data-toggle="collapse" data-target=".method_get_columns .collapse">
<h2>Retrieve column information for the current database table</h2>
<pre>get_columns(string $table) : array</pre>
@ -243,16 +223,6 @@ method if the database does not support 'TRUNCATE';</h2>
<div class="subelement response"><code>array</code></div>
</div></div>
</div>
<a id="method_get_last_error"></a><div class="element clickable method public method_get_last_error" data-toggle="collapse" data-target=".method_get_last_error .collapse">
<h2>Return the last error for the current database connection</h2>
<pre>get_last_error() : string</pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
<a id="method_get_procedures"></a><div class="element clickable method public method_get_procedures" data-toggle="collapse" data-target=".method_get_procedures .collapse">
<h2>Return list of stored procedures for the current database</h2>
<pre>get_procedures() : array</pre>
@ -401,6 +371,11 @@ the connection/database</h2>
<h4>$data</h4>
<code>array</code>
</div>
<h3>Exceptions</h3>
<table class="table table-bordered"><tr>
<th><code><a href="InvalidArgumentException.html">\InvalidArgumentException</a></code></th>
<td></td>
</tr></table>
<h3>Returns</h3>
<div class="subelement response">
<code>mixed</code>PDOStatement / FALSE</div>
@ -525,7 +500,7 @@ the connection/database</h2>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -224,7 +224,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -210,6 +210,11 @@ the last query executed"><span class="description"></span><pre>$statement_link</
<h4>$options</h4>
<code>array</code>
</div>
<h3>Exceptions</h3>
<table class="table table-bordered"><tr>
<th><code><a href="PDOException.html">\PDOException</a></code></th>
<td></td>
</tr></table>
<h3>Returns</h3>
<div class="subelement response"><code>\Firebird</code></div>
</div></div>
@ -267,6 +272,11 @@ the last query executed"><span class="description"></span><pre>$statement_link</
<h4>$sql</h4>
<code>string</code>
</div>
<h3>Exceptions</h3>
<table class="table table-bordered"><tr>
<th><code><a href="PDOException.html">\PDOException</a></code></th>
<td></td>
</tr></table>
<h3>Returns</h3>
<div class="subelement response"><code>\Firebird</code></div>
</div></div>
@ -348,7 +358,7 @@ the last query executed</h2>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -354,7 +354,7 @@ the query</h2>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -257,7 +257,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -177,7 +177,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -148,7 +148,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -262,7 +262,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -173,7 +173,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -168,7 +168,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -257,7 +257,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -168,7 +168,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -142,7 +142,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -257,7 +257,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -173,7 +173,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -1437,7 +1437,7 @@ passed array with key / value pairs</h2>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -151,7 +151,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -186,7 +186,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -257,7 +257,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -173,7 +173,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -265,7 +265,7 @@ specified table</h2>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -968,7 +968,7 @@ prefixed with 'OR NOT'</h2>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -66,7 +66,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -93,7 +93,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -63,7 +63,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -102,7 +102,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -69,34 +69,34 @@ with array_map and glob</span><pre>do_include</pre></a></li>
<li class="function "><a href="#function_query_autoload" title="query_autoload() :: Load query classes"><span class="description">Load query classes</span><pre>query_autoload</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-interface"></i> Interfaces</li>
<li><a href="#iQuery_Builder" title="Interface defining the Query Builder class">iQuery_Builder</a></li>
<li><a href="#iDB_SQL" title="parent for database manipulation subclasses">iDB_SQL</a></li>
<li><a href="#iQuery_Builder" title="Interface defining the Query Builder class">iQuery_Builder</a></li>
<li class="nav-header">
<i class="icon-custom icon-class"></i> Classes</li>
<li><a href="#DB_PDO" title="Base Database class">DB_PDO</a></li>
<li><a href="#Firebird_Result" title="Firebird result class to emulate PDOStatement Class - only implements
data-fetching methods">Firebird_Result</a></li>
<li><a href="#Firebird_Util" title="Firebird-specific backup, import and creation methods">Firebird_Util</a></li>
<li><a href="#DB_Util" title="Abstract class defining database / table creation methods">DB_Util</a></li>
<li><a href="#Query_Parser" title="Utility Class to parse sql clauses for properly escaping identifiers">Query_Parser</a></li>
<li><a href="#Query_Builder" title="Convienience class for creating sql queries - also the class that
instantiates the specific db driver">Query_Builder</a></li>
<li><a href="#Firebird" title="Firebird Database class">Firebird</a></li>
<li><a href="#MySQL_Util" title="MySQL-specific backup, import and creation methods">MySQL_Util</a></li>
<li><a href="#ODBC_SQL" title="ODBC SQL Class">ODBC_SQL</a></li>
<li><a href="#ODBC" title="ODBC Database Driver">ODBC</a></li>
<li><a href="#ODBC_Util" title="ODBC-specific backup, import and creation methods">ODBC_Util</a></li>
<li><a href="#DB_Util" title="Abstract class defining database / table creation methods">DB_Util</a></li>
<li><a href="#SQLite_SQL" title="SQLite Specific SQL">SQLite_SQL</a></li>
<li><a href="#SQLite_Util" title="SQLite-specific backup, import and creation methods">SQLite_Util</a></li>
<li><a href="#SQLite" title="SQLite specific class">SQLite</a></li>
<li><a href="#Firebird_Util" title="Firebird-specific backup, import and creation methods">Firebird_Util</a></li>
<li><a href="#Firebird_SQL" title="Firebird Specific SQL">Firebird_SQL</a></li>
<li><a href="#Firebird_Result" title="Firebird result class to emulate PDOStatement Class - only implements
data-fetching methods">Firebird_Result</a></li>
<li><a href="#Firebird" title="Firebird Database class">Firebird</a></li>
<li><a href="#PgSQL" title="PostgreSQL specifc class">PgSQL</a></li>
<li><a href="#PgSQL_Util" title="Posgres-specific backup, import and creation methods">PgSQL_Util</a></li>
<li><a href="#PgSQL_SQL" title="PostgreSQL specifc SQL">PgSQL_SQL</a></li>
<li><a href="#MySQL" title="MySQL specific class">MySQL</a></li>
<li><a href="#MySQL_Util" title="MySQL-specific backup, import and creation methods">MySQL_Util</a></li>
<li><a href="#MySQL_SQL" title="MySQL specifc SQL">MySQL_SQL</a></li>
<li><a href="#Firebird_SQL" title="Firebird Specific SQL">Firebird_SQL</a></li>
<li><a href="#SQLite" title="SQLite specific class">SQLite</a></li>
<li><a href="#SQLite_SQL" title="SQLite Specific SQL">SQLite_SQL</a></li>
<li><a href="#ODBC" title="ODBC Database Driver">ODBC</a></li>
<li><a href="#PgSQL" title="PostgreSQL specifc class">PgSQL</a></li>
<li><a href="#BadDBDriverException" title="Generic exception for bad drivers">BadDBDriverException</a></li>
<li><a href="#BadConnectionException" title="Generic exception for bad connection strings">BadConnectionException</a></li>
<li><a href="#Query_Parser" title="Utility Class to parse sql clauses for properly escaping identifiers">Query_Parser</a></li>
<li><a href="#MySQL" title="MySQL specific class">MySQL</a></li>
<li class="nav-header">
<i class="icon-custom icon-constant"></i> Constants</li>
<li class="constant "><a href="#constant_QBASE_PATH" title="QBASE_PATH() :: Reference to root path"><span class="description">Reference to root path</span><pre>QBASE_PATH</pre></a></li>
@ -109,7 +109,7 @@ instantiates the specific db driver">Query_Builder</a></li>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -66,7 +66,7 @@
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -60,23 +60,23 @@
</li>
<li class="nav-header">
<i class="icon-custom icon-class"></i> Classes</li>
<li><a href="#ODBC_SQL" title="ODBC SQL Class">ODBC_SQL</a></li>
<li><a href="#ODBC" title="ODBC Database Driver">ODBC</a></li>
<li><a href="#ODBC_Util" title="ODBC-specific backup, import and creation methods">ODBC_Util</a></li>
<li><a href="#SQLite_SQL" title="SQLite Specific SQL">SQLite_SQL</a></li>
<li><a href="#SQLite_Util" title="SQLite-specific backup, import and creation methods">SQLite_Util</a></li>
<li><a href="#SQLite" title="SQLite specific class">SQLite</a></li>
<li><a href="#Firebird_Util" title="Firebird-specific backup, import and creation methods">Firebird_Util</a></li>
<li><a href="#Firebird_SQL" title="Firebird Specific SQL">Firebird_SQL</a></li>
<li><a href="#Firebird_Result" title="Firebird result class to emulate PDOStatement Class - only implements
data-fetching methods">Firebird_Result</a></li>
<li><a href="#Firebird_Util" title="Firebird-specific backup, import and creation methods">Firebird_Util</a></li>
<li><a href="#Firebird" title="Firebird Database class">Firebird</a></li>
<li><a href="#MySQL_Util" title="MySQL-specific backup, import and creation methods">MySQL_Util</a></li>
<li><a href="#ODBC_SQL" title="ODBC SQL Class">ODBC_SQL</a></li>
<li><a href="#ODBC_Util" title="ODBC-specific backup, import and creation methods">ODBC_Util</a></li>
<li><a href="#SQLite_Util" title="SQLite-specific backup, import and creation methods">SQLite_Util</a></li>
<li><a href="#PgSQL" title="PostgreSQL specifc class">PgSQL</a></li>
<li><a href="#PgSQL_Util" title="Posgres-specific backup, import and creation methods">PgSQL_Util</a></li>
<li><a href="#PgSQL_SQL" title="PostgreSQL specifc SQL">PgSQL_SQL</a></li>
<li><a href="#MySQL_SQL" title="MySQL specifc SQL">MySQL_SQL</a></li>
<li><a href="#Firebird_SQL" title="Firebird Specific SQL">Firebird_SQL</a></li>
<li><a href="#SQLite" title="SQLite specific class">SQLite</a></li>
<li><a href="#SQLite_SQL" title="SQLite Specific SQL">SQLite_SQL</a></li>
<li><a href="#ODBC" title="ODBC Database Driver">ODBC</a></li>
<li><a href="#PgSQL" title="PostgreSQL specifc class">PgSQL</a></li>
<li><a href="#MySQL" title="MySQL specific class">MySQL</a></li>
<li><a href="#MySQL_Util" title="MySQL-specific backup, import and creation methods">MySQL_Util</a></li>
<li><a href="#MySQL_SQL" title="MySQL specifc SQL">MySQL_SQL</a></li>
</ul>
</div>
<div class="span8 package-contents">
@ -209,7 +209,7 @@ data-fetching methods</p>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -60,17 +60,17 @@
</li>
<li class="nav-header">
<i class="icon-custom icon-interface"></i> Interfaces</li>
<li><a href="#iQuery_Builder" title="Interface defining the Query Builder class">iQuery_Builder</a></li>
<li><a href="#iDB_SQL" title="parent for database manipulation subclasses">iDB_SQL</a></li>
<li><a href="#iQuery_Builder" title="Interface defining the Query Builder class">iQuery_Builder</a></li>
<li class="nav-header">
<i class="icon-custom icon-class"></i> Classes</li>
<li><a href="#DB_PDO" title="Base Database class">DB_PDO</a></li>
<li><a href="#DB_Util" title="Abstract class defining database / table creation methods">DB_Util</a></li>
<li><a href="#Query_Parser" title="Utility Class to parse sql clauses for properly escaping identifiers">Query_Parser</a></li>
<li><a href="#Query_Builder" title="Convienience class for creating sql queries - also the class that
instantiates the specific db driver">Query_Builder</a></li>
<li><a href="#DB_Util" title="Abstract class defining database / table creation methods">DB_Util</a></li>
<li><a href="#BadDBDriverException" title="Generic exception for bad drivers">BadDBDriverException</a></li>
<li><a href="#BadConnectionException" title="Generic exception for bad connection strings">BadConnectionException</a></li>
<li><a href="#Query_Parser" title="Utility Class to parse sql clauses for properly escaping identifiers">Query_Parser</a></li>
</ul>
</div>
<div class="span8 package-contents">
@ -147,7 +147,7 @@ instantiates the specific db driver</p>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -389,7 +389,7 @@ instantiates the specific db driver</p>
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.1.0
</a> and<br>
generated on 2014-02-07T16:51:34-05:00.<br></footer></div>
generated on 2014-02-12T19:09:30-05:00.<br></footer></div>
</div>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -67,4 +67,4 @@ SQL;
return $this->driver_query($sql);
}
}
//End of pgsql_driver.php
//End of pgsql_driver.php

View File

@ -138,11 +138,16 @@ class FirebirdQBTest extends QBTest {
->where('id >', 1)
->where('id <', 900)
->limit(2, 1)
->get_compiled_select('create_test');
->get_compiled_select();
$res2 = $this->db->select('id, key as k, val')
->where('id >', 1)
->where('id <', 900)
->limit(2, 1)
->get_compiled_select();
$expected = 'SELECT FIRST 2 SKIP 1 "id","key" AS "k","val" FROM "create_test" WHERE "id" > ? AND "id" < ?';
$this->assertEqual($expected, $res);
// Queries are equal because explain is not a keyword in Firebird
$this->assertEqual($res, $res2);
}
}

Binary file not shown.