Changed invalid methods to return NULL instead of FALSE, added insert_batch

This commit is contained in:
Timothy Warren 2013-05-01 15:59:23 -04:00
parent 842b4b5fd4
commit 40c76b2653
50 changed files with 677 additions and 422 deletions

View File

@ -61,6 +61,7 @@ abstract class DB_PDO extends PDO {
$class = get_class($this)."_util"; $class = get_class($this)."_util";
$this->util = new $class($this); $this->util = new $class($this);
// Set PDO to display errors as exceptions
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// Set additional driver options, if they exist // Set additional driver options, if they exist
@ -92,7 +93,7 @@ abstract class DB_PDO extends PDO {
if( ! (is_object($query) || is_resource($query))) if( ! (is_object($query) || is_resource($query)))
{ {
$this->get_last_error(); $this->get_last_error();
return FALSE; return NULL;
} }
// Set the statement in the class variable for easy later access // Set the statement in the class variable for easy later access
@ -102,7 +103,7 @@ abstract class DB_PDO extends PDO {
if( ! (is_array($data) || is_object($data))) if( ! (is_array($data) || is_object($data)))
{ {
trigger_error("Invalid data argument"); trigger_error("Invalid data argument");
return FALSE; return NULL;
} }
// Bind the parameters // Bind the parameters
@ -118,7 +119,7 @@ abstract class DB_PDO extends PDO {
if( ! $res) if( ! $res)
{ {
trigger_error("Parameter not successfully bound"); trigger_error("Parameter not successfully bound");
return FALSE; return NULL;
} }
} }
@ -348,7 +349,7 @@ abstract class DB_PDO extends PDO {
*/ */
public function get_schemas() public function get_schemas()
{ {
return FALSE; return NULL;
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
@ -485,9 +486,9 @@ abstract class DB_PDO extends PDO {
public function driver_query($sql, $filtered_index=TRUE) public function driver_query($sql, $filtered_index=TRUE)
{ {
// Return if the query doesn't apply to the driver // Return if the query doesn't apply to the driver
if ($sql === FALSE) if ($sql === NULL)
{ {
return FALSE; return NULL;
} }
// Return predefined data // Return predefined data
@ -523,7 +524,7 @@ abstract class DB_PDO extends PDO {
return $stmt->fetchColumn(); return $stmt->fetchColumn();
} }
return FALSE; return NULL;
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------

View File

@ -78,7 +78,7 @@ interface iDB_SQL {
/** /**
* Return sql to list functions * Return sql to list functions
* *
* @return FALSE * @return NULL
*/ */
public function function_list(); public function function_list();
@ -111,5 +111,6 @@ interface iDB_SQL {
* @return string * @return string
*/ */
public function column_list($table); public function column_list($table);
} }
// End of db_sql.php // End of db_sql.php

View File

@ -399,6 +399,17 @@ interface iQuery_Builder {
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/**
* Creates a batch insert clause, and executes it
*
* @param string $table
* @param mixed $data
* @return mixed
*/
public function insert_batch($table, $data=array());
// --------------------------------------------------------------------------
/** /**
* Creates an update clause, and executes it * Creates an update clause, and executes it
* *

View File

@ -1019,6 +1019,41 @@ class Query_Builder implements iQuery_Builder {
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/**
* Creates a batch insert clause and executes it
*
* @param string $table
* @param mixed $data
* @return mixed
*/
public function insert_batch($table, $data=array())
{
// Bail out on Firebird and ODBC
$driver = str_replace('_sql', '', mb_strtolower(get_class($this->sql)));
if ($driver == 'firebird' || $driver == 'odbc')
{
return NULL;
}
// Can't use normal set, because it doesn't handle multidimensional arrays
foreach($data as $key => $arr)
{
foreach($arr as $k => $v)
{
$this->set_array_keys[$key][] = $k;
$this->values[] = $v;
}
// Escape the field names
$this->set_array_keys[$key] = $this->db->quote_ident($this->set_array_keys[$key]);
}
return $this->_run("insert_batch", $table);
}
// --------------------------------------------------------------------------
/** /**
* Creates an update clause, and executes it * Creates an update clause, and executes it
* *
@ -1192,6 +1227,15 @@ class Query_Builder implements iQuery_Builder {
$sql = $this->_compile($type, $table); $sql = $this->_compile($type, $table);
$vals = array_merge($this->values, (array) $this->where_values); $vals = array_merge($this->values, (array) $this->where_values);
// Add quotes to 'string' values
foreach($vals as &$v)
{
if ( ! is_numeric($v))
{
$v = "'{$v}'";
}
}
$start_time = microtime(TRUE); $start_time = microtime(TRUE);
$res = ($simple) $res = ($simple)
@ -1217,6 +1261,7 @@ class Query_Builder implements iQuery_Builder {
// Set the last query to get rowcounts properly // Set the last query to get rowcounts properly
$this->db->last_query = $sql; $this->db->last_query = $sql;
// Reset class state for next query
$this->reset_query(); $this->reset_query();
return $res; return $res;
@ -1278,6 +1323,25 @@ class Query_Builder implements iQuery_Builder {
') VALUES ('.implode(',', $params).')'; ') VALUES ('.implode(',', $params).')';
break; break;
case "insert_batch":
$param_count = count($this->set_array_keys[0]);
$params = array_fill(0, $param_count, '?');
$sql = "INSERT INTO {$table} ("
. implode(',', $this->set_array_keys[0])
. ') VALUES ( '
. implode(',', $params) . ')';
// Remove the first set from the array
array_shift($this->set_array_keys);
// Add another set of placeholders for each batch group
foreach($this->set_array_keys as $group)
{
$sql .= ',('.implode(',', $params).')';
}
break;
case "update": case "update":
$sql = "UPDATE {$table} SET {$this->set_string}"; $sql = "UPDATE {$table} SET {$this->set_string}";
break; break;

View File

@ -219,7 +219,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -219,7 +219,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -743,7 +743,7 @@ the connection/database</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -210,7 +210,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -658,7 +658,7 @@ the connection/database</h2>
</div> </div>
<a name="prepare_query" id="prepare_query"></a><div class="element clickable method public prepare_query" data-toggle="collapse" data-target=".prepare_query .collapse"> <a name="prepare_query" id="prepare_query"></a><div class="element clickable method public prepare_query" data-toggle="collapse" data-target=".prepare_query .collapse">
<h2>Bind a prepared query with arguments for executing</h2> <h2>Bind a prepared query with arguments for executing</h2>
<pre>prepare_query(string $sql, array $params) : FALSE</pre> <pre>prepare_query(string $sql, array $params) : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
@ -672,7 +672,7 @@ the connection/database</h2>
<code>array</code> <code>array</code>
</div> </div>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="query" id="query"></a><div class="element clickable method public query" data-toggle="collapse" data-target=".query .collapse"> <a name="query" id="query"></a><div class="element clickable method public query" data-toggle="collapse" data-target=".query .collapse">
@ -925,7 +925,7 @@ the last query executed</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -160,7 +160,7 @@ the query</h2>
</div> </div>
<a name="bindColumn" id="bindColumn"></a><div class="element clickable method public bindColumn" data-toggle="collapse" data-target=".bindColumn .collapse"> <a name="bindColumn" id="bindColumn"></a><div class="element clickable method public bindColumn" data-toggle="collapse" data-target=".bindColumn .collapse">
<h2>Invalidate method for data consistency</h2> <h2>Invalidate method for data consistency</h2>
<pre>bindColumn(mixed $column, mixed $param, int $type, mixed $maxlen, array $driverdata) : FALSE</pre> <pre>bindColumn(mixed $column, mixed $param, int $type, mixed $maxlen, array $driverdata) : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
@ -186,12 +186,12 @@ the query</h2>
<code>array</code> <code>array</code>
</div> </div>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="bindParam" id="bindParam"></a><div class="element clickable method public bindParam" data-toggle="collapse" data-target=".bindParam .collapse"> <a name="bindParam" id="bindParam"></a><div class="element clickable method public bindParam" data-toggle="collapse" data-target=".bindParam .collapse">
<h2>Invalidate method for data consistency</h2> <h2>Invalidate method for data consistency</h2>
<pre>bindParam(mixed $parameter, mixed $variable, int $data_type, mixed $maxlen, array $driverdata) : FALSE</pre> <pre>bindParam(mixed $parameter, mixed $variable, int $data_type, mixed $maxlen, array $driverdata) : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
@ -217,12 +217,12 @@ the query</h2>
<code>array</code> <code>array</code>
</div> </div>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="bindValue" id="bindValue"></a><div class="element clickable method public bindValue" data-toggle="collapse" data-target=".bindValue .collapse"> <a name="bindValue" id="bindValue"></a><div class="element clickable method public bindValue" data-toggle="collapse" data-target=".bindValue .collapse">
<h2>Invalidate method for data consistency</h2> <h2>Invalidate method for data consistency</h2>
<pre>bindValue(mixed $parameter, mixed $variable, int $data_type) : FALSE</pre> <pre>bindValue(mixed $parameter, mixed $variable, int $data_type) : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
@ -240,7 +240,7 @@ the query</h2>
<code>int</code> <code>int</code>
</div> </div>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="closeCursor" id="closeCursor"></a><div class="element clickable method public closeCursor" data-toggle="collapse" data-target=".closeCursor .collapse"> <a name="closeCursor" id="closeCursor"></a><div class="element clickable method public closeCursor" data-toggle="collapse" data-target=".closeCursor .collapse">
@ -505,7 +505,7 @@ the query</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -106,12 +106,12 @@
</div> </div>
<a name="db_list" id="db_list"></a><div class="element clickable method public db_list" data-toggle="collapse" data-target=".db_list .collapse"> <a name="db_list" id="db_list"></a><div class="element clickable method public db_list" data-toggle="collapse" data-target=".db_list .collapse">
<h2>Returns sql to list other databases</h2> <h2>Returns sql to list other databases</h2>
<pre>db_list() : FALSE</pre> <pre>db_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse"> <a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse">
@ -234,7 +234,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -213,7 +213,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -963,7 +963,7 @@ the connection/database</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -169,12 +169,12 @@
</div> </div>
<a name="sequence_list" id="sequence_list"></a><div class="element clickable method public sequence_list" data-toggle="collapse" data-target=".sequence_list .collapse"> <a name="sequence_list" id="sequence_list"></a><div class="element clickable method public sequence_list" data-toggle="collapse" data-target=".sequence_list .collapse">
<h2>Return sql to list sequences</h2> <h2>Return sql to list sequences</h2>
<pre>sequence_list() : FALSE</pre> <pre>sequence_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="system_table_list" id="system_table_list"></a><div class="element clickable method public system_table_list" data-toggle="collapse" data-target=".system_table_list .collapse"> <a name="system_table_list" id="system_table_list"></a><div class="element clickable method public system_table_list" data-toggle="collapse" data-target=".system_table_list .collapse">
@ -239,7 +239,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -209,7 +209,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -963,7 +963,7 @@ the connection/database</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -91,7 +91,7 @@
<i class="icon-custom icon-method"></i> Methods</h3> <i class="icon-custom icon-method"></i> Methods</h3>
<a name="column_list" id="column_list"></a><div class="element clickable method public column_list" data-toggle="collapse" data-target=".column_list .collapse"> <a name="column_list" id="column_list"></a><div class="element clickable method public column_list" data-toggle="collapse" data-target=".column_list .collapse">
<h2>SQL to show infromation about columns in a table</h2> <h2>SQL to show infromation about columns in a table</h2>
<pre>column_list(string $table) : FALSE</pre> <pre>column_list(string $table) : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
@ -101,27 +101,27 @@
<code>string</code> <code>string</code>
</div> </div>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="db_list" id="db_list"></a><div class="element clickable method public db_list" data-toggle="collapse" data-target=".db_list .collapse"> <a name="db_list" id="db_list"></a><div class="element clickable method public db_list" data-toggle="collapse" data-target=".db_list .collapse">
<h2>Returns sql to list other databases</h2> <h2>Returns sql to list other databases</h2>
<pre>db_list() : FALSE</pre> <pre>db_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse"> <a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse">
<h2>Return sql to list functions</h2> <h2>Return sql to list functions</h2>
<pre>function_list() : FALSE</pre> <pre>function_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="limit" id="limit"></a><div class="element clickable method public limit" data-toggle="collapse" data-target=".limit .collapse"> <a name="limit" id="limit"></a><div class="element clickable method public limit" data-toggle="collapse" data-target=".limit .collapse">
@ -149,12 +149,12 @@
</div> </div>
<a name="procedure_list" id="procedure_list"></a><div class="element clickable method public procedure_list" data-toggle="collapse" data-target=".procedure_list .collapse"> <a name="procedure_list" id="procedure_list"></a><div class="element clickable method public procedure_list" data-toggle="collapse" data-target=".procedure_list .collapse">
<h2>Return sql to list stored procedures</h2> <h2>Return sql to list stored procedures</h2>
<pre>procedure_list() : FALSE</pre> <pre>procedure_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="random" id="random"></a><div class="element clickable method public random" data-toggle="collapse" data-target=".random .collapse"> <a name="random" id="random"></a><div class="element clickable method public random" data-toggle="collapse" data-target=".random .collapse">
@ -169,62 +169,62 @@
</div> </div>
<a name="sequence_list" id="sequence_list"></a><div class="element clickable method public sequence_list" data-toggle="collapse" data-target=".sequence_list .collapse"> <a name="sequence_list" id="sequence_list"></a><div class="element clickable method public sequence_list" data-toggle="collapse" data-target=".sequence_list .collapse">
<h2>Return sql to list sequences</h2> <h2>Return sql to list sequences</h2>
<pre>sequence_list() : FALSE</pre> <pre>sequence_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="system_table_list" id="system_table_list"></a><div class="element clickable method public system_table_list" data-toggle="collapse" data-target=".system_table_list .collapse"> <a name="system_table_list" id="system_table_list"></a><div class="element clickable method public system_table_list" data-toggle="collapse" data-target=".system_table_list .collapse">
<h2>Returns sql to list system tables</h2> <h2>Returns sql to list system tables</h2>
<pre>system_table_list() : FALSE</pre> <pre>system_table_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="table_list" id="table_list"></a><div class="element clickable method public table_list" data-toggle="collapse" data-target=".table_list .collapse"> <a name="table_list" id="table_list"></a><div class="element clickable method public table_list" data-toggle="collapse" data-target=".table_list .collapse">
<h2>Returns sql to list tables</h2> <h2>Returns sql to list tables</h2>
<pre>table_list() : FALSE</pre> <pre>table_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="trigger_list" id="trigger_list"></a><div class="element clickable method public trigger_list" data-toggle="collapse" data-target=".trigger_list .collapse"> <a name="trigger_list" id="trigger_list"></a><div class="element clickable method public trigger_list" data-toggle="collapse" data-target=".trigger_list .collapse">
<h2>Returns sql to list triggers</h2> <h2>Returns sql to list triggers</h2>
<pre>trigger_list() : FALSE</pre> <pre>trigger_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="type_list" id="type_list"></a><div class="element clickable method public type_list" data-toggle="collapse" data-target=".type_list .collapse"> <a name="type_list" id="type_list"></a><div class="element clickable method public type_list" data-toggle="collapse" data-target=".type_list .collapse">
<h2>SQL to show list of field types</h2> <h2>SQL to show list of field types</h2>
<pre>type_list() : FALSE</pre> <pre>type_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="view_list" id="view_list"></a><div class="element clickable method public view_list" data-toggle="collapse" data-target=".view_list .collapse"> <a name="view_list" id="view_list"></a><div class="element clickable method public view_list" data-toggle="collapse" data-target=".view_list .collapse">
<h2>Returns sql to list views</h2> <h2>Returns sql to list views</h2>
<pre>view_list() : FALSE</pre> <pre>view_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
</div> </div>
@ -234,7 +234,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -204,7 +204,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -965,7 +965,7 @@ the connection/database</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -116,12 +116,12 @@
</div> </div>
<a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse"> <a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse">
<h2>Return sql to list functions</h2> <h2>Return sql to list functions</h2>
<pre>function_list() : FALSE</pre> <pre>function_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="limit" id="limit"></a><div class="element clickable method public limit" data-toggle="collapse" data-target=".limit .collapse"> <a name="limit" id="limit"></a><div class="element clickable method public limit" data-toggle="collapse" data-target=".limit .collapse">
@ -234,7 +234,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -209,7 +209,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -80,6 +80,7 @@ execute current compiled query</span><pre>get()</pre></a></li>
<li class="method public "><a href="#group_start" title="group_start :: Adds a paren to the current query for query grouping"><span class="description">Adds a paren to the current query for query grouping</span><pre>group_start()</pre></a></li> <li class="method public "><a href="#group_start" title="group_start :: Adds a paren to the current query for query grouping"><span class="description">Adds a paren to the current query for query grouping</span><pre>group_start()</pre></a></li>
<li class="method public "><a href="#having" title="having :: Generates a 'Having' clause"><span class="description">Generates a 'Having' clause</span><pre>having()</pre></a></li> <li class="method public "><a href="#having" title="having :: Generates a 'Having' clause"><span class="description">Generates a 'Having' clause</span><pre>having()</pre></a></li>
<li class="method public "><a href="#insert" title="insert :: Creates an insert clause, and executes it"><span class="description">Creates an insert clause, and executes it</span><pre>insert()</pre></a></li> <li class="method public "><a href="#insert" title="insert :: Creates an insert clause, and executes it"><span class="description">Creates an insert clause, and executes it</span><pre>insert()</pre></a></li>
<li class="method public "><a href="#insert_batch" title="insert_batch :: Creates a batch insert clause and executes it"><span class="description">Creates a batch insert clause and executes it</span><pre>insert_batch()</pre></a></li>
<li class="method public "><a href="#join" title="join :: Creates a join phrase in a compiled query"><span class="description">Creates a join phrase in a compiled query</span><pre>join()</pre></a></li> <li class="method public "><a href="#join" title="join :: Creates a join phrase in a compiled query"><span class="description">Creates a join phrase in a compiled query</span><pre>join()</pre></a></li>
<li class="method public "><a href="#like" title="like :: Creates a Like clause in the sql statement"><span class="description">Creates a Like clause in the sql statement</span><pre>like()</pre></a></li> <li class="method public "><a href="#like" title="like :: Creates a Like clause in the sql statement"><span class="description">Creates a Like clause in the sql statement</span><pre>like()</pre></a></li>
<li class="method public "><a href="#limit" title="limit :: Set a limit on the current sql statement"><span class="description">Set a limit on the current sql statement</span><pre>limit()</pre></a></li> <li class="method public "><a href="#limit" title="limit :: Set a limit on the current sql statement"><span class="description">Set a limit on the current sql statement</span><pre>limit()</pre></a></li>
@ -499,6 +500,25 @@ execute current compiled query</h2>
<div class="subelement response"><code>mixed</code></div> <div class="subelement response"><code>mixed</code></div>
</div></div> </div></div>
</div> </div>
<a name="insert_batch" id="insert_batch"></a><div class="element clickable method public insert_batch" data-toggle="collapse" data-target=".insert_batch .collapse">
<h2>Creates a batch insert clause and executes it</h2>
<pre>insert_batch(string $table, mixed $data) : mixed</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a name="join" id="join"></a><div class="element clickable method public join" data-toggle="collapse" data-target=".join .collapse"> <a name="join" id="join"></a><div class="element clickable method public join" data-toggle="collapse" data-target=".join .collapse">
<h2>Creates a join phrase in a compiled query</h2> <h2>Creates a join phrase in a compiled query</h2>
<pre>join(string $table, string $condition, string $type) : <a href="../classes/Query_Builder.html">\Query_Builder</a></pre> <pre>join(string $table, string $condition, string $type) : <a href="../classes/Query_Builder.html">\Query_Builder</a></pre>
@ -1361,7 +1381,7 @@ passed array with key / value pairs</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -145,7 +145,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -980,7 +980,7 @@ method if the database does not support 'TRUNCATE';</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -106,22 +106,22 @@
</div> </div>
<a name="db_list" id="db_list"></a><div class="element clickable method public db_list" data-toggle="collapse" data-target=".db_list .collapse"> <a name="db_list" id="db_list"></a><div class="element clickable method public db_list" data-toggle="collapse" data-target=".db_list .collapse">
<h2>Returns sql to list other databases</h2> <h2>Returns sql to list other databases</h2>
<pre>db_list() : FALSE</pre> <pre>db_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse"> <a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse">
<h2>Return sql to list functions</h2> <h2>Return sql to list functions</h2>
<pre>function_list() : FALSE</pre> <pre>function_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="limit" id="limit"></a><div class="element clickable method public limit" data-toggle="collapse" data-target=".limit .collapse"> <a name="limit" id="limit"></a><div class="element clickable method public limit" data-toggle="collapse" data-target=".limit .collapse">
@ -149,12 +149,12 @@
</div> </div>
<a name="procedure_list" id="procedure_list"></a><div class="element clickable method public procedure_list" data-toggle="collapse" data-target=".procedure_list .collapse"> <a name="procedure_list" id="procedure_list"></a><div class="element clickable method public procedure_list" data-toggle="collapse" data-target=".procedure_list .collapse">
<h2>Return sql to list stored procedures</h2> <h2>Return sql to list stored procedures</h2>
<pre>procedure_list() : FALSE</pre> <pre>procedure_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="random" id="random"></a><div class="element clickable method public random" data-toggle="collapse" data-target=".random .collapse"> <a name="random" id="random"></a><div class="element clickable method public random" data-toggle="collapse" data-target=".random .collapse">
@ -169,12 +169,12 @@
</div> </div>
<a name="sequence_list" id="sequence_list"></a><div class="element clickable method public sequence_list" data-toggle="collapse" data-target=".sequence_list .collapse"> <a name="sequence_list" id="sequence_list"></a><div class="element clickable method public sequence_list" data-toggle="collapse" data-target=".sequence_list .collapse">
<h2>Return sql to list sequences</h2> <h2>Return sql to list sequences</h2>
<pre>sequence_list() : FALSE</pre> <pre>sequence_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="system_table_list" id="system_table_list"></a><div class="element clickable method public system_table_list" data-toggle="collapse" data-target=".system_table_list .collapse"> <a name="system_table_list" id="system_table_list"></a><div class="element clickable method public system_table_list" data-toggle="collapse" data-target=".system_table_list .collapse">
@ -199,12 +199,12 @@
</div> </div>
<a name="trigger_list" id="trigger_list"></a><div class="element clickable method public trigger_list" data-toggle="collapse" data-target=".trigger_list .collapse"> <a name="trigger_list" id="trigger_list"></a><div class="element clickable method public trigger_list" data-toggle="collapse" data-target=".trigger_list .collapse">
<h2>Returns sql to list triggers</h2> <h2>Returns sql to list triggers</h2>
<pre>trigger_list() : FALSE</pre> <pre>trigger_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="type_list" id="type_list"></a><div class="element clickable method public type_list" data-toggle="collapse" data-target=".type_list .collapse"> <a name="type_list" id="type_list"></a><div class="element clickable method public type_list" data-toggle="collapse" data-target=".type_list .collapse">
@ -234,7 +234,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -209,7 +209,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -118,12 +118,12 @@ specified table</h2>
</div> </div>
<a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse"> <a name="function_list" id="function_list"></a><div class="element clickable method public function_list" data-toggle="collapse" data-target=".function_list .collapse">
<h2>Return sql to list functions</h2> <h2>Return sql to list functions</h2>
<pre>function_list() : FALSE</pre> <pre>function_list() : NULL</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>FALSE</code></div> <div class="subelement response"><code>NULL</code></div>
</div></div> </div></div>
</div> </div>
<a name="limit" id="limit"></a><div class="element clickable method public limit" data-toggle="collapse" data-target=".limit .collapse"> <a name="limit" id="limit"></a><div class="element clickable method public limit" data-toggle="collapse" data-target=".limit .collapse">
@ -244,7 +244,7 @@ specified table</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -78,6 +78,7 @@ execute current compiled query</span><pre>get()</pre></a></li>
<li class="method public "><a href="#group_start" title="group_start :: Adds a paren to the current query for query grouping"><span class="description">Adds a paren to the current query for query grouping</span><pre>group_start()</pre></a></li> <li class="method public "><a href="#group_start" title="group_start :: Adds a paren to the current query for query grouping"><span class="description">Adds a paren to the current query for query grouping</span><pre>group_start()</pre></a></li>
<li class="method public "><a href="#having" title="having :: Generates a 'Having' clause"><span class="description">Generates a 'Having' clause</span><pre>having()</pre></a></li> <li class="method public "><a href="#having" title="having :: Generates a 'Having' clause"><span class="description">Generates a 'Having' clause</span><pre>having()</pre></a></li>
<li class="method public "><a href="#insert" title="insert :: Creates an insert clause, and executes it"><span class="description">Creates an insert clause, and executes it</span><pre>insert()</pre></a></li> <li class="method public "><a href="#insert" title="insert :: Creates an insert clause, and executes it"><span class="description">Creates an insert clause, and executes it</span><pre>insert()</pre></a></li>
<li class="method public "><a href="#insert_batch" title="insert_batch :: Creates a batch insert clause, and executes it"><span class="description">Creates a batch insert clause, and executes it</span><pre>insert_batch()</pre></a></li>
<li class="method public "><a href="#join" title="join :: Creates a join phrase in a compiled query"><span class="description">Creates a join phrase in a compiled query</span><pre>join()</pre></a></li> <li class="method public "><a href="#join" title="join :: Creates a join phrase in a compiled query"><span class="description">Creates a join phrase in a compiled query</span><pre>join()</pre></a></li>
<li class="method public "><a href="#like" title="like :: Creates a Like clause in the sql statement"><span class="description">Creates a Like clause in the sql statement</span><pre>like()</pre></a></li> <li class="method public "><a href="#like" title="like :: Creates a Like clause in the sql statement"><span class="description">Creates a Like clause in the sql statement</span><pre>like()</pre></a></li>
<li class="method public "><a href="#limit" title="limit :: Set a limit on the current sql statement"><span class="description">Set a limit on the current sql statement</span><pre>limit()</pre></a></li> <li class="method public "><a href="#limit" title="limit :: Set a limit on the current sql statement"><span class="description">Set a limit on the current sql statement</span><pre>limit()</pre></a></li>
@ -428,6 +429,25 @@ execute current compiled query</h2>
<div class="subelement response"><code>mixed</code></div> <div class="subelement response"><code>mixed</code></div>
</div></div> </div></div>
</div> </div>
<a name="insert_batch" id="insert_batch"></a><div class="element clickable method public insert_batch" data-toggle="collapse" data-target=".insert_batch .collapse">
<h2>Creates a batch insert clause, and executes it</h2>
<pre>insert_batch(string $table, mixed $data) : mixed</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a name="join" id="join"></a><div class="element clickable method public join" data-toggle="collapse" data-target=".join .collapse"> <a name="join" id="join"></a><div class="element clickable method public join" data-toggle="collapse" data-target=".join .collapse">
<h2>Creates a join phrase in a compiled query</h2> <h2>Creates a join phrase in a compiled query</h2>
<pre>join(string $table, string $condition, string $type) : <a href="../classes/iQuery_Builder.html">\iQuery_Builder</a></pre> <pre>join(string $table, string $condition, string $type) : <a href="../classes/iQuery_Builder.html">\iQuery_Builder</a></pre>
@ -964,7 +984,7 @@ passed array with key / value pairs</h2>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -68,7 +68,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -237,7 +237,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -65,7 +65,7 @@
</script><div class="row"><footer class="span12"> </script><div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -110,7 +110,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -340,7 +340,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -68,7 +68,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -95,7 +95,7 @@
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -212,7 +212,7 @@ data-fetching methods</p>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -150,7 +150,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -362,7 +362,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12"> <div class="row"><footer class="span12">
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> 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.0.0a2</a> and<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-04-25T08:15:20-04:00.<br></footer></div> generated on 2013-05-01T15:58:51-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@ -161,7 +161,7 @@ class Firebird extends DB_PDO {
return TRUE; return TRUE;
} }
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -260,13 +260,13 @@ class Firebird extends DB_PDO {
* *
* @param string $sql * @param string $sql
* @param array $params * @param array $params
* @return FALSE * @return NULL
*/ */
public function prepare_query($sql, $params) public function prepare_query($sql, $params)
{ {
// You can't bind query statements before execution with // You can't bind query statements before execution with
// the firebird database // the firebird database
return FALSE; return NULL;
} }
} }
// End of firebird_driver.php // End of firebird_driver.php

View File

@ -78,11 +78,11 @@ class Firebird_Result extends PDOStatement {
* @param int $type * @param int $type
* @param mixed $maxlen * @param mixed $maxlen
* @param array $driverdata * @param array $driverdata
* @return FALSE * @return NULL
*/ */
public function bindColumn($column, &$param, $type=NULL, $maxlen=NULL, $driverdata=NULL) public function bindColumn($column, &$param, $type=NULL, $maxlen=NULL, $driverdata=NULL)
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -95,11 +95,11 @@ class Firebird_Result extends PDOStatement {
* @param int $data_type * @param int $data_type
* @param mixed $maxlen * @param mixed $maxlen
* @param array $driverdata * @param array $driverdata
* @return FALSE * @return NULL
*/ */
public function bindParam($parameter, &$variable, $data_type=NULL, $maxlen=NULL, $driverdata=NULL) public function bindParam($parameter, &$variable, $data_type=NULL, $maxlen=NULL, $driverdata=NULL)
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -110,11 +110,11 @@ class Firebird_Result extends PDOStatement {
* @param mixed $parameter * @param mixed $parameter
* @param mixed &$variable * @param mixed &$variable
* @param int $data_type * @param int $data_type
* @return FALSE * @return NULL
*/ */
public function bindValue($parameter, $variable, $data_type=NULL) public function bindValue($parameter, $variable, $data_type=NULL)
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -158,16 +158,16 @@ class Firebird_Result extends PDOStatement {
// If there is no result, continue // If there is no result, continue
if (empty($this->result)) if (empty($this->result))
{ {
return FALSE; return NULL;
} }
// Keep track of the current row being fetched // Keep track of the current row being fetched
++$this->row; ++$this->row;
// Return false if the next row doesn't exist // return NULL if the next row doesn't exist
if ( ! isset($this->result[$this->row])) if ( ! isset($this->result[$this->row]))
{ {
return FALSE; return NULL;
} }
switch($fetch_style) switch($fetch_style)

View File

@ -55,7 +55,7 @@ class Firebird_SQL implements iDB_SQL {
*/ */
public function random() public function random()
{ {
return FALSE; return NULL;
} }
@ -64,11 +64,11 @@ class Firebird_SQL implements iDB_SQL {
/** /**
* Returns sql to list other databases * Returns sql to list other databases
* *
* @return FALSE * @return NULL
*/ */
public function db_list() public function db_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@ -146,11 +146,11 @@ class MySQL_SQL implements iDB_SQL {
/** /**
* Return sql to list sequences * Return sql to list sequences
* *
* @return FALSE * @return NULL
*/ */
public function sequence_list() public function sequence_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@ -43,7 +43,7 @@ class ODBC_SQL implements iDB_SQL {
*/ */
public function random() public function random()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -51,11 +51,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* Returns sql to list other databases * Returns sql to list other databases
* *
* @return FALSE * @return NULL
*/ */
public function db_list() public function db_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -63,11 +63,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* Returns sql to list tables * Returns sql to list tables
* *
* @return FALSE * @return NULL
*/ */
public function table_list() public function table_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -75,11 +75,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* Returns sql to list system tables * Returns sql to list system tables
* *
* @return FALSE * @return NULL
*/ */
public function system_table_list() public function system_table_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -87,11 +87,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* Returns sql to list views * Returns sql to list views
* *
* @return FALSE * @return NULL
*/ */
public function view_list() public function view_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -99,11 +99,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* Returns sql to list triggers * Returns sql to list triggers
* *
* @return FALSE * @return NULL
*/ */
public function trigger_list() public function trigger_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -111,11 +111,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* Return sql to list functions * Return sql to list functions
* *
* @return FALSE * @return NULL
*/ */
public function function_list() public function function_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -123,11 +123,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* Return sql to list stored procedures * Return sql to list stored procedures
* *
* @return FALSE * @return NULL
*/ */
public function procedure_list() public function procedure_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -135,11 +135,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* Return sql to list sequences * Return sql to list sequences
* *
* @return FALSE * @return NULL
*/ */
public function sequence_list() public function sequence_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -147,11 +147,11 @@ class ODBC_SQL implements iDB_SQL {
/** /**
* SQL to show list of field types * SQL to show list of field types
* *
* @return FALSE * @return NULL
*/ */
public function type_list() public function type_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -160,11 +160,11 @@ class ODBC_SQL implements iDB_SQL {
* SQL to show infromation about columns in a table * SQL to show infromation about columns in a table
* *
* @param string $table * @param string $table
* @return FALSE * @return NULL
*/ */
public function column_list($table) public function column_list($table)
{ {
return FALSE; return NULL;
} }
} }

View File

@ -46,7 +46,7 @@ class ODBC_Util extends DB_Util {
public function create_table($name, $columns, array $constraints=array(), array $indexes=array()) public function create_table($name, $columns, array $constraints=array(), array $indexes=array())
{ {
//ODBC can't know how to create a table //ODBC can't know how to create a table
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@ -144,11 +144,11 @@ SQL;
/** /**
* Return sql to list functions * Return sql to list functions
* *
* @return FALSE * @return NULL
*/ */
public function function_list() public function function_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@ -56,11 +56,11 @@ class SQLite_SQL implements iDB_SQL {
/** /**
* Returns sql to list other databases * Returns sql to list other databases
* *
* @return FALSE * @return NULL
*/ */
public function db_list() public function db_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -89,7 +89,7 @@ SQL;
*/ */
public function system_table_list() public function system_table_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -111,11 +111,11 @@ SQL;
/** /**
* Returns sql to list triggers * Returns sql to list triggers
* *
* @return FALSE * @return NULL
*/ */
public function trigger_list() public function trigger_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -123,11 +123,11 @@ SQL;
/** /**
* Return sql to list functions * Return sql to list functions
* *
* @return FALSE * @return NULL
*/ */
public function function_list() public function function_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -135,11 +135,11 @@ SQL;
/** /**
* Return sql to list stored procedures * Return sql to list stored procedures
* *
* @return FALSE * @return NULL
*/ */
public function procedure_list() public function procedure_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -147,11 +147,11 @@ SQL;
/** /**
* Return sql to list sequences * Return sql to list sequences
* *
* @return FALSE * @return NULL
*/ */
public function sequence_list() public function sequence_list()
{ {
return FALSE; return NULL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@ -20,7 +20,7 @@ abstract class QBTest extends UnitTestCase {
public function __destruct() public function __destruct()
{ {
// echo '<pre>' . print_r($this->db->queries, TRUE) . '</pre>'; //echo '<pre>' . print_r($this->db->queries, TRUE) . '</pre>';
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -415,6 +415,32 @@ abstract class QBTest extends UnitTestCase {
$this->assertIsA($query, 'PDOStatement'); $this->assertIsA($query, 'PDOStatement');
} }
// --------------------------------------------------------------------------
public function TestLeftJoin()
{
if (empty($this->db)) return;
$query = $this->db->from('create_test ct')
->join('join cj', 'cj.id = ct.id', 'left')
->get();
$this->assertIsA($query, 'PDOStatement');
}
// --------------------------------------------------------------------------
public function TestInnerJoin()
{
if (empty($this->db)) return;
$query = $this->db->from('create_test ct')
->join('join cj', 'cj.id = ct.id', 'inner')
->get();
$this->assertIsA($query, 'PDOStatement');
}
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
// ! DB update tests // ! DB update tests
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -433,6 +459,35 @@ abstract class QBTest extends UnitTestCase {
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
public function TestInsertBatch()
{
if (empty($this->db)) return;
$insert_array = array(
array(
'id' => 6,
'key' => 2,
'val' => 3
),
array(
'id' => 5,
'key' => 6,
'val' => 7
),
array(
'id' => 8,
'key' => 1,
'val' => 2
)
);
$query = $this->db->insert_batch('test', $insert_array);
$this->assertIsA($query, 'PDOStatement');
}
// --------------------------------------------------------------------------
public function TestUpdate() public function TestUpdate()
{ {
if (empty($this->db)) return; if (empty($this->db)) return;

View File

@ -37,6 +37,35 @@ class FirebirdQBTest extends QBTest {
// echo '<hr /> Firebird Queries <hr />'; // echo '<hr /> Firebird Queries <hr />';
} }
// --------------------------------------------------------------------------
public function TestInsertBatch()
{
if (empty($this->db)) return;
$insert_array = array(
array(
'id' => 6,
'key' => 2,
'val' => 3
),
array(
'id' => 5,
'key' => 6,
'val' => 7
),
array(
'id' => 8,
'key' => 1,
'val' => 2
)
);
$query = $this->db->insert_batch('test', $insert_array);
$this->assertNull($query);
}
public function TestTypeList() public function TestTypeList()
{ {
$sql = $this->db->sql->type_list(); $sql = $this->db->sql->type_list();

Binary file not shown.