From c53024ae6af0c5cc18ea42153fe908168efdde85 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 6 Dec 2013 23:00:32 -0500 Subject: [PATCH] Fix some issues with the grouping commands, and greatly expand test coverage --- .gitignore | 6 +- .travis.yml | 7 +- classes/query_builder.php | 39 +- composer.json | 3 + docs/classes.svg | 341 +- docs/classes/BadConnectionException.html | 170 +- docs/classes/BadDBDriverException.html | 170 +- docs/classes/DB_PDO.html | 546 +- docs/classes/DB_SQL.html | 250 - docs/classes/DB_Util.html | 94 +- docs/classes/Firebird.html | 793 +- docs/classes/Firebird_Result.html | 335 +- docs/classes/Firebird_SQL.html | 131 +- docs/classes/Firebird_Util.html | 122 +- docs/classes/MySQL.html | 915 +-- docs/classes/MySQL_SQL.html | 131 +- docs/classes/MySQL_Util.html | 122 +- docs/classes/ODBC.html | 897 +-- docs/classes/ODBC_SQL.html | 131 +- docs/classes/ODBC_Util.html | 122 +- docs/classes/PgSQL.html | 915 +-- docs/classes/PgSQL_SQL.html | 131 +- docs/classes/PgSQL_Util.html | 122 +- docs/classes/Query_Builder.html | 716 +- docs/classes/Query_Builder_Base.html | 349 - docs/classes/Query_Parser.html | 90 +- docs/classes/SQLite.html | 900 +-- docs/classes/SQLite_SQL.html | 131 +- docs/classes/SQLite_Util.html | 122 +- docs/classes/iDB_PDO.html | 417 -- docs/classes/iDB_SQL.html | 135 +- docs/classes/iDB_Util.html | 172 - docs/classes/iPDO.html | 85 - docs/classes/iQuery_Builder.html | 468 +- docs/css/bootstrap.css | 5 + docs/css/bootstrap.min.css | 1 + docs/css/template.css | 43 +- docs/deprecated.html | 14 +- docs/errors.html | 162 +- docs/graph_class.html | 14 +- docs/js/template.js | 20 +- docs/markers.html | 20 +- docs/namespaces/default.html | 346 - docs/namespaces/global.html | 115 + docs/packages/.html | 74 - docs/packages/Default.html | 45 +- docs/packages/Query.Drivers.html | 57 +- docs/packages/Query.Query.html | 41 +- docs/packages/Query.html | 155 +- docs/structure.xml | 8593 +++++++++++----------- phpdoc.dist.xml | 4 + tests/core/db_qb_test.php | 236 +- tests/databases/firebird/firebird-qb.php | 1 + tests/databases/firebird/firebird.php | 1 + tests/db_files/FB_TEST_DB.FDB | Bin 802816 -> 802816 bytes tests/php_test.ini | 1 + tests/simpletest/autorun.php | 12 +- 57 files changed, 7039 insertions(+), 12999 deletions(-) delete mode 100644 docs/classes/DB_SQL.html delete mode 100644 docs/classes/Query_Builder_Base.html delete mode 100644 docs/classes/iDB_PDO.html delete mode 100644 docs/classes/iDB_Util.html delete mode 100644 docs/classes/iPDO.html delete mode 100644 docs/namespaces/default.html create mode 100644 docs/namespaces/global.html delete mode 100644 docs/packages/.html create mode 100644 tests/php_test.ini diff --git a/.gitignore b/.gitignore index f6e466d..17d72c0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,8 @@ index.html tests/db_files/* ._* tests/settings.json -.php_cs \ No newline at end of file +.php_cs +coverage/* +vendor/* +composer.lock +docs/phpdoc* \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index f7735a4..ffb9ad9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,15 @@ php: - 5.2 - 5.3 - 5.4 + - 5.5 before_script: - sh -c "psql -c 'DROP DATABASE IF EXISTS test;' -U postgres" - sh -c "psql -c 'create database test;' -U postgres" - sh -c "mysql -e 'create database IF NOT EXISTS test;'" + - phpenv config-add ./tests/php_test.ini -script: php ./tests/index.php \ No newline at end of file +script: php ./tests/index.php + +install: + - composer install --dev \ No newline at end of file diff --git a/classes/query_builder.php b/classes/query_builder.php index ee352fc..f07fd79 100644 --- a/classes/query_builder.php +++ b/classes/query_builder.php @@ -82,7 +82,7 @@ class Query_Builder implements iQuery_Builder { // 'conjunction' => ' AND ', // 'string' => 'k=?' // ) - protected $query_map; + protected $query_map = array(); // Map for having clause protected $having_map; @@ -523,11 +523,28 @@ class Query_Builder implements iQuery_Builder { // Simple key value, or an operator $item .= (count($f_array) === 1) ? '=?' : " {$f_array[1]} ?"; + + // Get the type of the first item in the query map + $first_item = end($this->query_map); + + // Determine the correct conjunction + if (empty($this->query_map)) + { + $conj = ' WHERE '; + } + elseif ($first_item['type'] === 'group_start') + { + $conj = ''; + } + else + { + $conj = " {$conj} "; + } // Put in the query map for select statements $this->query_map[] = array( 'type' => 'where', - 'conjunction' => ( ! empty($this->query_map)) ? " {$conj} " : ' WHERE ', + 'conjunction' => $conj, 'string' => $item ); } @@ -542,8 +559,8 @@ class Query_Builder implements iQuery_Builder { * * @param mixed $key * @param mixed $val - * @param string - * @param string + * @param string $in - The (not) in fragment + * @param string $conj - The where in conjunction * @return $this */ protected function _where_in($key, $val=array(), $in='IN', $conj='AND') @@ -749,7 +766,8 @@ class Query_Builder implements iQuery_Builder { { if ( ! is_scalar($field)) { - $this->group_array = $this->db->quote_ident($field); + $new_group_array = array_map(array($this->db, 'quote_ident'), $field); + $this->group_array = array_merge($this->group_array, $new_group_array); } else { @@ -828,8 +846,8 @@ class Query_Builder implements iQuery_Builder { { $this->query_map[] = array( 'type' => 'group_start', - 'conjunction' => '', - 'string' => ' (' + 'conjunction' => (empty($this->query_map)) ? ' WHERE ' : ' ', + 'string' => '(' ); return $this; @@ -885,7 +903,7 @@ class Query_Builder implements iQuery_Builder { $this->query_map[] = array( 'type' => 'group_end', 'conjunction' => '', - 'string' => ' ) ' + 'string' => ')' ); return $this; @@ -1150,7 +1168,7 @@ class Query_Builder implements iQuery_Builder { * * @param string $type * @param string $table - * @param bool + * @param bool $reset * @resturn string */ protected function _get_compile($type, $table, $reset) @@ -1192,6 +1210,7 @@ class Query_Builder implements iQuery_Builder { // Set empty arrays $this->values = array(); + $this->query_map = array(); // Set select string as an empty string, for proper handling // of the 'distinct' keyword @@ -1331,7 +1350,7 @@ class Query_Builder implements iQuery_Builder { // Set the where clause if ( ! empty($this->query_map)) { - foreach($this->query_map as $q) + foreach($this->query_map as $k => $q) { $sql .= $q['conjunction'] . $q['string']; } diff --git a/composer.json b/composer.json index 0ecf991..c2fabf0 100644 --- a/composer.json +++ b/composer.json @@ -19,6 +19,9 @@ "homepage": "https://timshomepage.net", "role": "Developer" }], + "require-dev": { + "phpunit/php-code-coverage": ">=1.2.10,<1.3.0", + }, "require": { "php": ">=5.2.0" }, diff --git a/docs/classes.svg b/docs/classes.svg index c6e864a..7bb17ec 100644 --- a/docs/classes.svg +++ b/docs/classes.svg @@ -4,35 +4,32 @@ - - + + G - -cluster_default - - - - - - - - + +cluster_Global + + + + + + + + +\ \\Query_Parser - - -Query_Parser - + +Query_Parser \\DB_PDO - - -«abstract» -DB_PDO - + +«abstract» +DB_PDO \\PDO @@ -41,273 +38,229 @@ \\DB_PDO->\\PDO - - + + \\Query_Builder - - -Query_Builder - + +Query_Builder -\\iQuery_Builder - - -iQuery_Builder - +\\iQuery_Builder + +iQuery_Builder -\\Query_Builder->\\iQuery_Builder - - - - -\\iDB_SQL - - -iDB_SQL - +\\Query_Builder->\\iQuery_Builder + + -\\DB_Util - - -«abstract» -DB_Util - +\\DB_Util + +«abstract» +DB_Util -\\BadDBDriverException - - -BadDBDriverException - +\\BadDBDriverException + +BadDBDriverException -\\InvalidArgumentException +\\InvalidArgumentException \InvalidArgumentException -\\BadDBDriverException->\\InvalidArgumentException - +\\BadDBDriverException->\\InvalidArgumentException + -\\BadConnectionException - - -BadConnectionException - +\\BadConnectionException + +BadConnectionException -\\UnexpectedValueException +\\UnexpectedValueException \UnexpectedValueException -\\BadConnectionException->\\UnexpectedValueException - +\\BadConnectionException->\\UnexpectedValueException + -\\PgSQL_SQL - - -PgSQL_SQL - +\\PgSQL_SQL + +PgSQL_SQL + + +\\iDB_SQL + +iDB_SQL -\\PgSQL_SQL->\\iDB_SQL - - +\\PgSQL_SQL->\\iDB_SQL + + -\\PgSQL_Util - - -PgSQL_Util - +\\PgSQL_Util + +PgSQL_Util -\\PgSQL_Util->\\DB_Util - - +\\PgSQL_Util->\\DB_Util + + -\\PgSQL - - -PgSQL - +\\PgSQL + +PgSQL -\\PgSQL->\\DB_PDO - - +\\PgSQL->\\DB_PDO + + -\\ODBC_Util - - -ODBC_Util - +\\ODBC_Util + +ODBC_Util -\\ODBC_Util->\\DB_Util - - +\\ODBC_Util->\\DB_Util + + -\\ODBC_SQL - - -ODBC_SQL - +\\ODBC_SQL + +ODBC_SQL -\\ODBC_SQL->\\iDB_SQL - - +\\ODBC_SQL->\\iDB_SQL + + -\\ODBC - - -ODBC - +\\ODBC + +ODBC -\\ODBC->\\DB_PDO - - +\\ODBC->\\DB_PDO + + -\\MySQL_Util - - -MySQL_Util - +\\MySQL_Util + +MySQL_Util -\\MySQL_Util->\\DB_Util - - +\\MySQL_Util->\\DB_Util + + -\\MySQL - - -MySQL - +\\MySQL + +MySQL -\\MySQL->\\DB_PDO - - +\\MySQL->\\DB_PDO + + -\\MySQL_SQL - - -MySQL_SQL - +\\MySQL_SQL + +MySQL_SQL -\\MySQL_SQL->\\iDB_SQL - - +\\MySQL_SQL->\\iDB_SQL + + -\\SQLite_Util - - -SQLite_Util - +\\SQLite_Util + +SQLite_Util -\\SQLite_Util->\\DB_Util - - +\\SQLite_Util->\\DB_Util + + -\\SQLite - - -SQLite - +\\SQLite + +SQLite -\\SQLite->\\DB_PDO - - +\\SQLite->\\DB_PDO + + -\\SQLite_SQL - - -SQLite_SQL - +\\SQLite_SQL + +SQLite_SQL -\\SQLite_SQL->\\iDB_SQL - - +\\SQLite_SQL->\\iDB_SQL + + -\\Firebird_SQL - - -Firebird_SQL - +\\Firebird_SQL + +Firebird_SQL -\\Firebird_SQL->\\iDB_SQL - - +\\Firebird_SQL->\\iDB_SQL + + -\\Firebird_Result - - -Firebird_Result - +\\Firebird_Result + +Firebird_Result -\\PDOStatement +\\PDOStatement \PDOStatement -\\Firebird_Result->\\PDOStatement - - +\\Firebird_Result->\\PDOStatement + + -\\Firebird - - -Firebird - +\\Firebird + +Firebird -\\Firebird->\\DB_PDO - - +\\Firebird->\\DB_PDO + + -\\Firebird_Util - - -Firebird_Util - +\\Firebird_Util + +Firebird_Util -\\Firebird_Util->\\DB_Util - - +\\Firebird_Util->\\DB_Util + + diff --git a/docs/classes/BadConnectionException.html b/docs/classes/BadConnectionException.html index 1fc90b7..3f640f2 100644 --- a/docs/classes/BadConnectionException.html +++ b/docs/classes/BadConnectionException.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,171 +52,40 @@
- +
-
+ +

Generic exception for bad connection strings

-

+
- +
packageQueryQuery
subpackage Query
-

- Methods

-
-

__construct() -

-
__construct() 
-
-
-

- - - -
inherited_fromException::__construct()
-
-
-
-

__toString() -

-
__toString() 
-
-
-

- - - -
inherited_fromException::__toString()
-
-
-
-

getCode() -

-
getCode() 
-
-
-

- - - -
inherited_fromException::getCode()
-
-
-
-

getFile() -

-
getFile() 
-
-
-

- - - -
inherited_fromException::getFile()
-
-
-
-

getLine() -

-
getLine() 
-
-
-

- - - -
inherited_fromException::getLine()
-
-
-
-

getMessage() -

-
getMessage() 
-
-
-

- - - -
inherited_fromException::getMessage()
-
-
-
-

getPrevious() -

-
getPrevious() 
-
-
-

- - - -
inherited_fromException::getPrevious()
-
-
-
-

getTrace() -

-
getTrace() 
-
-
-

- - - -
inherited_fromException::getTrace()
-
-
-
-

getTraceAsString() -

-
getTraceAsString() 
-
-
-

- - - -
inherited_fromException::getTraceAsString()
-
-
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/BadDBDriverException.html b/docs/classes/BadDBDriverException.html index 99bdbe1..84f8799 100644 --- a/docs/classes/BadDBDriverException.html +++ b/docs/classes/BadDBDriverException.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,171 +52,40 @@
- +
-
+ +

Generic exception for bad drivers

-

+
- +
packageQueryQuery
subpackage Query
-

- Methods

-
-

__construct() -

-
__construct() 
-
-
-

- - - -
inherited_fromException::__construct()
-
-
-
-

__toString() -

-
__toString() 
-
-
-

- - - -
inherited_fromException::__toString()
-
-
-
-

getCode() -

-
getCode() 
-
-
-

- - - -
inherited_fromException::getCode()
-
-
-
-

getFile() -

-
getFile() 
-
-
-

- - - -
inherited_fromException::getFile()
-
-
-
-

getLine() -

-
getLine() 
-
-
-

- - - -
inherited_fromException::getLine()
-
-
-
-

getMessage() -

-
getMessage() 
-
-
-

- - - -
inherited_fromException::getMessage()
-
-
-
-

getPrevious() -

-
getPrevious() 
-
-
-

- - - -
inherited_fromException::getPrevious()
-
-
-
-

getTrace() -

-
getTrace() 
-
-
-

- - - -
inherited_fromException::getTrace()
-
-
-
-

getTraceAsString() -

-
getTraceAsString() 
-
-
-

- - - -
inherited_fromException::getTraceAsString()
-
-
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/DB_PDO.html b/docs/classes/DB_PDO.html index f22b623..60e3150 100644 --- a/docs/classes/DB_PDO.html +++ b/docs/classes/DB_PDO.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,90 +54,78 @@
-
+ +

Base Database class

-

Extends PDO to simplify cross-database issues

+
Extends PDO to simplify cross-database issues
- + @@ -149,12 +134,12 @@ the connection/database
get_system_tables()
packageQueryQuery
subpackage

 Methods

-
+

PDO constructor wrapper

__construct(string $dsn, string $username, string $password, array $driver_options) 
-
-

+
+

Parameters

$dsn

@@ -174,79 +159,27 @@ the connection/database
get_system_tables()
-
-

__sleep() -

-
__sleep() 
-
-
-

- - - -
inherited_fromPDO::__sleep()
-
-
-
-

__wakeup() -

-
__wakeup() 
-
-
-

- - - -
inherited_fromPDO::__wakeup()
-
-
-
+

Returns number of rows affected by an INSERT, UPDATE, DELETE type query

-
affected_rows(\PDOStatement $statement) : int
+
affected_rows(\PDOStatement $statement) : int
-
-

+
+

Parameters

Returns

int
-
-

beginTransaction() -

-
beginTransaction() 
-
-
-

- - - -
inherited_fromPDO::beginTransaction()
-
-
-
-

commit() -

-
commit() 
-
-
-

- - - -
inherited_fromPDO::commit()
-
-
-
+

Method to simplify retreiving db results for meta-data queries

driver_query(string $sql, bool $filtered_index) : mixed
-
-

+
+

Parameters

$sql

@@ -260,13 +193,13 @@ the connection/database
get_system_tables()
mixed
-
+

Deletes all the rows from a table. Does the same as the truncate method if the database does not support 'TRUNCATE';

empty_table(string $table) : mixed
-
-

+
+

Parameters

$table

@@ -276,77 +209,12 @@ method if the database does not support 'TRUNCATE';
mixed
-
-

errorCode() -

-
errorCode() 
-
-
-

- - - -
inherited_fromPDO::errorCode()
-
-
-
-

errorInfo() -

-
errorInfo() 
-
-
-

- - - -
inherited_fromPDO::errorInfo()
-
-
-
-

exec() -

-
exec() 
-
-
-

- - - -
inherited_fromPDO::exec()
-
-
-
-

getAttribute() -

-
getAttribute() 
-
-
-

- - - -
inherited_fromPDO::getAttribute()
-
-
-
-

getAvailableDrivers() -

-
getAvailableDrivers() 
-
-
-

- - - -
inherited_fromPDO::getAvailableDrivers()
-
-
-
+

Retrieve column information for the current database table

get_columns(string $table) : array
-
-

+
+

Parameters

$table

@@ -356,151 +224,138 @@ method if the database does not support 'TRUNCATE';
array
-
+

Return list of dbs for the current connection, if possible

get_dbs() : array
-
-

+
+

Returns

array
-
+

Return list of function for the current database

get_functions() : array
-
-

+
+

Returns

array
-
+

Return the last error for the current database connection

get_last_error() : string
-
-

+
+

Returns

string
-
+

Return list of stored procedures for the current database

get_procedures() : array
-
-

+
+

Returns

array
-
+

Retreives the data from a select query

-
get_query_data(\PDOStatement $statement) : array
+
get_query_data(\PDOStatement $statement) : array
-
-

+
+

Parameters

Returns

array
-
+

Return schemas for databases that list them

get_schemas() : array
-
-

+
+

Returns

array
-
+

Return list of sequences for the current database, if they exist

get_sequences() : array
-
-

+
+

Returns

array
-
+

Retreives an array of non-user-created tables for the connection/database

get_system_tables() : array
-
-

+
+

Returns

array
-
+

Return list of tables for the current database

get_tables() : array
-
-

+
+

Returns

array
-
+

Return list of triggers for the current database

get_triggers() : array
-
-

+
+

Returns

array
-
+

Retrieve list of data types for the database

get_types() : array
-
-

+
+

Returns

array
-
+

Return list of views for the current database

get_views() : array
-
-

+
+

Returns

array
-
-

inTransaction() -

-
inTransaction() 
-
-
-

- - - -
inherited_fromPDO::inTransaction()
-
-
-
+

Create sql for batch insert

insert_batch(string $table, array $data) : string
-
-

+
+

Parameters

$table

@@ -514,52 +369,26 @@ the connection/database
string
-
-

lastInsertId() -

-
lastInsertId() 
-
-
-

- - - -
inherited_fromPDO::lastInsertId()
-
-
-
+

Return the number of rows returned for a SELECT query

num_rows() : int
-
-

+
+
- +
see\http://us3.php.net/manual/en/pdostatement.rowcount.php#87110

Returns

int
-
-

prepare() -

-
prepare() 
-
-
-

- - - -
inherited_fromPDO::prepare()
-
-
-
+

Create and execute a prepared statement with the provided parameters

-
prepare_execute(string $sql, array $params) : \PDOStatement
+
prepare_execute(string $sql, array $params) : \PDOStatement
-
-

+
+

Parameters

$sql

@@ -570,15 +399,15 @@ the connection/database array

Returns

- +
-
+

Simplifies prepared statements for database queries

prepare_query(string $sql, array $data) : mixed
-
-

+
+

Parameters

$sql

@@ -593,38 +422,12 @@ the connection/database mixedPDOStatement / FALSE
-
-

query() -

-
query() 
-
-
-

- - - -
inherited_fromPDO::query()
-
-
-
-

quote() -

-
quote() 
-
-
-

- - - -
inherited_fromPDO::quote()
-
-
-
+

Surrounds the string with the databases identifier escape characters

quote_ident(mixed $ident) : string
-
-

+
+

Parameters

$ident

@@ -634,12 +437,12 @@ the connection/database
string
-
+

Quote database table name, and set prefix

quote_table(string $table) : string
-
-

+
+

Parameters

$table

@@ -649,38 +452,12 @@ the connection/database
string
-
-

rollBack() -

-
rollBack() 
-
-
-

- - - -
inherited_fromPDO::rollBack()
-
-
-
-

setAttribute() -

-
setAttribute() 
-
-
-

- - - -
inherited_fromPDO::setAttribute()
-
-
-
+

Empty the passed table

truncate(string $table) : void
-
-

+
+

Parameters

$table

@@ -688,12 +465,12 @@ the connection/database
-
+

Sets the table prefix on the passed string

_prefix(string $str) : string
-
-

+
+

Parameters

$str

@@ -703,12 +480,12 @@ the connection/database
string
-
+

Helper method for quote_ident

_quote(mixed $str) : mixed
-
-

+
+

Parameters

$str

@@ -720,41 +497,41 @@ the connection/database

 Properties

- 
+ 

$last_query

$last_query 
-

+
- 
+ 

$sql

$sql 
-

+
- 
+ 

$table_prefix

$table_prefix 
-

+
- 
+ 

$util

$util 
-

+
- 
+ 

$escape_char

$escape_char 
-

+
- 
+ 

$statement

$statement 
-

+
@@ -762,8 +539,9 @@ the connection/database
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/DB_SQL.html b/docs/classes/DB_SQL.html deleted file mode 100644 index a5352e4..0000000 --- a/docs/classes/DB_SQL.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - -Query » \DB_SQL - - - - - - - - - - -
- -
- -
-
-

Abstract parent for database manipulation subclasses

-
-

- - - - - - - - - -
packageQuery
subpackageQuery
-

- Methods

-
-

Get information about the columns in the -specified table

-
column_list($table) : string
-
-
-

-

Parameters

-
-

$table

-

string

-

Returns

-
string
-
-
-
-

Returns sql to list other databases

-
db_list() : string
-
-
-

-

Returns

-
string
-
-
-
-

Return sql to list functions

-
function_list() : FALSE
-
-
-

-

Returns

-
FALSE
-
-
-
-

Get database specific sql for limit clause

-
limit(string $sql, int $limit, int $offset) : string
-
-
-

- - - -
abstract
-

Parameters

-
-

$sql

-string -
-
-

$limit

-int -
-
-

$offset

-int -
-

Returns

-
string
-
-
-
-

Return sql to list stored procedures

-
procedure_list() : string
-
-
-

-

Returns

-
string
-
-
-
-

Get the sql for random ordering

-
random() : string
-
-
-

- - - -
abstract
-

Returns

-
string
-
-
-
-

Return sql to list sequences

-
sequence_list() : string
-
-
-

-

Returns

-
string
-
-
-
-

Returns sql to list system tables

-
system_table_list() : string
-
-
-

-

Returns

-
string
-
-
-
-

Returns sql to list tables

-
table_list() : string
-
-
-

-

Returns

-
string
-
-
-
-

Returns sql to list triggers

-
trigger_list() : string
-
-
-

-

Returns

-
string
-
-
-
-

Return sql to list database field types

-
type_list() : mixed
-
-
-

-

Returns

-
mixed
-
-
-
-

Returns sql to list views

-
view_list() : string
-
-
-

-

Returns

-
string
-
-
-
-
-
-
-
-
- - diff --git a/docs/classes/DB_Util.html b/docs/classes/DB_Util.html index 952a6ac..758bc25 100644 --- a/docs/classes/DB_Util.html +++ b/docs/classes/DB_Util.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,28 +54,42 @@
-
+ +

Abstract class defining database / table creation methods

-

+
- + @@ -87,12 +98,12 @@
packageQueryQuery
subpackage

 Methods

-
+

Enable calling driver methods

__call(string $method, array $args) 
-
-

+
+

Parameters

$method

@@ -104,12 +115,12 @@
-
+

Save a reference to the connection object for later use

__construct(object $conn) 
-
-

+
+

Parameters

$conn

@@ -117,12 +128,12 @@
-
+

Return an SQL file with the database data as insert statements

backup_data() : string
-
-

+
+
@@ -131,12 +142,12 @@
string
-
+

Return an SQL file with the database table structure

backup_structure() : string
-
-

+
+
abstract
@@ -145,12 +156,12 @@
string
-
+

Get database-specific sql to create a new table

create_table(string $name, array $columns, array $constraints, array $indexes) : string
-
-

+
+
abstract
@@ -176,12 +187,12 @@
string
-
+

Get database-specific sql to drop a table

delete_table(string $name) : string
-
-

+
+
abstract
@@ -197,11 +208,11 @@

 Properties

- 
+ 

Reference to the current connection object

$conn 
-

+
@@ -209,8 +220,9 @@
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/Firebird.html b/docs/classes/Firebird.html index 95ad9bc..8c5a48f 100644 --- a/docs/classes/Firebird.html +++ b/docs/classes/Firebird.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,87 +54,55 @@
-
+ +

Firebird Database class

-

PDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.

+
PDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.
abstract
- + @@ -146,12 +111,12 @@ the last query executed
$statement_link
packageQueryQuery
subpackage

 Methods

-
+

Open the link to the database

__construct(string $dbpath, string $user, string $pass) 
-
-

+
+

Parameters

$dbpath

@@ -167,421 +132,52 @@ the last query executed
$statement_link
-
-

__sleep() -

-
__sleep() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__sleep()
inherited_from\DB_PDO::__sleep()
-
-
-
-

__wakeup() -

-
__wakeup() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__wakeup()
inherited_from\DB_PDO::__wakeup()
-
-
-
-

Returns number of rows affected by an INSERT, UPDATE, DELETE type query

-
affected_rows(\PDOStatement $statement) : int
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::affected_rows()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
int
-
-
-
+

Start a database transaction

beginTransaction() : bool
-
-

+
+

Returns

bool
-
+

Commit a database transaction

commit() : bool
-
-

+
+

Returns

bool
-
-

Method to simplify retreiving db results for meta-data queries

-
driver_query(string $sql, bool $filtered_index) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::driver_query()
-

Parameters

-
-

$sql

-string -
-
-

$filtered_index

-bool -
-

Returns

-
mixed
-
-
-
-

Deletes all the rows from a table. Does the same as the truncate -method if the database does not support 'TRUNCATE';

-
empty_table(string $table) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::empty_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
mixed
-
-
-
+

Method to emulate PDO->errorCode

errorCode() : array
-
-

+
+

Returns

array
-
+

Method to emulate PDO->errorInfo / PDOStatement->errorInfo

errorInfo() : array
-
-

+
+

Returns

array
-
-

exec() -

-
exec() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::exec()
inherited_from\DB_PDO::exec()
-
-
-
-

getAttribute() -

-
getAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAttribute()
inherited_from\DB_PDO::getAttribute()
-
-
-
-

getAvailableDrivers() -

-
getAvailableDrivers() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAvailableDrivers()
inherited_from\DB_PDO::getAvailableDrivers()
-
-
-
-

Retrieve column information for the current database table

-
get_columns(string $table) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_columns()
-

Parameters

-
-

$table

-string -
-

Returns

-
array
-
-
-
-

Return list of dbs for the current connection, if possible

-
get_dbs() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_dbs()
-

Returns

-
array
-
-
-
-

Return list of function for the current database

-
get_functions() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_functions()
-

Returns

-
array
-
-
-
-

Return the last error for the current database connection

-
get_last_error() : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_last_error()
-

Returns

-
string
-
-
-
-

Return list of stored procedures for the current database

-
get_procedures() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_procedures()
-

Returns

-
array
-
-
-
-

Retreives the data from a select query

-
get_query_data(\PDOStatement $statement) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_query_data()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
array
-
-
-
-

Return schemas for databases that list them

-
get_schemas() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_schemas()
-

Returns

-
array
-
-
-
-

Return list of sequences for the current database, if they exist

-
get_sequences() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_sequences()
-

Returns

-
array
-
-
-
-

Retreives an array of non-user-created tables for -the connection/database

-
get_system_tables() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_system_tables()
-

Returns

-
array
-
-
-
-

Return list of tables for the current database

-
get_tables() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_tables()
-

Returns

-
array
-
-
-
-

Return list of triggers for the current database

-
get_triggers() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_triggers()
-

Returns

-
array
-
-
-
-

Retrieve list of data types for the database

-
get_types() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_types()
-

Returns

-
array
-
-
-
-

Return list of views for the current database

-
get_views() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_views()
-

Returns

-
array
-
-
-
-

inTransaction() -

-
inTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::inTransaction()
inherited_from\DB_PDO::inTransaction()
-
-
-
+

Create sql for batch insert

insert_batch(string $table, array $data) : string
-
-

+
+

Parameters

$table

@@ -595,51 +191,12 @@ the connection/database
string
-
-

lastInsertId() -

-
lastInsertId() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::lastInsertId()
inherited_from\DB_PDO::lastInsertId()
-
-
-
-

Return the number of rows returned for a SELECT query

-
num_rows() : int
-
Inherited
-
-

- - - - - - - - - -
see\http://us3.php.net/manual/en/pdostatement.rowcount.php#87110
inherited_from\DB_PDO::num_rows()
-

Returns

-
int
-
-
-
+

Emulate PDO prepare

-
prepare(string $query, array $options) : \Firebird
+
prepare(string $query, array $options) : \Firebird
-
-

+
+
@@ -654,15 +211,15 @@ the connection/databasearray

Returns

- +
\Firebird
-
+

Prepare and execute a query

prepare_execute(string $sql, array $args) : resource
-
-

+
+

Parameters

$sql

@@ -676,12 +233,12 @@ the connection/database
resource
-
+

Bind a prepared query with arguments for executing

prepare_query(string $sql, array $params) : NULL
-
-

+
+

Parameters

$sql

@@ -695,12 +252,12 @@ the connection/database
NULL
-
+

Wrapper public function to better match PDO

-
query(string $sql) : \Firebird
+
query(string $sql) : \Firebird
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -711,15 +268,15 @@ the connection/databasestring

Returns

- +
\Firebird
-
+

Method to emulate PDO->quote

quote(string $str, int $param_type) : string
-
-

+
+

Parameters

$str

@@ -733,79 +290,22 @@ the connection/database
string
-
-

Surrounds the string with the databases identifier escape characters

-
quote_ident(mixed $ident) : string
-
Inherited
-
-

-
fluent This method is part of a fluent interface and will return the same instance
- - -
inherited_from\DB_PDO::quote_ident()
-

Parameters

-
-

$ident

-mixed -
-

Returns

-
string
-
-
-
-

Quote database table name, and set prefix

-
quote_table(string $table) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
string
-
-
-
+

Rollback a transaction

rollBack() : bool
-
-

+
+

Returns

bool
-
-

setAttribute() -

-
setAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::setAttribute()
inherited_from\DB_PDO::setAttribute()
-
-
-
+

Empty a database table

-
truncate(string $table) : void
+
truncate(string $table) 
-
-

+
+

Parameters

$table

@@ -813,130 +313,32 @@ the connection/database
-
-

Sets the table prefix on the passed string

-
_prefix(string $str) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_prefix()
-

Parameters

-
-

$str

-string -
-

Returns

-
string
-
-
-
-

Helper method for quote_ident

-
_quote(mixed $str) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_quote()
-

Parameters

-
-

$str

-mixed -
-

Returns

-
mixed
-
-

 Properties

- 
-

$last_query

-
$last_query 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$last_query
-
-
- 
-

$sql

-
$sql 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$sql
-
-
- 
-

$table_prefix

-
$table_prefix 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$table_prefix
-
-
- 
-

$util

-
$util 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$util
-
-
- 
+ 

Reference to the connection resource

$conn : resource
-

+
- 
-

$escape_char

-
$escape_char 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$escape_char
-
-
- 
+ 

Reference to the last query executed

$statement : object
-

+
-  @@ -944,8 +346,9 @@ the last query executed
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:35-05:00.
diff --git a/docs/classes/Firebird_Result.html b/docs/classes/Firebird_Result.html index 2265ca8..55f8f15 100644 --- a/docs/classes/Firebird_Result.html +++ b/docs/classes/Firebird_Result.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,59 +54,55 @@
-
+ +

Firebird result class to emulate PDOStatement Class - only implements data-fetching methods

-

+
- + @@ -118,13 +111,13 @@ data-fetching methods

packageQueryQuery
subpackage

 Methods

-
+

Create the object by passing the resource for the query

__construct(resource $link) 
-
-

+
+

Parameters

$link

@@ -132,47 +125,18 @@ the query
-
-

__sleep() -

-
__sleep() 
-
-
-

- - - -
inherited_fromPDOStatement::__sleep()
-
-
-
-

__wakeup() -

-
__wakeup() 
-
-
-

- - - -
inherited_fromPDOStatement::__wakeup()
-
-
-
+

Invalidate method for data consistency

-
bindColumn(mixed $column, mixed $param, int $type, mixed $maxlen, array $driverdata) : NULL
+
bindColumn(mixed $column, $param, int $type, mixed $maxlen, array $driverdata) : NULL
-
-

+
+

Parameters

$column

mixed
-
-

$param

-mixed

&$param

-
+

$param

$type

int @@ -189,21 +153,18 @@ the query
NULL
-
+

Invalidate method for data consistency

-
bindParam(mixed $parameter, mixed $variable, int $data_type, mixed $maxlen, array $driverdata) : NULL
+
bindParam(mixed $parameter, $variable, int $data_type, mixed $maxlen, array $driverdata) : NULL
-
-

+
+

Parameters

$parameter

mixed
-
-

$variable

-mixed

&$variable

-
+

$variable

$data_type

int @@ -220,21 +181,18 @@ the query
NULL
-
+

Invalidate method for data consistency

-
bindValue(mixed $parameter, mixed $variable, int $data_type) : NULL
+
bindValue(mixed $parameter, $variable, int $data_type) : NULL
-
-

+
+

Parameters

$parameter

mixed
-
-

$variable

-mixed

&$variable

-
+

$variable

$data_type

int @@ -243,71 +201,32 @@ the query
NULL
-
-

closeCursor() -

-
closeCursor() 
-
-
-

- - - -
inherited_fromPDOStatement::closeCursor()
-
-
-
-

columnCount() -

-
columnCount() 
-
-
-

- - - -
inherited_fromPDOStatement::columnCount()
-
-
-
-

debugDumpParams() -

-
debugDumpParams() 
-
-
-

- - - -
inherited_fromPDOStatement::debugDumpParams()
-
-
-
+

Method to emulate PDOStatement->errorCode

errorCode() : string
-
-

+
+

Returns

string
-
+

Method to emulate PDO->errorInfo / PDOStatement->errorInfo

errorInfo() : array
-
-

+
+

Returns

array
-
+

Run a prepared statement query

execute(array $args) : bool
-
-

+
+

Parameters

$args

@@ -317,12 +236,12 @@ the query
bool
-
+

Emulate PDO fetch public function

fetch(int $fetch_style, mixed $statement, mixed $offset) : mixed
-
-

+
+

Parameters

$fetch_style

@@ -340,12 +259,12 @@ the query
mixed
-
+

Emulate PDO fetchAll public function

fetchAll(int $fetch_style, mixed $statement, mixed $ctor_args) : mixed
-
-

+
+

Parameters

$fetch_style

@@ -363,12 +282,12 @@ the query
mixed
-
+

Emulate PDOStatement::fetchColumn

fetchColumn(int $column_num) : mixed
-
-

+
+

Parameters

$column_num

@@ -378,12 +297,12 @@ the query
mixed
-
+

Emulate PDOStatement::fetchObject, but only for the default use

-
fetchObject(string $class_name, array $ctor_args) : \stdClass
+
fetchObject(string $class_name, array $ctor_args) : \stdClass
-
-

+
+

Parameters

$class_name

@@ -394,109 +313,44 @@ the query array

Returns

- +
-
-

getAttribute() -

-
getAttribute() 
-
-
-

- - - -
inherited_fromPDOStatement::getAttribute()
-
-
-
-

getColumnMeta() -

-
getColumnMeta() 
-
-
-

- - - -
inherited_fromPDOStatement::getColumnMeta()
-
-
-
-

nextRowset() -

-
nextRowset() 
-
-
-

- - - -
inherited_fromPDOStatement::nextRowset()
-
-
-
+

Return the number of rows affected by the previous query

rowCount() : int
-
-

+
+

Returns

int
-
-

setAttribute() -

-
setAttribute() 
-
-
-

- - - -
inherited_fromPDOStatement::setAttribute()
-
-
-
-

setFetchMode() -

-
setFetchMode() 
-
-
-

- - - -
inherited_fromPDOStatement::setFetchMode()
-
-

 Properties

- 
+ 

Data pulled from query

$result 
-
-

+
+
- +
param<p>mixed</p>
- 
+ 

Current row in result array

$row : int
-

+
- 
+ 

Reference to fbird resource

$statement : resource
-

+
@@ -504,8 +358,9 @@ the query
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:35-05:00.
diff --git a/docs/classes/Firebird_SQL.html b/docs/classes/Firebird_SQL.html index 1588d8f..8f68d70 100644 --- a/docs/classes/Firebird_SQL.html +++ b/docs/classes/Firebird_SQL.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,32 +52,41 @@
-
-
+ +

Firebird Specific SQL

-

+
- + @@ -89,12 +95,12 @@
packageQueryQuery
subpackage

 Methods

-
+

Return sql to list columns of the specified table

column_list(string $table) : string
-
-

+
+

Parameters

$table

@@ -104,32 +110,32 @@
string
-
+

Returns sql to list other databases

db_list() : NULL
-
-

+
+

Returns

NULL
-
+

Return sql to list functions

function_list() : string
-
-

+
+

Returns

string
-
+

Limit clause

limit(string $sql, int $limit, int $offset) : string
-
-

+
+

Parameters

$sql

@@ -147,82 +153,82 @@
string
-
+

Return sql to list stored procedures

procedure_list() : string
-
-

+
+

Returns

string
-
+

Random ordering keyword

random() : string
-
-

+
+

Returns

string
-
+

Return sql to list sequences

sequence_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list system tables

system_table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list tables

table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list triggers

trigger_list() : string
-
-

+
+

Returns

string
-
+

SQL to show list of field types

type_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list views

view_list() : string
-
-

+
+

Returns

string
@@ -233,8 +239,9 @@
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:35-05:00.
diff --git a/docs/classes/Firebird_Util.html b/docs/classes/Firebird_Util.html index bd77804..2d73d26 100644 --- a/docs/classes/Firebird_Util.html +++ b/docs/classes/Firebird_Util.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,30 +52,34 @@
-
-
+ +

Firebird-specific backup, import and creation methods

-

+
- + @@ -87,46 +88,22 @@
packageQueryQuery
subpackage

 Methods

-
-

Enable calling driver methods

-
__call(string $method, array $args) 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::__call()
-

Parameters

-
-

$method

-string -
-
-

$args

-array -
-
-
-
+

Save a reference to the current connection object

-
__construct(object $conn) : void
+
__construct($conn) : void
-
-

+
+

Parameters

-
-

$conn

-object

&$conn

-
+

$conn

-
+

Create an SQL backup file for the current database's data

backup_data(array $exclude, bool $system_tables) : string
-
-

+
+

Parameters

$exclude

@@ -140,22 +117,22 @@
string
-
+

Create an SQL backup file for the current database's structure

backup_structure() : string
-
-

+
+

Returns

string
-
+

Convienience public function to generate sql for creating a db table

create_table(string $name, array $fields, array $constraints, array $indexes) : string
-
-

+
+

Parameters

$name

@@ -177,12 +154,12 @@
string
-
+

Drop the selected table

delete_table(string $name) : string
-
-

+
+

Parameters

$name

@@ -192,28 +169,15 @@
string
-

- Properties

- 
-

Reference to the current connection object

-
$conn 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::$$conn
-
-
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:35-05:00.
diff --git a/docs/classes/MySQL.html b/docs/classes/MySQL.html index 62ba246..557f23d 100644 --- a/docs/classes/MySQL.html +++ b/docs/classes/MySQL.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,90 +54,38 @@
-
+ +

MySQL specific class

-

Extends PDO to simplify cross-database issues

+
Extends PDO to simplify cross-database issues
- + @@ -149,12 +94,12 @@ the connection/database
get_system_tables()
packageQueryQuery
subpackage

 Methods

-
+

Connect to MySQL Database

__construct(string $dsn, string $username, string $password, array $options) 
-
-

+
+

Parameters

$dsn

@@ -174,699 +119,12 @@ the connection/database
get_system_tables()
-
-

__sleep() -

-
__sleep() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__sleep()
inherited_from\DB_PDO::__sleep()
-
-
-
-

__wakeup() -

-
__wakeup() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__wakeup()
inherited_from\DB_PDO::__wakeup()
-
-
-
-

Returns number of rows affected by an INSERT, UPDATE, DELETE type query

-
affected_rows(\PDOStatement $statement) : int
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::affected_rows()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
int
-
-
-
-

beginTransaction() -

-
beginTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::beginTransaction()
inherited_from\DB_PDO::beginTransaction()
-
-
-
-

commit() -

-
commit() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::commit()
inherited_from\DB_PDO::commit()
-
-
-
-

Method to simplify retreiving db results for meta-data queries

-
driver_query(string $sql, bool $filtered_index) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::driver_query()
-

Parameters

-
-

$sql

-string -
-
-

$filtered_index

-bool -
-

Returns

-
mixed
-
-
-
-

Deletes all the rows from a table. Does the same as the truncate -method if the database does not support 'TRUNCATE';

-
empty_table(string $table) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::empty_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
mixed
-
-
-
-

errorCode() -

-
errorCode() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::errorCode()
inherited_from\DB_PDO::errorCode()
-
-
-
-

errorInfo() -

-
errorInfo() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::errorInfo()
inherited_from\DB_PDO::errorInfo()
-
-
-
-

exec() -

-
exec() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::exec()
inherited_from\DB_PDO::exec()
-
-
-
-

getAttribute() -

-
getAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAttribute()
inherited_from\DB_PDO::getAttribute()
-
-
-
-

getAvailableDrivers() -

-
getAvailableDrivers() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAvailableDrivers()
inherited_from\DB_PDO::getAvailableDrivers()
-
-
-
-

Retrieve column information for the current database table

-
get_columns(string $table) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_columns()
-

Parameters

-
-

$table

-string -
-

Returns

-
array
-
-
-
-

Return list of dbs for the current connection, if possible

-
get_dbs() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_dbs()
-

Returns

-
array
-
-
-
-

Return list of function for the current database

-
get_functions() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_functions()
-

Returns

-
array
-
-
-
-

Return the last error for the current database connection

-
get_last_error() : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_last_error()
-

Returns

-
string
-
-
-
-

Return list of stored procedures for the current database

-
get_procedures() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_procedures()
-

Returns

-
array
-
-
-
-

Retreives the data from a select query

-
get_query_data(\PDOStatement $statement) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_query_data()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
array
-
-
-
-

Return schemas for databases that list them

-
get_schemas() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_schemas()
-

Returns

-
array
-
-
-
-

Return list of sequences for the current database, if they exist

-
get_sequences() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_sequences()
-

Returns

-
array
-
-
-
-

Retreives an array of non-user-created tables for -the connection/database

-
get_system_tables() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_system_tables()
-

Returns

-
array
-
-
-
-

Return list of tables for the current database

-
get_tables() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_tables()
-

Returns

-
array
-
-
-
-

Return list of triggers for the current database

-
get_triggers() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_triggers()
-

Returns

-
array
-
-
-
-

Retrieve list of data types for the database

-
get_types() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_types()
-

Returns

-
array
-
-
-
-

Return list of views for the current database

-
get_views() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_views()
-

Returns

-
array
-
-
-
-

inTransaction() -

-
inTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::inTransaction()
inherited_from\DB_PDO::inTransaction()
-
-
-
-

Create sql for batch insert

-
insert_batch(string $table, array $data) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::insert_batch()
-

Parameters

-
-

$table

-string -
-
-

$data

-array -
-

Returns

-
string
-
-
-
-

lastInsertId() -

-
lastInsertId() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::lastInsertId()
inherited_from\DB_PDO::lastInsertId()
-
-
-
-

Return the number of rows returned for a SELECT query

-
num_rows() : int
-
Inherited
-
-

- - - - - - - - - -
see\http://us3.php.net/manual/en/pdostatement.rowcount.php#87110
inherited_from\DB_PDO::num_rows()
-

Returns

-
int
-
-
-
-

prepare() -

-
prepare() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::prepare()
inherited_from\DB_PDO::prepare()
-
-
-
-

Create and execute a prepared statement with the provided parameters

-
prepare_execute(string $sql, array $params) : \PDOStatement
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::prepare_execute()
-

Parameters

-
-

$sql

-string -
-
-

$params

-array -
-

Returns

- -
-
-
-

Simplifies prepared statements for database queries

-
prepare_query(string $sql, array $data) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::prepare_query()
-

Parameters

-
-

$sql

-string -
-
-

$data

-array -
-

Returns

-
-mixedPDOStatement / FALSE
-
-
-
-

query() -

-
query() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::query()
inherited_from\DB_PDO::query()
-
-
-
-

quote() -

-
quote() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::quote()
inherited_from\DB_PDO::quote()
-
-
-
-

Surrounds the string with the databases identifier escape characters

-
quote_ident(mixed $ident) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_ident()
-

Parameters

-
-

$ident

-mixed -
-

Returns

-
string
-
-
-
-

Quote database table name, and set prefix

-
quote_table(string $table) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
string
-
-
-
-

rollBack() -

-
rollBack() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::rollBack()
inherited_from\DB_PDO::rollBack()
-
-
-
-

setAttribute() -

-
setAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::setAttribute()
inherited_from\DB_PDO::setAttribute()
-
-
-
+

Empty a table

-
truncate(string $table) : void
+
truncate(string $table) 
-
-

+
+

Parameters

$table

@@ -874,111 +132,13 @@ the connection/database
-
-

Sets the table prefix on the passed string

-
_prefix(string $str) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_prefix()
-

Parameters

-
-

$str

-string -
-

Returns

-
string
-
-
-
-

Helper method for quote_ident

-
_quote(mixed $str) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_quote()
-

Parameters

-
-

$str

-mixed -
-

Returns

-
mixed
-
-

 Properties

- 
-

$last_query

-
$last_query 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$last_query
-
-
- 
-

$sql

-
$sql 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$sql
-
-
- 
-

$table_prefix

-
$table_prefix 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$table_prefix
-
-
- 
-

$util

-
$util 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$util
-
-
- 
+ 

Set the backtick as the MySQL escape character

$escape_char : string
-

-
- 
-

$statement

-
$statement 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$statement
-
+
@@ -986,8 +146,9 @@ the connection/database
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/MySQL_SQL.html b/docs/classes/MySQL_SQL.html index 23b9962..6a15fe5 100644 --- a/docs/classes/MySQL_SQL.html +++ b/docs/classes/MySQL_SQL.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,32 +52,41 @@
-
-
+ +

MySQL specifc SQL

-

+
- + @@ -89,12 +95,12 @@
packageQueryQuery
subpackage

 Methods

-
+

SQL to show infromation about columns in a table

column_list(string $table) : string
-
-

+
+

Parameters

$table

@@ -104,32 +110,32 @@
string
-
+

Returns sql to list other databases

db_list() : string
-
-

+
+

Returns

string
-
+

Return sql to list functions

function_list() : string
-
-

+
+

Returns

string
-
+

Limit clause

limit(string $sql, int $limit, int $offset) : string
-
-

+
+

Parameters

$sql

@@ -147,52 +153,52 @@
string
-
+

Return sql to list stored procedures

procedure_list() : string
-
-

+
+

Returns

string
-
+

Random ordering keyword

random() : string
-
-

+
+

Returns

string
-
+

Return sql to list sequences

sequence_list() : NULL
-
-

+
+

Returns

NULL
-
+

Overridden in MySQL class

system_table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list tables

table_list(string $database) : string
-
-

+
+

Parameters

$database

@@ -202,32 +208,32 @@
string
-
+

Returns sql to list triggers

trigger_list() : string
-
-

+
+

Returns

string
-
+

SQL to show list of field types

type_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list views

view_list() : string
-
-

+
+

Returns

string
@@ -238,8 +244,9 @@
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/MySQL_Util.html b/docs/classes/MySQL_Util.html index 52a563b..cc5cd5b 100644 --- a/docs/classes/MySQL_Util.html +++ b/docs/classes/MySQL_Util.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,30 +52,34 @@
-
-
+ +

MySQL-specific backup, import and creation methods

-

+
- + @@ -87,46 +88,22 @@
packageQueryQuery
subpackage

 Methods

-
-

Enable calling driver methods

-
__call(string $method, array $args) 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::__call()
-

Parameters

-
-

$method

-string -
-
-

$args

-array -
-
-
-
+

Save a reference to the current connection object

-
__construct(object $conn) : void
+
__construct($conn) : void
-
-

+
+

Parameters

-
-

$conn

-object

&$conn

-
+

$conn

-
+

Create an SQL backup file for the current database's data

backup_data(array $exclude) : string
-
-

+
+

Parameters

$exclude

@@ -136,22 +113,22 @@
string
-
+

Create an SQL backup file for the current database's structure

backup_structure() : string
-
-

+
+

Returns

string
-
+

Convienience public function for creating a new MySQL table

create_table(string $name, array $columns, array $constraints, array $indexes) : string
-
-

+
+

Parameters

$name

@@ -173,12 +150,12 @@
string
-
+

Convience public function for droping a table

delete_table(string $name) : string
-
-

+
+

Parameters

$name

@@ -188,28 +165,15 @@
string
-

- Properties

- 
-

Reference to the current connection object

-
$conn 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::$$conn
-
-
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/ODBC.html b/docs/classes/ODBC.html index 73369f2..2aa099d 100644 --- a/docs/classes/ODBC.html +++ b/docs/classes/ODBC.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,90 +54,39 @@
-
+ +

ODBC Database Driver

-

For general database access for databases not specified by the main drivers

+
For general database access for databases not specified by the main drivers
- + @@ -149,12 +95,12 @@ the connection/database
get_system_tables()
packageQueryQuery
subpackage

 Methods

-
+

Use ODBC to connect to a database

__construct(string $dsn, string $username, string $password, array $options) 
-
-

+
+

Parameters

$dsn

@@ -174,457 +120,12 @@ the connection/database
get_system_tables()
-
-

__sleep() -

-
__sleep() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__sleep()
inherited_from\DB_PDO::__sleep()
-
-
-
-

__wakeup() -

-
__wakeup() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__wakeup()
inherited_from\DB_PDO::__wakeup()
-
-
-
-

Returns number of rows affected by an INSERT, UPDATE, DELETE type query

-
affected_rows(\PDOStatement $statement) : int
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::affected_rows()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
int
-
-
-
-

beginTransaction() -

-
beginTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::beginTransaction()
inherited_from\DB_PDO::beginTransaction()
-
-
-
-

commit() -

-
commit() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::commit()
inherited_from\DB_PDO::commit()
-
-
-
-

Method to simplify retreiving db results for meta-data queries

-
driver_query(string $sql, bool $filtered_index) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::driver_query()
-

Parameters

-
-

$sql

-string -
-
-

$filtered_index

-bool -
-

Returns

-
mixed
-
-
-
-

Deletes all the rows from a table. Does the same as the truncate -method if the database does not support 'TRUNCATE';

-
empty_table(string $table) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::empty_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
mixed
-
-
-
-

errorCode() -

-
errorCode() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::errorCode()
inherited_from\DB_PDO::errorCode()
-
-
-
-

errorInfo() -

-
errorInfo() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::errorInfo()
inherited_from\DB_PDO::errorInfo()
-
-
-
-

exec() -

-
exec() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::exec()
inherited_from\DB_PDO::exec()
-
-
-
-

getAttribute() -

-
getAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAttribute()
inherited_from\DB_PDO::getAttribute()
-
-
-
-

getAvailableDrivers() -

-
getAvailableDrivers() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAvailableDrivers()
inherited_from\DB_PDO::getAvailableDrivers()
-
-
-
-

Retrieve column information for the current database table

-
get_columns(string $table) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_columns()
-

Parameters

-
-

$table

-string -
-

Returns

-
array
-
-
-
-

Return list of dbs for the current connection, if possible

-
get_dbs() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_dbs()
-

Returns

-
array
-
-
-
-

Return list of function for the current database

-
get_functions() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_functions()
-

Returns

-
array
-
-
-
-

Return the last error for the current database connection

-
get_last_error() : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_last_error()
-

Returns

-
string
-
-
-
-

Return list of stored procedures for the current database

-
get_procedures() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_procedures()
-

Returns

-
array
-
-
-
-

Retreives the data from a select query

-
get_query_data(\PDOStatement $statement) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_query_data()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
array
-
-
-
-

Return schemas for databases that list them

-
get_schemas() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_schemas()
-

Returns

-
array
-
-
-
-

Return list of sequences for the current database, if they exist

-
get_sequences() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_sequences()
-

Returns

-
array
-
-
-
-

Retreives an array of non-user-created tables for -the connection/database

-
get_system_tables() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_system_tables()
-

Returns

-
array
-
-
-
-

Return list of tables for the current database

-
get_tables() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_tables()
-

Returns

-
array
-
-
-
-

Return list of triggers for the current database

-
get_triggers() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_triggers()
-

Returns

-
array
-
-
-
-

Retrieve list of data types for the database

-
get_types() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_types()
-

Returns

-
array
-
-
-
-

Return list of views for the current database

-
get_views() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_views()
-

Returns

-
array
-
-
-
-

inTransaction() -

-
inTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::inTransaction()
inherited_from\DB_PDO::inTransaction()
-
-
-
+

Create sql for batch insert

insert_batch(string $table, array $data) : string
-
-

+
+

Parameters

$table

@@ -638,231 +139,12 @@ the connection/database
string
-
-

lastInsertId() -

-
lastInsertId() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::lastInsertId()
inherited_from\DB_PDO::lastInsertId()
-
-
-
-

Return the number of rows returned for a SELECT query

-
num_rows() : int
-
Inherited
-
-

- - - - - - - - - -
see\http://us3.php.net/manual/en/pdostatement.rowcount.php#87110
inherited_from\DB_PDO::num_rows()
-

Returns

-
int
-
-
-
-

prepare() -

-
prepare() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::prepare()
inherited_from\DB_PDO::prepare()
-
-
-
-

Create and execute a prepared statement with the provided parameters

-
prepare_execute(string $sql, array $params) : \PDOStatement
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::prepare_execute()
-

Parameters

-
-

$sql

-string -
-
-

$params

-array -
-

Returns

- -
-
-
-

Simplifies prepared statements for database queries

-
prepare_query(string $sql, array $data) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::prepare_query()
-

Parameters

-
-

$sql

-string -
-
-

$data

-array -
-

Returns

-
-mixedPDOStatement / FALSE
-
-
-
-

query() -

-
query() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::query()
inherited_from\DB_PDO::query()
-
-
-
-

quote() -

-
quote() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::quote()
inherited_from\DB_PDO::quote()
-
-
-
-

Surrounds the string with the databases identifier escape characters

-
quote_ident(mixed $ident) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_ident()
-

Parameters

-
-

$ident

-mixed -
-

Returns

-
string
-
-
-
-

Quote database table name, and set prefix

-
quote_table(string $table) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
string
-
-
-
-

rollBack() -

-
rollBack() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::rollBack()
inherited_from\DB_PDO::rollBack()
-
-
-
-

setAttribute() -

-
setAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::setAttribute()
inherited_from\DB_PDO::setAttribute()
-
-
-
+

Empty the current database

truncate(string $table) : void
-
-

+
+

Parameters

$table

@@ -870,111 +152,13 @@ the connection/database
-
-

Sets the table prefix on the passed string

-
_prefix(string $str) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_prefix()
-

Parameters

-
-

$str

-string -
-

Returns

-
string
-
-
-
-

Helper method for quote_ident

-
_quote(mixed $str) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_quote()
-

Parameters

-
-

$str

-mixed -
-

Returns

-
mixed
-
-

 Properties

- 
-

$last_query

-
$last_query 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$last_query
-
-
- 
-

$sql

-
$sql 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$sql
-
-
- 
-

$table_prefix

-
$table_prefix 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$table_prefix
-
-
- 
-

$util

-
$util 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$util
-
-
- 
+ 

Don't define the escape char - or define it in sub-drivers in a refactor

$escape_char 
-

-
- 
-

$statement

-
$statement 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$statement
-
+
@@ -982,8 +166,9 @@ the connection/database
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/ODBC_SQL.html b/docs/classes/ODBC_SQL.html index ba1a52e..c235453 100644 --- a/docs/classes/ODBC_SQL.html +++ b/docs/classes/ODBC_SQL.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,32 +52,41 @@
-
-
+ +

ODBC SQL Class

-

+
- + @@ -89,12 +95,12 @@
packageQueryQuery
subpackage

 Methods

-
+

SQL to show infromation about columns in a table

column_list(string $table) : NULL
-
-

+
+

Parameters

$table

@@ -104,32 +110,32 @@
NULL
-
+

Returns sql to list other databases

db_list() : NULL
-
-

+
+

Returns

NULL
-
+

Return sql to list functions

function_list() : NULL
-
-

+
+

Returns

NULL
-
+

Limit clause

limit(string $sql, int $limit, int $offset) : string
-
-

+
+

Parameters

$sql

@@ -147,82 +153,82 @@
string
-
+

Return sql to list stored procedures

procedure_list() : NULL
-
-

+
+

Returns

NULL
-
+

Random ordering keyword

random() : string
-
-

+
+

Returns

string
-
+

Return sql to list sequences

sequence_list() : NULL
-
-

+
+

Returns

NULL
-
+

Returns sql to list system tables

system_table_list() : NULL
-
-

+
+

Returns

NULL
-
+

Returns sql to list tables

table_list() : NULL
-
-

+
+

Returns

NULL
-
+

Returns sql to list triggers

trigger_list() : NULL
-
-

+
+

Returns

NULL
-
+

SQL to show list of field types

type_list() : NULL
-
-

+
+

Returns

NULL
-
+

Returns sql to list views

view_list() : NULL
-
-

+
+

Returns

NULL
@@ -233,8 +239,9 @@
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/ODBC_Util.html b/docs/classes/ODBC_Util.html index e5f3b9c..72680e6 100644 --- a/docs/classes/ODBC_Util.html +++ b/docs/classes/ODBC_Util.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,30 +52,34 @@
-
-
+ +

ODBC-specific backup, import and creation methods

-

+
- + @@ -87,66 +88,42 @@
packageQueryQuery
subpackage

 Methods

-
-

Enable calling driver methods

-
__call(string $method, array $args) 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::__call()
-

Parameters

-
-

$method

-string -
-
-

$args

-array -
-
-
-
+

Save a reference to the current connection object

-
__construct(object $conn) : void
+
__construct($conn) : void
-
-

+
+

Parameters

-
-

$conn

-object

&$conn

-
+

$conn

-
+

Create an SQL backup file for the current database's data

backup_data() : string
-
-

+
+

Returns

string
-
+

Create an SQL backup file for the current database's structure

backup_structure() : string
-
-

+
+

Returns

string
-
+

Database-specific method to create a new table

create_table(string $name, array $columns, array $constraints, array $indexes) : string
-
-

+
+

Parameters

$name

@@ -168,12 +145,12 @@
string
-
+

Remove a table from the database

delete_table(string $name) : string
-
-

+
+

Parameters

$name

@@ -183,28 +160,15 @@
string
-

- Properties

- 
-

Reference to the current connection object

-
$conn 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::$$conn
-
-
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/PgSQL.html b/docs/classes/PgSQL.html index 21b0e51..84e315b 100644 --- a/docs/classes/PgSQL.html +++ b/docs/classes/PgSQL.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,92 +52,32 @@
-
-
+ +

PostgreSQL specifc class

-

Extends PDO to simplify cross-database issues

+
Extends PDO to simplify cross-database issues
- + @@ -149,12 +86,12 @@ the connection/database
get_system_tables()
packageQueryQuery
subpackage

 Methods

-
+

Connect to a PosgreSQL database

__construct(string $dsn, string $username, string $password, array $options) 
-
-

+
+

Parameters

$dsn

@@ -174,695 +111,22 @@ the connection/database
get_system_tables()
-
-

__sleep() -

-
__sleep() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__sleep()
inherited_from\DB_PDO::__sleep()
-
-
-
-

__wakeup() -

-
__wakeup() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__wakeup()
inherited_from\DB_PDO::__wakeup()
-
-
-
-

Returns number of rows affected by an INSERT, UPDATE, DELETE type query

-
affected_rows(\PDOStatement $statement) : int
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::affected_rows()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
int
-
-
-
-

beginTransaction() -

-
beginTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::beginTransaction()
inherited_from\DB_PDO::beginTransaction()
-
-
-
-

commit() -

-
commit() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::commit()
inherited_from\DB_PDO::commit()
-
-
-
-

Method to simplify retreiving db results for meta-data queries

-
driver_query(string $sql, bool $filtered_index) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::driver_query()
-

Parameters

-
-

$sql

-string -
-
-

$filtered_index

-bool -
-

Returns

-
mixed
-
-
-
-

Deletes all the rows from a table. Does the same as the truncate -method if the database does not support 'TRUNCATE';

-
empty_table(string $table) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::empty_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
mixed
-
-
-
-

errorCode() -

-
errorCode() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::errorCode()
inherited_from\DB_PDO::errorCode()
-
-
-
-

errorInfo() -

-
errorInfo() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::errorInfo()
inherited_from\DB_PDO::errorInfo()
-
-
-
-

exec() -

-
exec() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::exec()
inherited_from\DB_PDO::exec()
-
-
-
-

getAttribute() -

-
getAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAttribute()
inherited_from\DB_PDO::getAttribute()
-
-
-
-

getAvailableDrivers() -

-
getAvailableDrivers() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAvailableDrivers()
inherited_from\DB_PDO::getAvailableDrivers()
-
-
-
-

Retrieve column information for the current database table

-
get_columns(string $table) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_columns()
-

Parameters

-
-

$table

-string -
-

Returns

-
array
-
-
-
-

Return list of dbs for the current connection, if possible

-
get_dbs() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_dbs()
-

Returns

-
array
-
-
-
-

Return list of function for the current database

-
get_functions() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_functions()
-

Returns

-
array
-
-
-
-

Return the last error for the current database connection

-
get_last_error() : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_last_error()
-

Returns

-
string
-
-
-
-

Return list of stored procedures for the current database

-
get_procedures() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_procedures()
-

Returns

-
array
-
-
-
-

Retreives the data from a select query

-
get_query_data(\PDOStatement $statement) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_query_data()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
array
-
-
-
+

Get a list of schemas for the current connection

get_schemas() : array
-
-

+
+

Returns

array
-
-

Return list of sequences for the current database, if they exist

-
get_sequences() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_sequences()
-

Returns

-
array
-
-
-
-

Retreives an array of non-user-created tables for -the connection/database

-
get_system_tables() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_system_tables()
-

Returns

-
array
-
-
-
-

Return list of tables for the current database

-
get_tables() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_tables()
-

Returns

-
array
-
-
-
-

Return list of triggers for the current database

-
get_triggers() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_triggers()
-

Returns

-
array
-
-
-
-

Retrieve list of data types for the database

-
get_types() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_types()
-

Returns

-
array
-
-
-
-

Return list of views for the current database

-
get_views() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_views()
-

Returns

-
array
-
-
-
-

inTransaction() -

-
inTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::inTransaction()
inherited_from\DB_PDO::inTransaction()
-
-
-
-

Create sql for batch insert

-
insert_batch(string $table, array $data) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::insert_batch()
-

Parameters

-
-

$table

-string -
-
-

$data

-array -
-

Returns

-
string
-
-
-
-

lastInsertId() -

-
lastInsertId() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::lastInsertId()
inherited_from\DB_PDO::lastInsertId()
-
-
-
-

Return the number of rows returned for a SELECT query

-
num_rows() : int
-
Inherited
-
-

- - - - - - - - - -
see\http://us3.php.net/manual/en/pdostatement.rowcount.php#87110
inherited_from\DB_PDO::num_rows()
-

Returns

-
int
-
-
-
-

prepare() -

-
prepare() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::prepare()
inherited_from\DB_PDO::prepare()
-
-
-
-

Create and execute a prepared statement with the provided parameters

-
prepare_execute(string $sql, array $params) : \PDOStatement
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::prepare_execute()
-

Parameters

-
-

$sql

-string -
-
-

$params

-array -
-

Returns

- -
-
-
-

Simplifies prepared statements for database queries

-
prepare_query(string $sql, array $data) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::prepare_query()
-

Parameters

-
-

$sql

-string -
-
-

$data

-array -
-

Returns

-
-mixedPDOStatement / FALSE
-
-
-
-

query() -

-
query() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::query()
inherited_from\DB_PDO::query()
-
-
-
-

quote() -

-
quote() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::quote()
inherited_from\DB_PDO::quote()
-
-
-
-

Surrounds the string with the databases identifier escape characters

-
quote_ident(mixed $ident) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_ident()
-

Parameters

-
-

$ident

-mixed -
-

Returns

-
string
-
-
-
-

Quote database table name, and set prefix

-
quote_table(string $table) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
string
-
-
-
-

rollBack() -

-
rollBack() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::rollBack()
inherited_from\DB_PDO::rollBack()
-
-
-
-

setAttribute() -

-
setAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::setAttribute()
inherited_from\DB_PDO::setAttribute()
-
-
-
+

Empty a table

-
truncate(string $table) : void
+
truncate(string $table) 
-
-

+
+

Parameters

$table

@@ -870,126 +134,15 @@ the connection/database
-
-

Sets the table prefix on the passed string

-
_prefix(string $str) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_prefix()
-

Parameters

-
-

$str

-string -
-

Returns

-
string
-
-
-
-

Helper method for quote_ident

-
_quote(mixed $str) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_quote()
-

Parameters

-
-

$str

-mixed -
-

Returns

-
mixed
-
-
-

- Properties

- 
-

$last_query

-
$last_query 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$last_query
-
-
- 
-

$sql

-
$sql 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$sql
-
-
- 
-

$table_prefix

-
$table_prefix 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$table_prefix
-
-
- 
-

$util

-
$util 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$util
-
-
- 
-

$escape_char

-
$escape_char 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$escape_char
-
-
- 
-

$statement

-
$statement 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$statement
-
-
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/PgSQL_SQL.html b/docs/classes/PgSQL_SQL.html index f990ea2..1ab01fe 100644 --- a/docs/classes/PgSQL_SQL.html +++ b/docs/classes/PgSQL_SQL.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,32 +52,41 @@
-
-
+ +

PostgreSQL specifc SQL

-

+
- + @@ -89,12 +95,12 @@
packageQueryQuery
subpackage

 Methods

-
+

Return sql to list columns of the specified table

column_list(string $table) : string
-
-

+
+

Parameters

$table

@@ -104,32 +110,32 @@
string
-
+

Returns sql to list other databases

db_list() : string
-
-

+
+

Returns

string
-
+

Return sql to list functions

function_list() : NULL
-
-

+
+

Returns

NULL
-
+

Limit clause

limit(string $sql, int $limit, int $offset) : string
-
-

+
+

Parameters

$sql

@@ -147,82 +153,82 @@
string
-
+

Return sql to list stored procedures

procedure_list() : string
-
-

+
+

Returns

string
-
+

Random ordering keyword

random() : string
-
-

+
+

Returns

string
-
+

Return sql to list sequences

sequence_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list system tables

system_table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list tables

table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list triggers

trigger_list() : string
-
-

+
+

Returns

string
-
+

SQL to show list of field types

type_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list views

view_list() : string
-
-

+
+

Returns

string
@@ -233,8 +239,9 @@
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/PgSQL_Util.html b/docs/classes/PgSQL_Util.html index 78bdd7b..364af2d 100644 --- a/docs/classes/PgSQL_Util.html +++ b/docs/classes/PgSQL_Util.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,30 +52,34 @@
-
-
+ +

Posgres-specific backup, import and creation methods

-

+
- + @@ -87,46 +88,22 @@
packageQueryQuery
subpackage

 Methods

-
-

Enable calling driver methods

-
__call(string $method, array $args) 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::__call()
-

Parameters

-
-

$method

-string -
-
-

$args

-array -
-
-
-
+

Save a reference to the current connection object

-
__construct(object $conn) : void
+
__construct($conn) : void
-
-

+
+

Parameters

-
-

$conn

-object

&$conn

-
+

$conn

-
+

Create an SQL backup file for the current database's data

backup_data(array $exclude) : string
-
-

+
+

Parameters

$exclude

@@ -136,22 +113,22 @@
string
-
+

Create an SQL backup file for the current database's structure

backup_structure() : string
-
-

+
+

Returns

string
-
+

Database-specific method to create a new table

create_table(string $name, array $columns, array $constraints, array $indexes) : string
-
-

+
+

Parameters

$name

@@ -173,12 +150,12 @@
string
-
+

Database-specific SQL for dropping a table

delete_table(string $name) : string
-
-

+
+

Parameters

$name

@@ -188,28 +165,15 @@
string
-

- Properties

- 
-

Reference to the current connection object

-
$conn 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::$$conn
-
-
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/Query_Builder.html b/docs/classes/Query_Builder.html index 04ac3a3..e3d6126 100644 --- a/docs/classes/Query_Builder.html +++ b/docs/classes/Query_Builder.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,104 +54,124 @@
-
+ +

Convienience class for creating sql queries - also the class that instantiates the specific db driver

-

+
- + @@ -163,12 +180,12 @@ instantiates the specific db driver

packageQueryQuery
subpackage

 Methods

-
+

Calls a function further down the inheritence chain

__call(string $name, array $params) : mixed
-
-

+
+

Parameters

$name

@@ -182,12 +199,12 @@ instantiates the specific db driver

mixed
-
+

Constructor

-
__construct(\DB_PDO $db, object $params) 
+
__construct(\DB_PDO $db, object $params) 
-
-

+
+

Parameters

$db

@@ -201,12 +218,12 @@ instantiates the specific db driver

-
+

Retreive the number of rows in the selected table

count_all(string $table) : int
-
-

+
+

Parameters

$table

@@ -216,13 +233,13 @@ instantiates the specific db driver

int
-
+

Retrieve the number of results for the generated query - used in place of the get() method

count_all_results(string $table) : int
-
-

+
+

Parameters

$table

@@ -232,12 +249,12 @@ in place of the get() method
int
-
+

Deletes data from a table

delete(string $table, mixed $where) : mixed
-
-

+
+

Parameters

$table

@@ -251,26 +268,26 @@ in place of the get() method
mixed
-
+

Adds the 'distinct' keyword to a query

-
distinct() : \Query_Builder
+
distinct() : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\Query_Builder
-
+

Specify the database table to select from

-
from(string $tblname) : \Query_Builder
+
from(string $tblname) : \Query_Builder
-
-

+
+
@@ -281,21 +298,18 @@ in place of the get() methodstring

Returns

- +
\Query_Builder
-
+

Select and retrieve all records from the current table, and/or execute current compiled query

-
get($table, int $limit, int $offset) : object
+
get(mixed $table, int $limit, int $offset) : object
-
-

+
+

Parameters

-
-

$table

- -
+

$table

$limit

int @@ -308,12 +322,12 @@ execute current compiled query
object
-
+

Returns the generated 'delete' sql query

get_compiled_delete(string $table, bool $reset) : string
-
-

+
+

Parameters

$table

@@ -327,12 +341,12 @@ execute current compiled query
string
-
+

Returns the generated 'insert' sql query

get_compiled_insert(string $table, bool $reset) : string
-
-

+
+

Parameters

$table

@@ -346,12 +360,12 @@ execute current compiled query
string
-
+

Returns the generated 'select' sql query

get_compiled_select(string $table, bool $reset) : string
-
-

+
+

Parameters

$table

@@ -365,12 +379,12 @@ execute current compiled query
string
-
+

Returns the generated 'update' sql query

get_compiled_update(string $table, bool $reset) : string
-
-

+
+

Parameters

$table

@@ -384,12 +398,12 @@ execute current compiled query
string
-
+

Convience method for get() with a where clause

get_where(string $table, array $where, int $limit, int $offset) : object
-
-

+
+

Parameters

$table

@@ -411,12 +425,12 @@ execute current compiled query
object
-
+

Group the results by the selected field(s)

-
group_by(mixed $field) : \Query_Builder
+
group_by(mixed $field) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -427,43 +441,43 @@ execute current compiled querymixed

Returns

- +
\Query_Builder
-
+

Ends a query group

-
group_end() : \Query_Builder
+
group_end() : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\Query_Builder
-
+

Adds a paren to the current query for query grouping

-
group_start() : \Query_Builder
+
group_start() : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\Query_Builder
-
+

Generates a 'Having' clause

-
having(mixed $key, mixed $val) : \Query_Builder
+
having(mixed $key, mixed $val) : \Query_Builder
-
-

+
+
@@ -478,15 +492,15 @@ execute current compiled querymixed

Returns

- +
\Query_Builder
-
+

Creates an insert clause, and executes it

insert(string $table, mixed $data) : mixed
-
-

+
+

Parameters

$table

@@ -500,12 +514,12 @@ execute current compiled query
mixed
-
+

Create sql for batch insert

insert_batch(string $table, array $data) : string
-
-

+
+

Parameters

$table

@@ -519,12 +533,12 @@ execute current compiled query
string
-
+

Creates a join phrase in a compiled query

-
join(string $table, string $condition, string $type) : \Query_Builder
+
join(string $table, string $condition, string $type) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -543,15 +557,15 @@ execute current compiled querystring

Returns

- +
\Query_Builder
-
fluent This method is part of a fluent interface and will return the same instance
@@ -570,15 +584,15 @@ execute current compiled querystring

Returns

- +
\Query_Builder
-
+

Set a limit on the current sql statement

limit(int $limit, int $offset) : string
-
-

+
+

Parameters

$limit

@@ -592,12 +606,12 @@ execute current compiled query
string
-
+

Generates a NOT LIKE clause

-
not_like(string $field, mixed $val, string $pos) : \Query_Builder
+
not_like(string $field, mixed $val, string $pos) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -616,30 +630,30 @@ execute current compiled querystring

Returns

- +
\Query_Builder
-
+

Adds a paren to the current query for query grouping, prefixed with 'OR'

-
or_group_start() : \Query_Builder
+
or_group_start() : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\Query_Builder
-
+

Generates a 'Having' clause prefixed with 'OR'

-
or_having(mixed $key, mixed $val) : \Query_Builder
+
or_having(mixed $key, mixed $val) : \Query_Builder
-
-

+
+
@@ -654,15 +668,15 @@ prefixed with 'OR'mixed

Returns

- +
\Query_Builder
-
+

Generates an OR Like clause

-
or_like(string $field, mixed $val, string $pos) : \Query_Builder
+
or_like(string $field, mixed $val, string $pos) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -681,30 +695,30 @@ prefixed with 'OR'string

Returns

- +
\Query_Builder
-
+

Adds a paren to the current query for query grouping, prefixed with 'OR NOT'

-
or_not_group_start() : \Query_Builder
+
or_not_group_start() : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\Query_Builder
-
+

Generates a OR NOT LIKE clause

-
or_not_like(string $field, mixed $val, string $pos) : \Query_Builder
+
or_not_like(string $field, mixed $val, string $pos) : \Query_Builder
-
-

+
+
@@ -723,15 +737,15 @@ prefixed with 'OR NOT'string

Returns

- +
\Query_Builder
-
+

Where clause prefixed with "OR"

-
or_where(string $key, mixed $val) : \Query_Builder
+
or_where(string $key, mixed $val) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -746,15 +760,15 @@ prefixed with 'OR NOT'mixed

Returns

- +
\Query_Builder
-
+

Where in statement prefixed with "or"

-
or_where_in(string $field, mixed $val) : \Query_Builder
+
or_where_in(string $field, mixed $val) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -769,15 +783,15 @@ prefixed with 'OR NOT'mixed

Returns

- +
\Query_Builder
-
+

OR WHERE NOT IN (FOO) clause

-
or_where_not_in(string $field, mixed $val) : \Query_Builder
+
or_where_not_in(string $field, mixed $val) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -792,15 +806,15 @@ prefixed with 'OR NOT'mixed

Returns

- +
\Query_Builder
-
+

Order the results by the selected field(s)

-
order_by(string $field, string $type) : \Query_Builder
+
order_by(string $field, string $type) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -815,21 +829,21 @@ prefixed with 'OR NOT'string

Returns

- +
\Query_Builder
-
+

Clear out the class variables, so the next query can be run

reset_query() : void
-

+
-
+

Specifies rows to select in a query

-
select(string $fields) : \Query_Builder
+
select(string $fields) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -840,15 +854,15 @@ prefixed with 'OR NOT'string

Returns

- +
\Query_Builder
-
+

Selects the average value of a field from a query

-
select_avg(string $field, string $as) : \Query_Builder
+
select_avg(string $field, string $as) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -863,15 +877,15 @@ prefixed with 'OR NOT'string

Returns

- +
\Query_Builder
-
+

Selects the maximum value of a field from a query

-
select_max(string $field, string $as) : \Query_Builder
+
select_max(string $field, string $as) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -886,15 +900,15 @@ prefixed with 'OR NOT'string

Returns

- +
\Query_Builder
-
+

Selects the minimum value of a field from a query

-
select_min(string $field, string $as) : \Query_Builder
+
select_min(string $field, string $as) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -909,15 +923,15 @@ prefixed with 'OR NOT'string

Returns

- +
\Query_Builder
-
+

Selects the sum of a field from a query

-
select_sum(string $field, string $as) : \Query_Builder
+
select_sum(string $field, string $as) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -932,15 +946,15 @@ prefixed with 'OR NOT'string

Returns

- +
\Query_Builder
-
+

Sets values for inserts / updates / deletes

-
set(mixed $key, mixed $val) : \Query_Builder
+
set(mixed $key, mixed $val) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -955,15 +969,15 @@ prefixed with 'OR NOT'mixed

Returns

- +
\Query_Builder
-
+

Creates an update clause, and executes it

update(string $table, mixed $data) : mixed
-
-

+
+

Parameters

$table

@@ -977,14 +991,14 @@ prefixed with 'OR NOT'
mixed
-
+

Specify condition(s) in the where clause of a query Note: this function works with key / value, or a passed array with key / value pairs

-
where(mixed $key, mixed $val) : \Query_Builder
+
where(mixed $key, mixed $val) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -999,15 +1013,15 @@ passed array with key / value pairsmixed

Returns

- +
\Query_Builder
-
+

Where clause with 'IN' statement

-
where_in(mixed $field, mixed $val) : \Query_Builder
+
where_in(mixed $field, mixed $val) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -1022,15 +1036,15 @@ passed array with key / value pairsmixed

Returns

- +
\Query_Builder
-
+

WHERE NOT IN (FOO) clause

-
where_not_in(string $field, mixed $val) : \Query_Builder
+
where_not_in(string $field, mixed $val) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -1045,15 +1059,15 @@ passed array with key / value pairsmixed

Returns

- +
\Query_Builder
-
+

String together the sql statements for sending to the db

-
_compile(string $type, string $table) : \$string
+
_compile(string $type, string $table) : \$string
-
-

+
+

Parameters

$type

@@ -1064,15 +1078,15 @@ passed array with key / value pairs string

Returns

-
\$string
+
-
+

Helper function for returning sql strings

-
_get_compile(string $type, string $table, $reset) 
+
_get_compile(string $type, string $table, bool $reset) 
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -1088,15 +1102,16 @@ passed array with key / value pairs

$reset

-

bool

+bool + -
+

Simplify building having clauses

-
_having(mixed $key, mixed $val, string $conj) : \Query_Builder
+
_having(mixed $key, mixed $val, string $conj) : \Query_Builder
-
-

+
+
resturn string
@@ -1115,15 +1130,15 @@ passed array with key / value pairsstring

Returns

- +
\Query_Builder
-
+
fluent This method is part of a fluent interface and will return the same instance
@@ -1150,15 +1165,15 @@ passed array with key / value pairsstring

Returns

- +
\Query_Builder
-
+

Executes the compiled query

_run(string $type, string $table, bool $simple, string $sql, mixed $vals) : mixed
-
-

+
+

Parameters

$type

@@ -1184,12 +1199,12 @@ passed array with key / value pairs
mixed
-
+

Method to simplify select_ methods

_select(string $field, string $as) : string
-
-

+
+

Parameters

$field

@@ -1203,12 +1218,12 @@ passed array with key / value pairs
string
-
+

Do all the repeditive stuff for where/having type methods

_where(mixed $key, mixed $val) : array
-
-

+
+

Parameters

$key

@@ -1222,12 +1237,12 @@ passed array with key / value pairs
array
-
+

Simplify where_in methods

-
_where_in(mixed $key, mixed $val, $in, $conj) : \Query_Builder
+
_where_in(mixed $key, mixed $val, string $in, string $conj) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -1243,20 +1258,26 @@ passed array with key / value pairs

$in

-

string

+string
    +
  • The (not) in fragment
  • +
+

$conj

-

string

+string
    +
  • The where in conjunction
  • +
+

Returns

- +
\Query_Builder
-
+

Simplify generating where string

-
_where_string(mixed $key, mixed $val, string $conj) : \Query_Builder
+
_where_string(mixed $key, mixed $val, string $conj) : \Query_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -1275,112 +1296,112 @@ passed array with key / value pairsstring

Returns

- +
\Query_Builder

 Properties

- 
+ 

$conn_name

$conn_name 
-

+
- 
+ 

$queries

$queries 
-

+
- 
+ 

$sql

$sql 
-

+
- 
+ 

$from_string

$from_string 
-

+
- 
+ 

$group_array

$group_array 
-

+
- 
+ 

$group_string

$group_string 
-

+
- 
+ 

$having_map

$having_map 
-

+
- 
+ 

$limit

$limit 
-

+
- 
+ 

$offset

$offset 
-

+
- 
+ 

$order_array

$order_array 
-

+
- 
+ 

$order_string

$order_string 
-

+
- 
+ 

$query_map

$query_map 
-

+
- 
+ 

$select_string

$select_string 
-

+
- 
+ 

$set_array_keys

$set_array_keys 
-

+
- 
+ 

$set_string

$set_string 
-

+
- 
+ 

$values

$values 
-

+
- 
+ 

$where_values

$where_values 
-

+
@@ -1388,8 +1409,9 @@ passed array with key / value pairs
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/Query_Builder_Base.html b/docs/classes/Query_Builder_Base.html deleted file mode 100644 index 4603bd8..0000000 --- a/docs/classes/Query_Builder_Base.html +++ /dev/null @@ -1,349 +0,0 @@ - - - - - -Query » \Query_Builder_Base - - - - - - - - - - -
fluent This method is part of a fluent interface and will return the same instance
- - - - - - - - -
packageQuery
subpackageQuery
-

- Methods

-
-

Calls a function further down the inheritence chain

-
__call(string $name, array $params) : mixed
-
-
-

-

Parameters

-
-

$name

-string -
-
-

$params

-array -
-

Returns

-
mixed
-
-
-
-

Empty base constructor

-
__construct() 
-
-

-
-
-

String together the sql statements for sending to the db

-
_compile(string $type, string $table) : \$string
-
-
-

-

Parameters

-
-

$type

-string -
-
-

$table

-string -
-

Returns

-
\$string
-
-
-
-

Helper function for returning sql strings

-
_get_compile(string $type, string $table, $reset) 
-
-
-

- - - -
resturnstring
-

Parameters

-
-

$type

-string -
-
-

$table

-string -
-
-

$reset

-

bool

-
-
-
-

Simplify building having clauses

-
_having(mixed $key, mixed $val, string $conj) : \Query_Builder_Base
-
-
-

- - - -
fluentThis method is part of a fluent interface and will return the same instance
-

Parameters

-
-

$key

-mixed -
-
-

$val

-mixed -
-
-

$conj

-string -
-

Returns

- -
-
-
-

Simplify 'like' methods

-
_like(string $field, mixed $val, string $pos, string $like, string $conj) : \Query_Builder_Base
-
-
-

- - - -
fluentThis method is part of a fluent interface and will return the same instance
-

Parameters

-
-

$field

-string -
-
-

$val

-mixed -
-
-

$pos

-string -
-
-

$like

-string -
-
-

$conj

-string -
-

Returns

- -
-
-
-

Executes the compiled query

-
_run(string $type, string $table, bool $simple) : mixed
-
-
-

-

Parameters

-
-

$type

-string -
-
-

$table

-string -
-
-

$simple

-bool -
-

Returns

-
mixed
-
-
-
-

Method to simplify select_ methods

-
_select(string $field, string $as) : string
-
-
-

-

Parameters

-
-

$field

-string -
-
-

$as

-string -
-

Returns

-
string
-
-
-
-

Do all the repeditive stuff for where/having type methods

-
_where(mixed $key, mixed $val) : array
-
-
-

-

Parameters

-
-

$key

-mixed -
-
-

$val

-mixed -
-

Returns

-
array
-
-
-
-

Simplify where_in methods

-
_where_in(mixed $key, mixed $val, $in, $conj) : \Query_Builder_Base
-
-
-

- - - -
fluentThis method is part of a fluent interface and will return the same instance
-

Parameters

-
-

$key

-mixed -
-
-

$val

-mixed -
-
-

$in

-

string

-
-

$conj

-

string

-

Returns

- -
-
-
-

Simplify generating where string

-
_where_string(mixed $key, mixed $val, string $conj) : \Query_Builder_Base
-
-
-

- - - -
fluentThis method is part of a fluent interface and will return the same instance
-

Parameters

-
-

$key

-mixed -
-
-

$val

-mixed -
-
-

$conj

-string -
-

Returns

- -
-
-
-
-
-
-
-
- - diff --git a/docs/classes/Query_Parser.html b/docs/classes/Query_Parser.html index 48769bd..4cf40d8 100644 --- a/docs/classes/Query_Parser.html +++ b/docs/classes/Query_Parser.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,27 +54,41 @@
-
+ +

Utility Class to parse sql clauses for properly escaping identifiers

-

+
- + @@ -86,57 +97,51 @@
packageQueryQuery
subpackage

 Methods

-
+

Constructor/entry point into parser

__construct($sql) 
-
-

+
+

Parameters

-
-

$sql

-

string

+

$sql

-
+

Public parser method for seting the parse string

parse_join($sql) 
-
-

+
+

Parameters

-
-

$sql

-

string

+

$sql

-
+

Returns a more useful match array

filter_array($array) : array
-
-

+
+

Parameters

-
-

$array

-

array

+

$array

Returns

array

 Properties

- 
+ 

Regex matches

$matches : array
-

+
- 
+ 

Regex patterns for various syntax components

$match_patterns : array
-

+
@@ -144,8 +149,9 @@
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/SQLite.html b/docs/classes/SQLite.html index 6f44057..9abb7f6 100644 --- a/docs/classes/SQLite.html +++ b/docs/classes/SQLite.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,90 +54,43 @@
-
+ +

SQLite specific class

-

Extends PDO to simplify cross-database issues

+
Extends PDO to simplify cross-database issues
- + @@ -149,12 +99,12 @@ method if the database does not support 'TRUNCATE';
empty_table()
 

 Methods

-
+

Open SQLite Database

__construct(string $dsn, string $user, string $pass) 
-
-

+
+

Parameters

$dsn

@@ -170,448 +120,32 @@ method if the database does not support 'TRUNCATE';
empty_table()
 
-
-

__sleep() -

-
__sleep() 
-
Inherited
-
-

-
packageQueryQuery
subpackage
- - - - - - - - -
inherited_fromPDO::__sleep()
inherited_from\DB_PDO::__sleep()
-
-
-
-

__wakeup() -

-
__wakeup() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::__wakeup()
inherited_from\DB_PDO::__wakeup()
-
-
-
-

Returns number of rows affected by an INSERT, UPDATE, DELETE type query

-
affected_rows(\PDOStatement $statement) : int
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::affected_rows()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
int
-
-
-
-

beginTransaction() -

-
beginTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::beginTransaction()
inherited_from\DB_PDO::beginTransaction()
-
-
-
-

commit() -

-
commit() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::commit()
inherited_from\DB_PDO::commit()
-
-
-
-

Method to simplify retreiving db results for meta-data queries

-
driver_query(string $sql, bool $filtered_index) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::driver_query()
-

Parameters

-
-

$sql

-string -
-
-

$filtered_index

-bool -
-

Returns

-
mixed
-
-
-
-

Deletes all the rows from a table. Does the same as the truncate -method if the database does not support 'TRUNCATE';

-
empty_table(string $table) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::empty_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
mixed
-
-
-
-

errorCode() -

-
errorCode() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::errorCode()
inherited_from\DB_PDO::errorCode()
-
-
-
-

errorInfo() -

-
errorInfo() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::errorInfo()
inherited_from\DB_PDO::errorInfo()
-
-
-
-

exec() -

-
exec() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::exec()
inherited_from\DB_PDO::exec()
-
-
-
-

getAttribute() -

-
getAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAttribute()
inherited_from\DB_PDO::getAttribute()
-
-
-
-

getAvailableDrivers() -

-
getAvailableDrivers() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::getAvailableDrivers()
inherited_from\DB_PDO::getAvailableDrivers()
-
-
-
-

Retrieve column information for the current database table

-
get_columns(string $table) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_columns()
-

Parameters

-
-

$table

-string -
-

Returns

-
array
-
-
-
-

Return list of dbs for the current connection, if possible

-
get_dbs() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_dbs()
-

Returns

-
array
-
-
-
-

Return list of function for the current database

-
get_functions() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_functions()
-

Returns

-
array
-
-
-
-

Return the last error for the current database connection

-
get_last_error() : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_last_error()
-

Returns

-
string
-
-
-
-

Return list of stored procedures for the current database

-
get_procedures() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_procedures()
-

Returns

-
array
-
-
-
-

Retreives the data from a select query

-
get_query_data(\PDOStatement $statement) : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_query_data()
-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
array
-
-
-
-

Return schemas for databases that list them

-
get_schemas() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_schemas()
-

Returns

-
array
-
-
-
-

Return list of sequences for the current database, if they exist

-
get_sequences() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_sequences()
-

Returns

-
array
-
-
-
+

List system tables for the current database

get_system_tables() : array
-
-

+
+

Returns

array
-
+

List tables for the current database

get_tables() : mixed
-
-

+
+

Returns

mixed
-
-

Return list of triggers for the current database

-
get_triggers() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_triggers()
-

Returns

-
array
-
-
-
-

Retrieve list of data types for the database

-
get_types() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_types()
-

Returns

-
array
-
-
-
-

Return list of views for the current database

-
get_views() : array
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::get_views()
-

Returns

-
array
-
-
-
-

inTransaction() -

-
inTransaction() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::inTransaction()
inherited_from\DB_PDO::inTransaction()
-
-
-
+

Create sql for batch insert

insert_batch(string $table, array $data) : string
-
-

+
+

Parameters

$table

@@ -625,31 +159,12 @@ method if the database does not support 'TRUNCATE';
string
-
-

lastInsertId() -

-
lastInsertId() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::lastInsertId()
inherited_from\DB_PDO::lastInsertId()
-
-
-
+

Load a database for the current connection

load_database(string $db, string $name) 
-
-

+
+

Parameters

$db

@@ -661,212 +176,12 @@ method if the database does not support 'TRUNCATE';
-
-

Return the number of rows returned for a SELECT query

-
num_rows() : int
-
Inherited
-
-

- - - - - - - - - -
see\http://us3.php.net/manual/en/pdostatement.rowcount.php#87110
inherited_from\DB_PDO::num_rows()
-

Returns

-
int
-
-
-
-

prepare() -

-
prepare() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::prepare()
inherited_from\DB_PDO::prepare()
-
-
-
-

Create and execute a prepared statement with the provided parameters

-
prepare_execute(string $sql, array $params) : \PDOStatement
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::prepare_execute()
-

Parameters

-
-

$sql

-string -
-
-

$params

-array -
-

Returns

- -
-
-
-

Simplifies prepared statements for database queries

-
prepare_query(string $sql, array $data) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::prepare_query()
-

Parameters

-
-

$sql

-string -
-
-

$data

-array -
-

Returns

-
-mixedPDOStatement / FALSE
-
-
-
-

query() -

-
query() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::query()
inherited_from\DB_PDO::query()
-
-
-
-

quote() -

-
quote() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::quote()
inherited_from\DB_PDO::quote()
-
-
-
-

Surrounds the string with the databases identifier escape characters

-
quote_ident(mixed $ident) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_ident()
-

Parameters

-
-

$ident

-mixed -
-

Returns

-
string
-
-
-
-

Quote database table name, and set prefix

-
quote_table(string $table) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::quote_table()
-

Parameters

-
-

$table

-string -
-

Returns

-
string
-
-
-
-

rollBack() -

-
rollBack() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::rollBack()
inherited_from\DB_PDO::rollBack()
-
-
-
-

setAttribute() -

-
setAttribute() 
-
Inherited
-
-

- - - - - - - - - -
inherited_fromPDO::setAttribute()
inherited_from\DB_PDO::setAttribute()
-
-
-
+

Empty a table

-
truncate(string $table) : void
+
truncate(string $table) 
-
-

+
+

Parameters

$table

@@ -874,12 +189,12 @@ method if the database does not support 'TRUNCATE';
-
+

Unload a database from the current connection

unload_database(string $name) 
-
-

+
+

Parameters

$name

@@ -887,111 +202,13 @@ method if the database does not support 'TRUNCATE';
-
-

Sets the table prefix on the passed string

-
_prefix(string $str) : string
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_prefix()
-

Parameters

-
-

$str

-string -
-

Returns

-
string
-
-
-
-

Helper method for quote_ident

-
_quote(mixed $str) : mixed
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::_quote()
-

Parameters

-
-

$str

-mixed -
-

Returns

-
mixed
-
-

 Properties

- 
-

$last_query

-
$last_query 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$last_query
-
-
- 
-

$sql

-
$sql 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$sql
-
-
- 
-

$table_prefix

-
$table_prefix 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$table_prefix
-
-
- 
-

$util

-
$util 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$util
-
-
- 
-

$escape_char

-
$escape_char 
-
Inherited
-
-

- - - -
inherited_from\DB_PDO::$$escape_char
-
-
- 
+ 

Reference to the last executed sql query

-
$statement : \PDOStatement
+
$statement : \PDOStatement
-

+
@@ -999,8 +216,9 @@ method if the database does not support 'TRUNCATE';
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/SQLite_SQL.html b/docs/classes/SQLite_SQL.html index 9572143..299bc7a 100644 --- a/docs/classes/SQLite_SQL.html +++ b/docs/classes/SQLite_SQL.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,32 +52,41 @@
-
-
+ +

SQLite Specific SQL

-

+
- + @@ -89,12 +95,12 @@
packageQueryQuery
subpackage

 Methods

-
+

SQL to show infromation about columns in a table

column_list(string $table) : string
-
-

+
+

Parameters

$table

@@ -104,32 +110,32 @@
string
-
+

Returns sql to list other databases

db_list() : NULL
-
-

+
+

Returns

NULL
-
+

Return sql to list functions

function_list() : NULL
-
-

+
+

Returns

NULL
-
+

Limit clause

limit(string $sql, int $limit, int $offset) : string
-
-

+
+

Parameters

$sql

@@ -147,82 +153,82 @@
string
-
+

Return sql to list stored procedures

procedure_list() : NULL
-
-

+
+

Returns

NULL
-
+

Random ordering keyword

random() : string
-
-

+
+

Returns

string
-
+

Return sql to list sequences

sequence_list() : NULL
-
-

+
+

Returns

NULL
-
+

Overridden in SQLite class

system_table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list tables

table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list triggers

trigger_list() : NULL
-
-

+
+

Returns

NULL
-
+

SQL to show list of field types

type_list() : array
-
-

+
+

Returns

array
-
+

Returns sql to list views

view_list() : string
-
-

+
+

Returns

string
@@ -233,8 +239,9 @@
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/SQLite_Util.html b/docs/classes/SQLite_Util.html index 27a4040..a462c62 100644 --- a/docs/classes/SQLite_Util.html +++ b/docs/classes/SQLite_Util.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,30 +52,34 @@
-
-
+ +

SQLite-specific backup, import and creation methods

-

+
- + @@ -87,46 +88,22 @@
packageQueryQuery
subpackage

 Methods

-
-

Enable calling driver methods

-
__call(string $method, array $args) 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::__call()
-

Parameters

-
-

$method

-string -
-
-

$args

-array -
-
-
-
+

Save a reference to the current connection object

-
__construct(object $conn) : void
+
__construct($conn) : void
-
-

+
+

Parameters

-
-

$conn

-object

&$conn

-
+

$conn

-
+

Create an SQL backup file for the current database's data

backup_data(array $excluded) : string
-
-

+
+

Parameters

$excluded

@@ -136,22 +113,22 @@
string
-
+

Create an SQL backup file for the current database's structure

backup_structure() : string
-
-

+
+

Returns

string
-
+

Convenience public function to create a new table

create_table(string $name, array $columns, array $constraints, array $indexes) : string
-
-

+
+

Parameters

$name

@@ -173,12 +150,12 @@
string
-
+

SQL to drop the specified table

delete_table(string $name) : string
-
-

+
+

Parameters

$name

@@ -188,28 +165,15 @@
string
-

- Properties

- 
-

Reference to the current connection object

-
$conn 
-
Inherited
-
-

- - - -
inherited_from\DB_Util::$$conn
-
-
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/iDB_PDO.html b/docs/classes/iDB_PDO.html deleted file mode 100644 index 3487053..0000000 --- a/docs/classes/iDB_PDO.html +++ /dev/null @@ -1,417 +0,0 @@ - - - - - -Query » \iDB_PDO - - - - - - - - - - -
- -
-
-
- -
- -
-
-
-

Base Database class

-
-

Extends PDO to simplify cross-database issues

- - - - - - - - - -
packageQuery
subpackageQuery
-

- Methods

-
-

PDO constructor wrapper

-
__construct(string $dsn) 
-
-
-

-

Parameters

-
-

$dsn

-string -
-
-
-
-

Returns number of rows affected by an INSERT, UPDATE, DELETE type query

-
affected_rows(\PDOStatement $statement) : int
-
-
-

-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
int
-
-
-
-

Method to simplify retreiving db results for meta-data queries

-
driver_query(string $sql, bool $filtered_index) : mixed
-
-
-

-

Parameters

-
-

$sql

-string -
-
-

$filtered_index

-bool -
-

Returns

-
mixed
-
-
-
-

Deletes all the rows from a table. Does the same as the truncate -method if the database does not support 'TRUNCATE';

-
empty_table(string $table) : mixed
-
-
-

-

Parameters

-
-

$table

-string -
-

Returns

-
mixed
-
-
-
-

Retrieve column information for the current database table

-
get_columns(string $table) : array
-
-
-

-

Parameters

-
-

$table

-string -
-

Returns

-
array
-
-
-
-

Return list of dbs for the current connection, if possible

-
get_dbs() : array
-
-
-

-

Returns

-
array
-
-
-
-

Return list of function for the current database

-
get_functions() : array
-
-
-

-

Returns

-
array
-
-
-
-

Return the last error for the current database connection

-
get_last_error() : string
-
-
-

-

Returns

-
string
-
-
-
-

Return list of stored procedures for the current database

-
get_procedures() : array
-
-
-

-

Returns

-
array
-
-
-
-

Retreives the data from a select query

-
get_query_data(\PDOStatement $statement) : array
-
-
-

-

Parameters

-
-

$statement

-\PDOStatement -
-

Returns

-
array
-
-
-
-

Return schemas for databases that list them

-
get_schemas() : array
-
-
-

-

Returns

-
array
-
-
-
-

Return list of sequences for the current database, if they exist

-
get_sequences() : array
-
-
-

-

Returns

-
array
-
-
-
-

Retreives an array of non-user-created tables for -the connection/database

-
get_system_tables() : array
-
-
-

-

Returns

-
array
-
-
-
-

Return list of tables for the current database

-
get_tables() : array
-
-
-

-

Returns

-
array
-
-
-
-

Return list of triggers for the current database

-
get_triggers() : array
-
-
-

-

Returns

-
array
-
-
-
-

Retrieve list of data types for the database

-
get_types() : array
-
-
-

-

Returns

-
array
-
-
-
-

Return list of views for the current database

-
get_views() : array
-
-
-

-

Returns

-
array
-
-
-
-

Return the number of rows returned for a SELECT query

-
num_rows() : int
-
-
-

- - - -
see\http://us3.php.net/manual/en/pdostatement.rowcount.php#87110
-

Returns

-
int
-
-
-
-

Create and execute a prepared statement with the provided parameters

-
prepare_execute(string $sql, array $params) : \PDOStatement
-
-
-

-

Parameters

-
-

$sql

-string -
-
-

$params

-array -
-

Returns

- -
-
-
-

Simplifies prepared statements for database queries

-
prepare_query(string $sql, array $data) : mixed
-
-
-

-

Parameters

-
-

$sql

-string -
-
-

$data

-array -
-

Returns

-
-mixedPDOStatement / FALSE
-
-
-
-

Surrounds the string with the databases identifier escape characters

-
quote_ident(mixed $ident) : string
-
-
-

-

Parameters

-
-

$ident

-mixed -
-

Returns

-
string
-
-
-
-

Quote database table name, and set prefix

-
quote_table(string $table) : string
-
-
-

-

Parameters

-
-

$table

-string -
-

Returns

-
string
-
-
-
-

Empty the passed table

-
truncate(string $table) : void
-
-
-

-

Parameters

-
-

$table

-string -
-
-
-
-
-
-
-
-
- - diff --git a/docs/classes/iDB_SQL.html b/docs/classes/iDB_SQL.html index b072dc9..d8cdc32 100644 --- a/docs/classes/iDB_SQL.html +++ b/docs/classes/iDB_SQL.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,34 +52,43 @@
-
-
+ +

parent for database manipulation subclasses

-

+
- + @@ -91,47 +97,45 @@ specified table
column_list()
packageQueryQuery
subpackage

 Methods

-
+

Get information about the columns in the specified table

column_list($table) : string
-
-

+
+

Parameters

-
-

$table

-

string

+

$table

Returns

string
-
+

Returns sql to list other databases

db_list() : string
-
-

+
+

Returns

string
-
+

Return sql to list functions

function_list() : NULL
-
-

+
+

Returns

NULL
-
+

Get database specific sql for limit clause

limit(string $sql, int $limit, int $offset) : string
-
-

+
+
@@ -153,22 +157,22 @@ specified table
string
-
+

Return sql to list stored procedures

procedure_list() : string
-
-

+
+

Returns

string
-
+

Get the sql for random ordering

random() : string
-
-

+
+
abstract
@@ -177,62 +181,62 @@ specified table
string
-
+

Return sql to list sequences

sequence_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list system tables

system_table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list tables

table_list() : string
-
-

+
+

Returns

string
-
+

Returns sql to list triggers

trigger_list() : string
-
-

+
+

Returns

string
-
+

Return sql to list database field types

type_list() : mixed
-
-

+
+

Returns

mixed
-
+

Returns sql to list views

view_list() : string
-
-

+
+

Returns

string
@@ -243,8 +247,9 @@ specified table
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/classes/iDB_Util.html b/docs/classes/iDB_Util.html deleted file mode 100644 index 7e9f147..0000000 --- a/docs/classes/iDB_Util.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - -Query » \iDB_Util - - - - - - - - - - -
- -
abstract
- - - - - - - - -
packageQuery
subpackageQuery
-

- Methods

-
-

Return an SQL file with the database data as insert statements

-
backup_data() : string
-
-
-

- - - -
abstract
-

Returns

-
string
-
-
-
-

Return an SQL file with the database table structure

-
backup_structure() : string
-
-
-

- - - -
abstract
-

Returns

-
string
-
-
-
-

Get database-specific sql to create a new table

-
create_table(string $name, array $columns, array $constraints, array $indexes) : string
-
-
-

- - - -
abstract
-

Parameters

-
-

$name

-string -
-
-

$columns

-array -
-
-

$constraints

-array -
-
-

$indexes

-array -
-

Returns

-
string
-
-
-
-

Get database-specific sql to drop a table

-
delete_table(string $name) : string
-
-
-

- - - -
abstract
-

Parameters

-
-

$name

-string -
-

Returns

-
string
-
-
-
-
-
-
-
-
- - diff --git a/docs/classes/iPDO.html b/docs/classes/iPDO.html deleted file mode 100644 index f507cd2..0000000 --- a/docs/classes/iPDO.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - -Query » \iPDO - - - - - - - - - - -
- -
-
-
- -
- -
-
-
-

Another interface, just for more fun

-
-

- - - - - - - - - -
packageQuery
subpackageQuery
-
-
-
-
-
-
- - diff --git a/docs/classes/iQuery_Builder.html b/docs/classes/iQuery_Builder.html index 2a8b182..4887dc2 100644 --- a/docs/classes/iQuery_Builder.html +++ b/docs/classes/iQuery_Builder.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -55,72 +52,81 @@
-
-
+ +

Interface defining the Query Builder class

-

+
- + @@ -129,12 +135,12 @@ passed array with key / value pairs
where()
packageQueryQuery
subpackage

 Methods

-
+

Retreive the number of rows in the selected table

count_all(string $table) : int
-
-

+
+

Parameters

$table

@@ -144,13 +150,13 @@ passed array with key / value pairs
where()
int
-
+

Retrieve the number of results for the generated query - used in place of the get() method

count_all_results(string $table) : int
-
-

+
+

Parameters

$table

@@ -160,12 +166,12 @@ in place of the get() method
int
-
+

Deletes data from a table

delete(string $table, mixed $where) : mixed
-
-

+
+

Parameters

$table

@@ -179,26 +185,26 @@ in place of the get() method
mixed
-
+

Adds the 'distinct' keyword to a query

-
distinct() : \iQuery_Builder
+
distinct() : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\iQuery_Builder
-
+

Specify the database table to select from

-
from(string $tblname) : \iQuery_Builder
+
from(string $tblname) : \iQuery_Builder
-
-

+
+
@@ -209,21 +215,18 @@ in place of the get() methodstring

Returns

- +
\iQuery_Builder
-
+

Select and retrieve all records from the current table, and/or execute current compiled query

-
get($table, int $limit, int $offset) : object
+
get(mixed $table, int $limit, int $offset) : object
-
-

+
+

Parameters

-
-

$table

- -
+

$table

$limit

int @@ -236,12 +239,12 @@ execute current compiled query
object
-
+

Returns the generated 'delete' sql query

get_compiled_delete(string $table, bool $reset) : string
-
-

+
+

Parameters

$table

@@ -255,12 +258,12 @@ execute current compiled query
string
-
+

Returns the generated 'insert' sql query

get_compiled_insert(string $table, bool $reset) : string
-
-

+
+

Parameters

$table

@@ -274,12 +277,12 @@ execute current compiled query
string
-
+

Returns the generated 'select' sql query

get_compiled_select(string $table, bool $reset) : string
-
-

+
+

Parameters

$table

@@ -293,12 +296,12 @@ execute current compiled query
string
-
+

Returns the generated 'update' sql query

get_compiled_update(string $table, bool $reset) : string
-
-

+
+

Parameters

$table

@@ -312,12 +315,12 @@ execute current compiled query
string
-
+

Convience method for get() with a where clause

get_where(string $table, array $where, int $limit, int $offset) : object
-
-

+
+

Parameters

$table

@@ -339,12 +342,12 @@ execute current compiled query
object
-
+

Group the results by the selected field(s)

-
group_by(mixed $field) : \iQuery_Builder
+
group_by(mixed $field) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -355,43 +358,43 @@ execute current compiled querymixed

Returns

- +
\iQuery_Builder
-
+

Ends a query group

-
group_end() : \iQuery_Builder
+
group_end() : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\iQuery_Builder
-
+

Adds a paren to the current query for query grouping

-
group_start() : \iQuery_Builder
+
group_start() : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\iQuery_Builder
-
+

Generates a 'Having' clause

-
having(mixed $key, mixed $val) : \iQuery_Builder
+
having(mixed $key, mixed $val) : \iQuery_Builder
-
-

+
+
@@ -406,15 +409,15 @@ execute current compiled querymixed

Returns

- +
\iQuery_Builder
-
+

Creates an insert clause, and executes it

insert(string $table, mixed $data) : mixed
-
-

+
+

Parameters

$table

@@ -428,12 +431,12 @@ execute current compiled query
mixed
-
+

Creates a join phrase in a compiled query

-
join(string $table, string $condition, string $type) : \iQuery_Builder
+
join(string $table, string $condition, string $type) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -452,15 +455,15 @@ execute current compiled querystring

Returns

- +
\iQuery_Builder
-
fluent This method is part of a fluent interface and will return the same instance
@@ -479,15 +482,15 @@ execute current compiled querystring

Returns

- +
\iQuery_Builder
-
+

Set a limit on the current sql statement

limit(int $limit, int $offset) : string
-
-

+
+

Parameters

$limit

@@ -501,12 +504,12 @@ execute current compiled query
string
-
+

Generates a NOT LIKE clause

-
not_like(string $field, mixed $val, string $pos) : \iQuery_Builder
+
not_like(string $field, mixed $val, string $pos) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -525,30 +528,30 @@ execute current compiled querystring

Returns

- +
\iQuery_Builder
-
+

Adds a paren to the current query for query grouping, prefixed with 'OR'

-
or_group_start() : \iQuery_Builder
+
or_group_start() : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\iQuery_Builder
-
+

Generates a 'Having' clause prefixed with 'OR'

-
or_having(mixed $key, mixed $val) : \iQuery_Builder
+
or_having(mixed $key, mixed $val) : \iQuery_Builder
-
-

+
+
@@ -563,15 +566,15 @@ prefixed with 'OR'mixed

Returns

- +
\iQuery_Builder
-
+

Generates an OR Like clause

-
or_like(string $field, mixed $val, string $pos) : \iQuery_Builder
+
or_like(string $field, mixed $val, string $pos) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -590,30 +593,30 @@ prefixed with 'OR'string

Returns

- +
\iQuery_Builder
-
+

Adds a paren to the current query for query grouping, prefixed with 'OR NOT'

-
or_not_group_start() : \iQuery_Builder
+
or_not_group_start() : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
fluent This method is part of a fluent interface and will return the same instance

Returns

- +
\iQuery_Builder
-
+

Generates a OR NOT LIKE clause

-
or_not_like(string $field, mixed $val, string $pos) : \iQuery_Builder
+
or_not_like(string $field, mixed $val, string $pos) : \iQuery_Builder
-
-

+
+
@@ -632,15 +635,15 @@ prefixed with 'OR NOT'string

Returns

- +
\iQuery_Builder
-
+

Where clause prefixed with "OR"

-
or_where(string $key, mixed $val) : \iQuery_Builder
+
or_where(string $key, mixed $val) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -655,15 +658,15 @@ prefixed with 'OR NOT'mixed

Returns

- +
\iQuery_Builder
-
+

Where in statement prefixed with "or"

-
or_where_in(string $field, mixed $val) : \iQuery_Builder
+
or_where_in(string $field, mixed $val) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -678,15 +681,15 @@ prefixed with 'OR NOT'mixed

Returns

- +
\iQuery_Builder
-
+

OR WHERE NOT IN (FOO) clause

-
or_where_not_in(string $field, mixed $val) : \iQuery_Builder
+
or_where_not_in(string $field, mixed $val) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -701,15 +704,15 @@ prefixed with 'OR NOT'mixed

Returns

- +
\iQuery_Builder
-
+

Order the results by the selected field(s)

-
order_by(string $field, string $type) : \iQuery_Builder
+
order_by(string $field, string $type) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -724,21 +727,21 @@ prefixed with 'OR NOT'string

Returns

- +
\iQuery_Builder
-
+

Clear out the class variables, so the next query can be run

reset_query() : void
-

+
-
+

Specifies rows to select in a query

-
select(string $fields) : \iQuery_Builder
+
select(string $fields) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -749,15 +752,15 @@ prefixed with 'OR NOT'string

Returns

- +
\iQuery_Builder
-
+

Selects the average value of a field from a query

-
select_avg(string $field, string $as) : \iQuery_Builder
+
select_avg(string $field, string $as) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -772,15 +775,15 @@ prefixed with 'OR NOT'string

Returns

- +
\iQuery_Builder
-
+

Selects the maximum value of a field from a query

-
select_max(string $field, string $as) : \iQuery_Builder
+
select_max(string $field, string $as) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -795,15 +798,15 @@ prefixed with 'OR NOT'string

Returns

- +
\iQuery_Builder
-
+

Selects the minimum value of a field from a query

-
select_min(string $field, string $as) : \iQuery_Builder
+
select_min(string $field, string $as) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -818,15 +821,15 @@ prefixed with 'OR NOT'string

Returns

- +
\iQuery_Builder
-
+

Selects the sum of a field from a query

-
select_sum(string $field, string $as) : \iQuery_Builder
+
select_sum(string $field, string $as) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -841,15 +844,15 @@ prefixed with 'OR NOT'string

Returns

- +
\iQuery_Builder
-
+

Sets values for inserts / updates / deletes

-
set(mixed $key, mixed $val) : \iQuery_Builder
+
set(mixed $key, mixed $val) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -864,15 +867,15 @@ prefixed with 'OR NOT'mixed

Returns

- +
\iQuery_Builder
-
+

Creates an update clause, and executes it

update(string $table, mixed $data) : mixed
-
-

+
+

Parameters

$table

@@ -886,14 +889,14 @@ prefixed with 'OR NOT'
mixed
-
+

Specify condition(s) in the where clause of a query Note: this function works with key / value, or a passed array with key / value pairs

-
where(mixed $key, mixed $val) : \iQuery_Builder
+
where(mixed $key, mixed $val) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -908,15 +911,15 @@ passed array with key / value pairsmixed

Returns

- +
\iQuery_Builder
-
+

Where clause with 'IN' statement

-
where_in(mixed $field, mixed $val) : \iQuery_Builder
+
where_in(mixed $field, mixed $val) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -931,15 +934,15 @@ passed array with key / value pairsmixed

Returns

- +
\iQuery_Builder
-
+

WHERE NOT IN (FOO) clause

-
where_not_in(string $field, mixed $val) : \iQuery_Builder
+
where_not_in(string $field, mixed $val) : \iQuery_Builder
-
-

+
+
fluent This method is part of a fluent interface and will return the same instance
@@ -954,7 +957,7 @@ passed array with key / value pairsmixed

Returns

- +
\iQuery_Builder
@@ -963,8 +966,9 @@ passed array with key / value pairs
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:34-05:00.
diff --git a/docs/css/bootstrap.css b/docs/css/bootstrap.css index a90e319..563050c 100644 --- a/docs/css/bootstrap.css +++ b/docs/css/bootstrap.css @@ -2105,6 +2105,11 @@ button.btn.small, input[type="submit"].btn.small { color: #999999; text-transform: uppercase; } + +.nav-list .nav-header * { + text-transform:none; +} + .nav-list > li + .nav-header { margin-top: 9px; } diff --git a/docs/css/bootstrap.min.css b/docs/css/bootstrap.min.css index b01f92e..d522124 100644 --- a/docs/css/bootstrap.min.css +++ b/docs/css/bootstrap.min.css @@ -412,6 +412,7 @@ button.btn.small,input[type="submit"].btn.small{*padding-top:3px;*padding-bottom .nav-list{padding-left:14px;padding-right:14px;margin-bottom:0;} .nav-list>li>a,.nav-list .nav-header{display:block;padding:3px 15px;margin-left:-15px;margin-right:-15px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);} .nav-list .nav-header{font-size:11px;font-weight:bold;line-height:18px;color:#999999;text-transform:uppercase;} +.nav-list .nav-header *{text-transform:none;} .nav-list>li+.nav-header{margin-top:9px;} .nav-list .active>a,.nav-list .active>a:hover{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.2);background-color:#0088cc;} .nav-list [class^="icon-"]{margin-right:2px;} diff --git a/docs/css/template.css b/docs/css/template.css index 23265e6..05784b3 100644 --- a/docs/css/template.css +++ b/docs/css/template.css @@ -2,7 +2,7 @@ @import url(bootstrap-responsive.css); @import url(prettify.css); @import url(jquery.iviewer.css); -@import url(http://fonts.googleapis.com/css?family=Crimson+Text|Philosopher|Forum); +@import url(http://fonts.googleapis.com/css?family=Forum); body { @@ -16,6 +16,10 @@ a color: #55A72F; } +td p:last-of-type { + margin: 0; +} + li.l0, li.l1, li.l2, li.l3, li.l5, li.l6, li.l7, li.l8 { list-style-type: decimal; @@ -83,6 +87,10 @@ a.brand, h2, .hero-unit h1 background: white; } +.dropdown-menu a{ + overflow: hidden; + text-overflow: ellipsis; +} h2 { border-bottom: 1px dashed #55A72F; @@ -116,11 +124,10 @@ h2:first-of-type .hero-unit h1 { - text-align: center; font-weight: normal; text-align: center; color: white; - text-shadow: black 0px 0px 15px; + text-shadow: black 0 0 15px; } .hero-unit h2 @@ -241,6 +248,15 @@ div.element .table th text-transform: capitalize; } +div.detail-description +{ + padding-left: 30px; +} + +div.detail-description table th { + vertical-align: top; +} + body.invert { background: white; @@ -303,7 +319,7 @@ ul.side-nav li.view-simple pre ul.side-nav li.view-simple a { - padding-bottom: 0px; + padding-bottom: 0; } i.icon-custom @@ -353,10 +369,6 @@ i.icon-interface { background-image: url('../img/icons/interface.png'); } div.element.property h1, i.icon-property { background-image: url('../img/icons/property.png'); } -i.icon-show-public { background-image: url('../img/icons/visibility_public.png'); } -i.icon-show-protected { background-image: url('../img/icons/visibility_protected.png'); } -i.icon-show-private { background-image: url('../img/icons/visibility_private.png'); } - span.empty-namespace { color: silver; @@ -380,6 +392,7 @@ div.element div.subelement { margin-left: 10px; padding-bottom: 5px; + clear: both; } pre code @@ -399,7 +412,7 @@ div.element div.subelement > code div.element div.subelement > p { margin-left: 20px; - margin-right: 40px; + margin-right: 50px; } div.element div.subelement h4 @@ -411,6 +424,7 @@ div.element div.subelement h4 div.element div.subelement.response { padding-bottom: 15px; + margin-right: 50px; } div.labels @@ -423,6 +437,12 @@ div.labels font-size: 13px; } +.detail-description code { + white-space: pre; + display: inline-block; + padding: 10px; +} + .go_to_top { float: right; @@ -442,6 +462,11 @@ div.labels font-weight: bold; } +.iviewer_common +{ + z-index: 100; +} + @media (min-width: 980px) { a[name] diff --git a/docs/deprecated.html b/docs/deprecated.html index db68b0c..dc08cb9 100644 --- a/docs/deprecated.html +++ b/docs/deprecated.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -67,8 +64,9 @@
+ Documentation is powered by phpDocumentor 2.1.0 + and
+ generated on 2013-12-06T22:52:35-05:00.
diff --git a/docs/errors.html b/docs/errors.html index 494be8e..a8188ae 100644 --- a/docs/errors.html +++ b/docs/errors.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -57,8 +54,6 @@ -
  • classes/db_pdo.php
  • -
  • classes/query_builder.php
  • +
    No errors have been found in this project.
    +
    +
    -
    -

    -classes/db_pdo.php6 -

    -
    fluent This method is part of a fluent interface and will return the same instance
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    TypeLineDescription
    error27No DocBlock was found for property $statement
    error30No DocBlock was found for property $escape_char
    error33No DocBlock was found for property $sql
    error36No DocBlock was found for property $util
    error39No DocBlock was found for property $last_query
    error42No DocBlock was found for property $table_prefix
    -
    -
    -

    -classes/query_builder.php17 -

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    TypeLineDescription
    error30No DocBlock was found for property $select_string
    error33No DocBlock was found for property $from_string
    error36No DocBlock was found for property $set_string
    error39No DocBlock was found for property $order_string
    error42No DocBlock was found for property $group_string
    error49No DocBlock was found for property $set_array_keys
    error52No DocBlock was found for property $order_array
    error55No DocBlock was found for property $group_array
    error62No DocBlock was found for property $values
    error65No DocBlock was found for property $where_values
    error68No DocBlock was found for property $limit
    error71No DocBlock was found for property $offset
    error74No DocBlock was found for property $sql
    error85No DocBlock was found for property $query_map
    error88No DocBlock was found for property $having_map
    error91No DocBlock was found for property $conn_name
    error94No DocBlock was found for property $queries
    -
    @@ -236,8 +91,9 @@
    + Documentation is powered by phpDocumentor 2.1.0 + and
    + generated on 2013-12-06T22:52:35-05:00.
    diff --git a/docs/graph_class.html b/docs/graph_class.html index 96b51e0..6d2db6b 100644 --- a/docs/graph_class.html +++ b/docs/graph_class.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -64,8 +61,9 @@ });
    + Documentation is powered by phpDocumentor 2.1.0 + and
    + generated on 2013-12-06T22:52:35-05:00.
    diff --git a/docs/js/template.js b/docs/js/template.js index fcc3ff6..180b8b6 100644 --- a/docs/js/template.js +++ b/docs/js/template.js @@ -10,7 +10,7 @@ function initializeContents() $(".element a.more").hide(); $(".clickable.class,.clickable.interface").click(function() { - document.location = $(this).attr('href'); + document.location = $("a.more", this).attr('href'); }); // change the cursor to a pointer to make it more explicit that this it clickable @@ -107,13 +107,13 @@ $(document).ready(function() { $(this).parents('.side-nav').find('.active').removeClass('active'); $(this).parent().addClass('active'); $('div.namespace-contents').load( - this.href + ' div.namespace-contents', {}, function(){ + this.href + ' div.namespace-contents', function(){ initializeContents(); $(window).scrollTop($('div.namespace-contents').position().top); } ); $('div.package-contents').load( - this.href + ' div.package-contents', {}, function(){ + this.href + ' div.package-contents', function(){ initializeContents(); $(window).scrollTop($('div.package-contents').position().top); } @@ -140,7 +140,10 @@ $(document).ready(function() { var thisPath = filterPath(this.pathname) || locationPath; if (locationPath == thisPath && (location.hostname == this.hostname || !this.hostname) && this.hash.replace(/#/, '')) { - var $target = $(this.hash), target = this.hash; + var target = decodeURIComponent(this.hash.replace(/#/,'')); + // note: I'm using attribute selector, because id selector can't match elements with '$' + var $target = $('[id="'+target+'"]'); + if ($target.length > 0) { $(this).click(function (event) @@ -182,4 +185,11 @@ $(document).ready(function() { } return []; } -}); \ No newline at end of file + + // Hide API Documentation menu if it's empty + $('.nav .dropdown a[href=#api]').next().filter(function(el) { + if ($(el).children().length == 0) { + return true; + } + }).parent().hide(); +}); diff --git a/docs/markers.html b/docs/markers.html index 0018d1d..abd7cf5 100644 --- a/docs/markers.html +++ b/docs/markers.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -63,12 +60,6 @@
  • Markers
  • -
    - The following markers were found: -
    • todo  - 2 -
    -

    @@ -109,8 +100,9 @@

    + Documentation is powered by phpDocumentor 2.1.0 + and
    + generated on 2013-12-06T22:52:35-05:00.
    diff --git a/docs/namespaces/default.html b/docs/namespaces/default.html deleted file mode 100644 index f0f5cc2..0000000 --- a/docs/namespaces/default.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - -Query » default - - - - - - - - - - -
    - -
    -
    -
    - -
    - -
    -
    - -
    -

    - Functions

    -
    -

    Connection function

    -
    Query(mixed $params) : \Query_Builder
    -
    -
    -

    -

    Parameters

    -
    -

    $params

    -mixed -
    -

    Returns

    - -
    -
    -
    -

    Filter out db rows into one array

    -
    db_filter(array $array, mixed $index) : array
    -
    -
    -

    -

    Parameters

    -
    -

    $array

    -array -
    -
    -

    $index

    -mixed -
    -

    Returns

    -
    array
    -
    -
    -
    -

    Bulk directory loading workaround for use -with array_map and glob

    -
    do_include(string $path) : void
    -
    -
    -

    -

    Parameters

    -
    -

    $path

    -string -
    -
    -
    -
    -

    Multibyte-safe trim function

    -
    mb_trim($string) : string
    -
    -
    -

    -

    Parameters

    -
    -

    $string

    -

    string

    -

    Returns

    -
    string
    -
    -
    -
    -

    Load a Query class

    -
    query_autoload(string $class) 
    -
    -
    -

    -

    Parameters

    -
    -

    $class

    -string -
    -
    -
    -

    - Classes and interfaces

    -
    -

    iDB_SQL -

    -

    parent for database manipulation subclasses

    -
    -« More » -
    -
    -

    iQuery_Builder -

    -

    Interface defining the Query Builder class

    -
    -« More » -
    -
    -

    BadConnectionException -

    -

    Generic exception for bad connection strings

    -
    -« More » -
    -
    -

    BadDBDriverException -

    -

    Generic exception for bad drivers

    -
    -« More » -
    -
    -

    DB_PDO -

    -

    Base Database class

    -
    -« More » -
    -
    -

    DB_Util -

    -

    Abstract class defining database / table creation methods

    -
    -« More » -
    -
    -

    Firebird -

    -

    Firebird Database class

    -
    -« More » -
    -
    -

    Firebird_Result -

    -

    Firebird result class to emulate PDOStatement Class - only implements -data-fetching methods

    -
    -« More » -
    -
    -

    Firebird_SQL -

    -

    Firebird Specific SQL

    -
    -« More » -
    -
    -

    Firebird_Util -

    -

    Firebird-specific backup, import and creation methods

    -
    -« More » -
    -
    -

    MySQL -

    -

    MySQL specific class

    -
    -« More » -
    -
    -

    MySQL_SQL -

    -

    MySQL specifc SQL

    -
    -« More » -
    -
    -

    MySQL_Util -

    -

    MySQL-specific backup, import and creation methods

    -
    -« More » -
    -
    -

    ODBC -

    -

    ODBC Database Driver

    -
    -« More » -
    -
    -

    ODBC_SQL -

    -

    ODBC SQL Class

    -
    -« More » -
    -
    -

    ODBC_Util -

    -

    ODBC-specific backup, import and creation methods

    -
    -« More » -
    -
    -

    PgSQL -

    -

    PostgreSQL specifc class

    -
    -« More » -
    -
    -

    PgSQL_SQL -

    -

    PostgreSQL specifc SQL

    -
    -« More » -
    -
    -

    PgSQL_Util -

    -

    Posgres-specific backup, import and creation methods

    -
    -« More » -
    -
    -

    Query_Builder -

    -

    Convienience class for creating sql queries - also the class that -instantiates the specific db driver

    -
    -« More » -
    -
    -

    Query_Parser -

    -

    Utility Class to parse sql clauses for properly escaping identifiers

    -
    -« More » -
    -
    -

    SQLite -

    -

    SQLite specific class

    -
    -« More » -
    -
    -

    SQLite_SQL -

    -

    SQLite Specific SQL

    -
    -« More » -
    -
    -

    SQLite_Util -

    -

    SQLite-specific backup, import and creation methods

    -
    -« More » -
    -

    - Constants

    - 
    -

    Reference to root path

    -
    QBASE_PATH 
    -
    -

    -
    - 
    -

    Path to driver classes

    -
    QDRIVER_PATH 
    -
    -

    -
    -
    -
    -
    -
    -
    - - diff --git a/docs/namespaces/global.html b/docs/namespaces/global.html new file mode 100644 index 0000000..13ca968 --- /dev/null +++ b/docs/namespaces/global.html @@ -0,0 +1,115 @@ + + + + + +Query » global + + + + + + + + + + +
    + + +
    +
    + + diff --git a/docs/packages/.html b/docs/packages/.html deleted file mode 100644 index 3c74093..0000000 --- a/docs/packages/.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - -Query » - - - - - - - - - - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    - - diff --git a/docs/packages/Default.html b/docs/packages/Default.html index 06614fe..8c8f4b0 100644 --- a/docs/packages/Default.html +++ b/docs/packages/Default.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -59,43 +56,17 @@
  • -Default +Default
  • - -
  • Reference to root path
    QBASE_PATH
  • -
  • Path to driver classes
    QDRIVER_PATH
  • -
    - -
    -

    - Constants

    - 
    -

    Reference to root path

    -
    QBASE_PATH 
    -
    -

    -
    - 
    -

    Path to driver classes

    -
    QDRIVER_PATH 
    -
    -

    -
    -
    -
    +
    + Documentation is powered by phpDocumentor 2.1.0 + and
    + generated on 2013-12-06T22:52:34-05:00.
    diff --git a/docs/packages/Query.Drivers.html b/docs/packages/Query.Drivers.html index 883fe8f..4b6adbd 100644 --- a/docs/packages/Query.Drivers.html +++ b/docs/packages/Query.Drivers.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -83,24 +80,23 @@ data-fetching methods">Firebird_Result
    -

    Classes and interfaces

    -
    +

    Firebird

    Firebird Database class

    « More »
    -
    +

    Firebird_Result

    Firebird result class to emulate PDOStatement Class - only implements @@ -108,98 +104,98 @@ data-fetching methods

    « More »
    -
    +

    Firebird_SQL

    Firebird Specific SQL

    « More »
    -
    +

    Firebird_Util

    Firebird-specific backup, import and creation methods

    « More »
    -
    +

    MySQL

    MySQL specific class

    « More »
    -
    +

    MySQL_SQL

    MySQL specifc SQL

    « More »
    -
    +

    MySQL_Util

    MySQL-specific backup, import and creation methods

    « More »
    -
    +

    ODBC

    ODBC Database Driver

    « More »
    -
    +

    ODBC_SQL

    ODBC SQL Class

    « More »
    -
    +

    ODBC_Util

    ODBC-specific backup, import and creation methods

    « More »
    -
    +

    PgSQL

    PostgreSQL specifc class

    « More »
    -
    +

    PgSQL_SQL

    PostgreSQL specifc SQL

    « More »
    -
    +

    PgSQL_Util

    Posgres-specific backup, import and creation methods

    « More »
    -
    +

    SQLite

    SQLite specific class

    « More »
    -
    +

    SQLite_SQL

    SQLite Specific SQL

    « More »
    -
    +

    SQLite_Util

    SQLite-specific backup, import and creation methods

    @@ -211,8 +207,9 @@ data-fetching methods

    + Documentation is powered by phpDocumentor 2.1.0 + and
    + generated on 2013-12-06T22:52:34-05:00.
    diff --git a/docs/packages/Query.Query.html b/docs/packages/Query.Query.html index df4ec2e..fdfd630 100644 --- a/docs/packages/Query.Query.html +++ b/docs/packages/Query.Query.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -77,59 +74,58 @@ instantiates the specific db driver">Query_Builder
    -

    Classes and interfaces

    -
    +

    iDB_SQL

    parent for database manipulation subclasses

    « More »
    -
    +

    iQuery_Builder

    Interface defining the Query Builder class

    « More »
    -
    +

    BadConnectionException

    Generic exception for bad connection strings

    « More »
    -
    +

    BadDBDriverException

    Generic exception for bad drivers

    « More »
    -
    +

    DB_PDO

    Base Database class

    « More »
    -
    +

    DB_Util

    Abstract class defining database / table creation methods

    « More »
    -
    +

    Query_Builder

    Convienience class for creating sql queries - also the class that @@ -137,7 +133,7 @@ instantiates the specific db driver

    « More »
    -
    +

    Query_Parser

    Utility Class to parse sql clauses for properly escaping identifiers

    @@ -149,8 +145,9 @@ instantiates the specific db driver

    + Documentation is powered by phpDocumentor 2.1.0 + and
    + generated on 2013-12-06T22:52:34-05:00.
    diff --git a/docs/packages/Query.html b/docs/packages/Query.html index 37c59ef..d2fe0f3 100644 --- a/docs/packages/Query.html +++ b/docs/packages/Query.html @@ -1,4 +1,4 @@ - + @@ -20,7 +20,6 @@ API Documentation @@ -32,11 +31,9 @@ Reports @@ -70,31 +67,32 @@ -
  • Connection function
    Query
  • -
  • Filter out db rows into one array
    db_filter
  • -
  • Connection function
    Query
  • +
  • Filter out db rows into one array
    db_filter
  • +
  • Bulk directory loading workaround for use with array_map and glob
    do_include
  • -
  • Multibyte-safe trim function
    mb_trim
  • -
  • Load a Query class
    query_autoload
  • +
  • Multibyte-safe trim function
    mb_trim
  • +
  • Load a Query class
    query_autoload
  • + +
  • Reference to root path
    QBASE_PATH
  • +
  • Path to driver classes
    QDRIVER_PATH
  • - +

    Functions

    -
    +

    Connection function

    Query(mixed $params) : \Query_Builder
    -
    -

    +
    +

    Parameters

    $params

    @@ -104,12 +102,12 @@ with array_map and glob
    do_include
    -
    +

    Filter out db rows into one array

    db_filter(array $array, mixed $index) : array
    -
    -

    +
    +

    Parameters

    $array

    @@ -123,13 +121,13 @@ with array_map and glob
    do_include
    array
    -
    +

    Bulk directory loading workaround for use with array_map and glob

    do_include(string $path) : void
    -
    -

    +
    +

    Parameters

    $path

    @@ -137,26 +135,24 @@ with array_map and glob
    -
    +

    Multibyte-safe trim function

    mb_trim($string) : string
    -
    -

    +
    +

    Parameters

    -
    -

    $string

    -

    string

    +

    $string

    Returns

    string
    -
    +

    Load a Query class

    query_autoload(string $class) 
    -
    -

    +
    +

    Parameters

    $class

    @@ -164,24 +160,37 @@ with array_map and glob
    -

    Classes and interfaces

    -
    +

    Firebird

    Firebird Database class

    « More »
    -
    +

    Firebird_Result

    Firebird result class to emulate PDOStatement Class - only implements @@ -189,98 +198,98 @@ data-fetching methods

    « More »
    -
    +

    Firebird_SQL

    Firebird Specific SQL

    « More »
    -
    +

    Firebird_Util

    Firebird-specific backup, import and creation methods

    « More »
    -
    +

    MySQL

    MySQL specific class

    « More »
    -
    +

    MySQL_SQL

    MySQL specifc SQL

    « More »
    -
    +

    MySQL_Util

    MySQL-specific backup, import and creation methods

    « More »
    -
    +

    ODBC

    ODBC Database Driver

    « More »
    -
    +

    ODBC_SQL

    ODBC SQL Class

    « More »
    -
    +

    ODBC_Util

    ODBC-specific backup, import and creation methods

    « More »
    -
    +

    PgSQL

    PostgreSQL specifc class

    « More »
    -
    +

    PgSQL_SQL

    PostgreSQL specifc SQL

    « More »
    -
    +

    PgSQL_Util

    Posgres-specific backup, import and creation methods

    « More »
    -
    +

    SQLite

    SQLite specific class

    « More »
    -
    +

    SQLite_SQL

    SQLite Specific SQL

    « More »
    -
    +

    SQLite_Util

    SQLite-specific backup, import and creation methods

    @@ -288,59 +297,58 @@ data-fetching methods

    « More »
    -

    Classes and interfaces

    -
    +

    iDB_SQL

    parent for database manipulation subclasses

    « More »
    -
    +

    iQuery_Builder

    Interface defining the Query Builder class

    « More »
    -
    +

    BadConnectionException

    Generic exception for bad connection strings

    « More »
    -
    +

    BadDBDriverException

    Generic exception for bad drivers

    « More »
    -
    +

    DB_PDO

    Base Database class

    « More »
    -
    +

    DB_Util

    Abstract class defining database / table creation methods

    « More »
    -
    +

    Query_Builder

    Convienience class for creating sql queries - also the class that @@ -348,7 +356,7 @@ instantiates the specific db driver

    « More »
    -
    +

    Query_Parser

    Utility Class to parse sql clauses for properly escaping identifiers

    @@ -361,8 +369,9 @@ instantiates the specific db driver

    + Documentation is powered by phpDocumentor 2.1.0 + and
    + generated on 2013-12-06T22:52:34-05:00.
    diff --git a/docs/structure.xml b/docs/structure.xml index 60defa0..a9c5324 100644 --- a/docs/structure.xml +++ b/docs/structure.xml @@ -1,6461 +1,6614 @@ - - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + Query_Parser \Query_Parser - - - - - - + + Utility Class to parse sql clauses for properly escaping identifiers + + + - + $match_patterns - '([a-zA-Z0-9_]+\((.*?)\))', - 'identifier' => '([a-zA-Z0-9_-]+\.?)+', - 'operator' => '=|AND|&&?|~|\|\|?|\^|/|>=?|<=?|-|%|OR|\+|NOT|\!=?|<>|XOR' - )]]> - - - - - array + array('function' => '([a-zA-Z0-9_]+\((.*?)\))', 'identifier' => '([a-zA-Z0-9_-]+\.?)+', 'operator' => '=|AND|&&?|~|\|\|?|\^|/|>=?|<=?|-|%|OR|\+|NOT|\!=?|<>|XOR') + + Regex patterns for various syntax components + + + array - + $matches - array(), - 'identifiers' => array(), - 'operators' => array(), - 'combined' => array(), - )]]> - - - - - array + array('functions' => array(), 'identifiers' => array(), 'operators' => array(), 'combined' => array()) + + Regex matches + + + array - + __construct - function - - - - - - - $sql - - - - - - parse_join - function - - - - - - - $sql - - - - - - filter_array - function - - - - - - array + \Query_Parser::__construct() + + Constructor/entry point into parser + + + string - + + $sql + '' + + + + + parse_join + \Query_Parser::parse_join() + + Public parser method for seting the parse string + + + string + + + + $sql + + + + + + filter_array + \Query_Parser::filter_array() + + Returns a more useful match array + + + array + + + array + + + $array - + + eJy1Vm1z20QQ/iz9imXGVFL8olD4AtRxQhI6wzBNMGFgiI16ltfWNbJOvTulNVX57eydXvyS4AlDsceWdPfs7e6zz97pxShPcjc8OnLhCH4qUK7pxtx/LxGrAfiu4OkcJYRwwTSbMYVwNlNaslhzkcGPbI2ytjrNWXzHlug4zVpwygqdCOk4N3wldLKGHwbwK5MSMzsbi3wt+TLRznlzB34cwPPjL55D31y+tLiUZ3fgOInWufomDJdcJ8VsEItVyO45019RJOHGZ8pjzBRWeILnCU+VLuQSRUZGg+IujMUcw/mMzfs1mAxD1w1D6H+yj9sw+4vmKddrOE+ZUqAF5EwSjeptCnHKCoUKFkJCLkWOMl0DqpjlPFsCn2Om+YKjVHsUwyZbVcz2B0M3tq7sc3RtvEn44LqOCcghozEu8T2FoTXKrPJ+zyQXhQK1zjR7D8RtLjJyr4yBNTolCFDt2No8hq6TS37PNEJnxXScRO1ywwrlu47jLYrMCsWD4Ql4/i3r/3nW//24/3U07U58f3A0CiZB4PUMdpPuQ3Sf4INR0K2QhiimRY0blmevLspnz0blX+WEvqNy8kcZlifDUfmCfv3y8/JqXE665aurm3LymRk+KX+7GnuuE3z7gBWbDB5Ku5iRaOqs8fF0lY2sGg/2kns416TzcIbKMOMZzvcmdsI+J3daFjEtEJIP6tlc8EwD/WqpyU0y9MxWQHjS124+TegQRXGzot8xIh2C5wWu84ECogZ5iXpLujtCIUXgMqrUwNLU9157g45OuOqf7ErkdqOL6YBQPTCO6H8LjFso5U17cD2+fBn9fHkTXY0vLsdEwb/xt6Wtgx63y/RffbYqPehxU/zH/G04x3tqZrKlfYFpEFmMtm+FpN3ZFtPpLIo0bfybqj2N/m75RNZK/0mpBt3X3HuEqZ3w/omNVvAHyBCgEymKZUJXbPq1Byybw5KIsoNCaZCY4j2jTmhb2tl117QuBZn7VXdZQA+8BU8pzMgOesF+nEYIH00Lftrzom3p66olq+aFFdIZOrfVVqiNAEyK9SHSdvKT+9saRm9oj7DtXXd2neB+81vJS6TTM9vj4H+mYGx9KmBUS4lAWw3Jp6rkZjfezrkdhNM63sfOqpaF7QL7HXtpmMjwXTXebu2V9qgAyOKkRgNT0JHiHVlZM4cvwOeqWdHMmKlqbmvR2ykta6Zvj6eGXGKR/jCld5BD6BZqSG8r0uKqany0rzCX1AhiAW/t6V9paEAven8DZ5X39g== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - - No DocBlock was found for property $statement - No DocBlock was found for property $escape_char - No DocBlock was found for property $sql - No DocBlock was found for property $util - No DocBlock was found for property $last_query - No DocBlock was found for property $table_prefix - - + + \PDO DB_PDO \DB_PDO - \PDO - - - Extends PDO to simplify cross-database issues

    ]]>
    - - + + Base Database class + Extends PDO to simplify cross-database issues + + - + $statement - + + + + + - + $escape_char - + '"' + + + + - + $sql - + + + + + - + $util - + + + + + - + $last_query - + + + + + - + $table_prefix - + '' + + + + - + __construct - function - - - - - string + \DB_PDO::__construct() + + PDO constructor wrapper + + + string - - string + + string - - string + + string - - array + + array - + $dsn - - + + string - + $username - - + NULL + string - + $password - - + NULL + string - + $driver_options - - + array() + array - + prepare_query - function - - - - - string + \DB_PDO::prepare_query() + + Simplifies prepared statements for database queries + + + string - - array + + array - - mixed + + mixed - + $sql - - + + string - + $data - - + + array - + prepare_execute - function - - - - - string + \DB_PDO::prepare_execute() + + Create and execute a prepared statement with the provided parameters + + + string - - array + + array - - \PDOStatement + + \PDOStatement - + $sql - - + + string - + $params - - + + array - + get_query_data - function - - - - - \PDOStatement + \DB_PDO::get_query_data() + + Retreives the data from a select query + + + \PDOStatement - - array + + array - + $statement - - + + \PDOStatement - + affected_rows - function - - - - - \PDOStatement + \DB_PDO::affected_rows() + + Returns number of rows affected by an INSERT, UPDATE, DELETE type query + + + \PDOStatement - - int + + int - + $statement - - + '' + \PDOStatement - + get_last_error - function - - - - - string + \DB_PDO::get_last_error() + + Return the last error for the current database connection + + + string - + quote_table - function - - - - - string + \DB_PDO::quote_table() + + Quote database table name, and set prefix + + + string - - string + + string - + $table - - + + string - + _prefix - function - - - - - string + \DB_PDO::_prefix() + + Sets the table prefix on the passed string + + + string - - string + + string - + $str - - + + string - + quote_ident - function - - - - - mixed + \DB_PDO::quote_ident() + + Surrounds the string with the databases identifier escape characters + + + mixed - - string + + string - + $ident - - + + mixed - + _quote - function - - - - - mixed + \DB_PDO::_quote() + + Helper method for quote_ident + + + mixed - - mixed + + mixed - + $str - - + + mixed - + empty_table - function - - - - - string + \DB_PDO::empty_table() + + Deletes all the rows from a table. Does the same as the truncate +method if the database does not support 'TRUNCATE'; + + + string - - mixed + + mixed - + $table - - + + string - + get_schemas - function - - - - - array + \DB_PDO::get_schemas() + + Return schemas for databases that list them + + + array - + get_tables - function - - - - - array + \DB_PDO::get_tables() + + Return list of tables for the current database + + + array - + get_dbs - function - - - - - array + \DB_PDO::get_dbs() + + Return list of dbs for the current connection, if possible + + + array - + get_views - function - - - - - array + \DB_PDO::get_views() + + Return list of views for the current database + + + array - + get_sequences - function - - - - - array + \DB_PDO::get_sequences() + + Return list of sequences for the current database, if they exist + + + array - + get_functions - function - - - - - array + \DB_PDO::get_functions() + + Return list of function for the current database + + + array - + get_procedures - function - - - - - array + \DB_PDO::get_procedures() + + Return list of stored procedures for the current database + + + array - + get_triggers - function - - - - - array + \DB_PDO::get_triggers() + + Return list of triggers for the current database + + + array - + get_system_tables - function - - - - - array + \DB_PDO::get_system_tables() + + Retreives an array of non-user-created tables for +the connection/database + + + array - + get_columns - function - - - - - string + \DB_PDO::get_columns() + + Retrieve column information for the current database table + + + string - - array + + array - + $table - - + + string - + get_types - function - - - - - array + \DB_PDO::get_types() + + Retrieve list of data types for the database + + + array - + driver_query - function - - - - - string + \DB_PDO::driver_query() + + Method to simplify retreiving db results for meta-data queries + + + string - - bool + + bool - - mixed + + mixed - + $sql - - + + string - + $filtered_index - - + TRUE + bool - + num_rows - function - - - - - - int + \DB_PDO::num_rows() + + Return the number of rows returned for a SELECT query + + + + int - + truncate - function - - - - - string + \DB_PDO::truncate() + + Empty the passed table + + + string - - void + + void - + $table - - + + string - + insert_batch - function - - - - - string + \DB_PDO::insert_batch() + + Create sql for batch insert + + + string - - array + + array - - string + + string - + $table - - + + string - + $data - - + array() + array
    + eJzFG2tT20jys/0rZr1ULCd+QHJVdwdLsgScC1cEWDB7V0c41Vga27ORJUUjQXws//26e0ZPywSnIEnVJjCafj+mu2f2lzfhLGwOnj9vsufst0REC/gBf34XCaEX2NtEeq6I2IAd8JiPuRJsb6ziiDuxDHx2xBciMlC/htz5xKei0UhxsV95Es+CqNEYyXkQzxbsn332Lx5FwqevThAuIjmdxY399CdmOR32cnPrJevhP69onyf9T6zRmMVxqLYHg6mMZ8m47wTzAb+WPP4LcDLIaXrSEb4Sej9sD2fSU3ESTUXgA1A/+TRwAlcM3DF3e2YzAA6azcGA9R7tTzPV7FtUWqY9x+NKGY0Nv8TCdxU7PThhccCUnIeenCyYEwVK9dwURCqVCFXRMssFVsm4ujhocmMlTZAdvLWRiihQvG02GyDxmZgIMIgjkIV4Jhjsj2GjcJJYuOwzYWyEURALBxc2VMxjMRd+vKMR7M84EgInAQRCOTwEll34LidSRKoEqz/bDoCwXdZutXdqmFCfPQYyGVU1wmQMVgK6n7263Uksa7fjutl/hBKRIJlc+T4U16aPZvdpJCbyC6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yMA9bJetBBLF7p8III/fr9rw8rtpmZW6GENZ+fQ5O6Pqhe5SghmXuwm6lU/nIV9X8SDOfcT7g2EPwjdILsN7QNeup7BfT//7a9bW5sPvOsF1vQ1b9p5R2Iq6Pnm4L+asY/qhfVme+/oCH748+DwfHR4TIudN7BMQz/1Aht03Nd/3tkYyDaZLEjiMImLo0XjVvl80dLUsolM/vYUljR8h70uzGU2VDyPq37WMgrcP7k4HlnPO3pccGsQXG5d3bW6FTcrPRoipMat9imDW0uDvKdqufWru/QJOatYR2GAYzbLHmQ94ZO7gusOcS5TvFpa84y9DmSaBPkK0bIJVOEC7dGfNJJErPhOCXMjRt0Y3Q/HvyJampHWyHX/c8F7L200DXus/Z1wmreBlffC+eS08ELucvOq02FlJ6SnMOY+szQSKw3SKAYnUnhufvPwSSxUjpd2XHOvPP7Pp28t/eyEHR6PTiCcCO0ds/SrW9zSr96g1E3HiYNOpwjU6rDf944uhueMcDX1VQ6f54xCwvaszW565WyQdFn7TVtjov1mxFx3kZM+zEpPuXlwba4NZAQFkrYkn+AjuwS7d64YXrorfBwVCkdyjzlUKuVMW7clqned1pICbXrqV1Gx/qJmcpK+cMwZ28Ppth/g8wQ2jYIkRHH0C0twz2bdU0XaVkiIhrtuPXsV/uYimoKH4Fq3wrLGaxIf8VesDtN6BSF1IXeH/3vI0Hf1gMyG0wjPnv8DLseufQ==
    - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - - No DocBlock was found for property $select_string - No DocBlock was found for property $from_string - No DocBlock was found for property $set_string - No DocBlock was found for property $order_string - No DocBlock was found for property $group_string - No DocBlock was found for property $set_array_keys - No DocBlock was found for property $order_array - No DocBlock was found for property $group_array - No DocBlock was found for property $values - No DocBlock was found for property $where_values - No DocBlock was found for property $limit - No DocBlock was found for property $offset - No DocBlock was found for property $sql - No DocBlock was found for property $query_map - No DocBlock was found for property $having_map - No DocBlock was found for property $conn_name - No DocBlock was found for property $queries - - - Query_Builder - \Query_Builder + \iQuery_Builder - - - - - + Query_Builder + \Query_Builder + + Convienience class for creating sql queries - also the class that +instantiates the specific db driver + + + - + $select_string - + + + + + - + $from_string - + + + + + - + $set_string - + + + + + - + $order_string - + + + + + - + $group_string - + + + + + - + $set_array_keys - + + + + + - + $order_array - + + + + + - + $group_array - + + + + + - + $values - + array() + + + + - + $where_values - + array() + + + + - + $limit - + + + + + - + $offset - + + + + + - + $sql - + + + + + - + $query_map - + array() + + + + - + $having_map - + + + + + - + $conn_name - + "" + + + + - + $queries - + + + + + - + __construct - function - - - - - \DB_PDO + \Query_Builder::__construct() + + Constructor + + + \DB_PDO - - object + + object - + $db - - + + \DB_PDO - + $params - - + + object - + select - function - - - - - string + \Query_Builder::select() + + Specifies rows to select in a query + + + string - - \$this + + \Query_Builder + - + $fields - - + + string - + _select - function - - - - - string + \Query_Builder::_select() + + Method to simplify select_ methods + + + string - - string + + string - - string + + string - + $field - - + + string - + $as - - + FALSE + string - + select_max - function - - - - - string + \Query_Builder::select_max() + + Selects the maximum value of a field from a query + + + string - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $as - - + FALSE + string - + select_min - function - - - - - string + \Query_Builder::select_min() + + Selects the minimum value of a field from a query + + + string - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $as - - + FALSE + string - + select_avg - function - - - - - string + \Query_Builder::select_avg() + + Selects the average value of a field from a query + + + string - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $as - - + FALSE + string - + select_sum - function - - - - - string + \Query_Builder::select_sum() + + Selects the sum of a field from a query + + + string - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $as - - + FALSE + string - + distinct - function - - - - - \$this + \Query_Builder::distinct() + + Adds the 'distinct' keyword to a query + + + \Query_Builder + - + from - function - - - - - string + \Query_Builder::from() + + Specify the database table to select from + + + string - - \$this + + \Query_Builder + - + $tblname - - + + string - + _like - function - - - - - string + \Query_Builder::_like() + + Simplify 'like' methods + + + string - - mixed + + mixed - - string + + string - - string + + string - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + + string - + $like - - + 'LIKE' + string - + $conj - - + 'AND' + string - + like - function - - - - - string + \Query_Builder::like() + + Creates a Like clause in the sql statement + + + string - - mixed + + mixed - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + 'both' + string - + or_like - function - - - - - string + \Query_Builder::or_like() + + Generates an OR Like clause + + + string - - mixed + + mixed - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + 'both' + string - + not_like - function - - - - - string + \Query_Builder::not_like() + + Generates a NOT LIKE clause + + + string - - mixed + + mixed - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + 'both' + string - + or_not_like - function - - - - - string + \Query_Builder::or_not_like() + + Generates a OR NOT LIKE clause + + + string - - mixed + + mixed - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + 'both' + string - + _having - function - - - - - mixed + \Query_Builder::_having() + + Simplify building having clauses + + + mixed - - mixed + + mixed - - string + + string - - \$this + + \Query_Builder + - + $key - - + + mixed - + $val - - + array() + mixed - + $conj - - + 'AND' + string - + having - function - - - - - mixed + \Query_Builder::having() + + Generates a 'Having' clause + + + mixed - - mixed + + mixed - - \$this + + \Query_Builder + - + $key - - + + mixed - + $val - - + array() + mixed - + or_having - function - - - - - mixed + \Query_Builder::or_having() + + Generates a 'Having' clause prefixed with 'OR' + + + mixed - - mixed + + mixed - - \$this + + \Query_Builder + - + $key - - + + mixed - + $val - - + array() + mixed - + _where - function - - - - - mixed + \Query_Builder::_where() + + Do all the repeditive stuff for where/having type methods + + + mixed - - mixed + + mixed - - array + + array - + $key - - + + mixed - + $val - - + array() + mixed - + _where_string - function - - - - - mixed + \Query_Builder::_where_string() + + Simplify generating where string + + + mixed - - mixed + + mixed - - string + + string - - \$this + + \Query_Builder + - + $key - - + + mixed - + $val - - + array() + mixed - + $conj - - + 'AND' + string - + _where_in - function - - - - - mixed + \Query_Builder::_where_in() + + Simplify where_in methods + + + mixed - - mixed + + mixed - - - - \$this + + string + + string + + + \Query_Builder + + - + $key - - + + mixed - + $val - - + array() + mixed - + $in - - + 'IN' + string - + $conj - - + 'AND' + string - + where - function - - \Query_Builder::where() + + Specify condition(s) in the where clause of a query Note: this function works with key / value, or a -passed array with key / value pairs]]> - - - mixed +passed array with key / value pairs + + + mixed - - mixed + + mixed - - \$this + + \Query_Builder + - + $key - - + + mixed - + $val - - + array() + mixed - + or_where - function - - - - - string + \Query_Builder::or_where() + + Where clause prefixed with "OR" + + + string - - mixed + + mixed - - \$this + + \Query_Builder + - + $key - - + + string - + $val - - + array() + mixed - + where_in - function - - - - - mixed + \Query_Builder::where_in() + + Where clause with 'IN' statement + + + mixed - - mixed + + mixed - - \$this + + \Query_Builder + - + $field - - + + mixed - + $val - - + array() + mixed - + or_where_in - function - - - - - string + \Query_Builder::or_where_in() + + Where in statement prefixed with "or" + + + string - - mixed + + mixed - - \$this + + \Query_Builder + - + $field - - + + string - + $val - - + array() + mixed - + where_not_in - function - - - - - string + \Query_Builder::where_not_in() + + WHERE NOT IN (FOO) clause + + + string - - mixed + + mixed - - \$this + + \Query_Builder + - + $field - - + + string - + $val - - + array() + mixed - + or_where_not_in - function - - - - - string + \Query_Builder::or_where_not_in() + + OR WHERE NOT IN (FOO) clause + + + string - - mixed + + mixed - - \$this + + \Query_Builder + - + $field - - + + string - + $val - - + array() + mixed - + set - function - - - - - mixed + \Query_Builder::set() + + Sets values for inserts / updates / deletes + + + mixed - - mixed + + mixed - - \$this + + \Query_Builder + - + $key - - + + mixed - + $val - - + NULL + mixed - + join - function - - - - - string + \Query_Builder::join() + + Creates a join phrase in a compiled query + + + string - - string + + string - - string + + string - - \$this + + \Query_Builder + - + $table - - + + string - + $condition - - + + string - + $type - - + '' + string - + group_by - function - - - - - mixed + \Query_Builder::group_by() + + Group the results by the selected field(s) + + + mixed - - \$this + + \Query_Builder + - + $field - - + + mixed - + order_by - function - - - - - string + \Query_Builder::order_by() + + Order the results by the selected field(s) + + + string - - string + + string - - \$this + + \Query_Builder + - + $field - - + + string - + $type - - + "" + string - + limit - function - - - - - int + \Query_Builder::limit() + + Set a limit on the current sql statement + + + int - - int + + int - - string + + string - + $limit - - + + int - + $offset - - + FALSE + int - + group_start - function - - - - - \$this + \Query_Builder::group_start() + + Adds a paren to the current query for query grouping + + + \Query_Builder + - + or_group_start - function - - - - - \$this + \Query_Builder::or_group_start() + + Adds a paren to the current query for query grouping, +prefixed with 'OR' + + + \Query_Builder + - + or_not_group_start - function - - - - - \$this + \Query_Builder::or_not_group_start() + + Adds a paren to the current query for query grouping, +prefixed with 'OR NOT' + + + \Query_Builder + - + group_end - function - - - - - \$this + \Query_Builder::group_end() + + Ends a query group + + + \Query_Builder + - + get - function - - - - - - int + \Query_Builder::get() + + Select and retrieve all records from the current table, and/or +execute current compiled query + + + + int - - int + + int - - object + + object - + $table - - + '' + mixed - + $limit - - + FALSE + int - + $offset - - + FALSE + int - + get_where - function - - - - - string + \Query_Builder::get_where() + + Convience method for get() with a where clause + + + string - - array + + array - - int + + int - - int + + int - - object + + object - + $table - - + + string - + $where - - + array() + array - + $limit - - + FALSE + int - + $offset - - + FALSE + int - + count_all - function - - - - - string + \Query_Builder::count_all() + + Retreive the number of rows in the selected table + + + string - - int + + int - + $table - - + + string - + count_all_results - function - - - - - string + \Query_Builder::count_all_results() + + Retrieve the number of results for the generated query - used +in place of the get() method + + + string - - int + + int - + $table - - + '' + string - + insert - function - - - - - string + \Query_Builder::insert() + + Creates an insert clause, and executes it + + + string - - mixed + + mixed - - mixed + + mixed - + $table - - + + string - + $data - - + array() + mixed - + insert_batch - function - - - - - string + \Query_Builder::insert_batch() + + Create sql for batch insert + + + string - - array + + array - - string + + string - + $table - - + + string - + $data - - + array() + array - + update - function - - - - - string + \Query_Builder::update() + + Creates an update clause, and executes it + + + string - - mixed + + mixed - - mixed + + mixed - + $table - - + + string - + $data - - + array() + mixed - + delete - function - - - - - string + \Query_Builder::delete() + + Deletes data from a table + + + string - - mixed + + mixed - - mixed + + mixed - + $table - - + + string - + $where - - + '' + mixed - + get_compiled_select - function - - - - - string + \Query_Builder::get_compiled_select() + + Returns the generated 'select' sql query + + + string - - bool + + bool - - string + + string - + $table - - + '' + string - + $reset - - + TRUE + bool - + get_compiled_insert - function - - - - - string + \Query_Builder::get_compiled_insert() + + Returns the generated 'insert' sql query + + + string - - bool + + bool - - string + + string - + $table - - + + string - + $reset - - + TRUE + bool - + get_compiled_update - function - - - - - string + \Query_Builder::get_compiled_update() + + Returns the generated 'update' sql query + + + string - - bool + + bool - - string + + string - + $table - - + '' + string - + $reset - - + TRUE + bool - + get_compiled_delete - function - - - - - string + \Query_Builder::get_compiled_delete() + + Returns the generated 'delete' sql query + + + string - - bool + + bool - - string + + string - + $table - - + "" + string - + $reset - - + TRUE + bool - + _get_compile - function - - - - - string + \Query_Builder::_get_compile() + + Helper function for returning sql strings + + + string - - string + + string - - + + bool + + - + $type - - + + string - + $table - - + + string - + $reset - - + + bool - + reset_query - function - - - - - void + \Query_Builder::reset_query() + + Clear out the class variables, so the next query can be run + + + void - + _run - function - - - - - string + \Query_Builder::_run() + + Executes the compiled query + + + string - - string + + string - - bool + + bool - - string + + string - - mixed + + mixed - - mixed + + mixed - + $type - - + + string - + $table - - + + string - + $simple - - + FALSE + bool - + $sql - - + NULL + string - + $vals - - + NULL + mixed - + __call - function - - - - - string + \Query_Builder::__call() + + Calls a function further down the inheritence chain + + + string - - array + + array - - mixed + + mixed - + $name - - + + string - + $params - - + + array - + _compile - function - - - - - string + \Query_Builder::_compile() + + String together the sql statements for sending to the db + + + string - - string + + string - - \$string + + \$string - + $type - - + '' + string - + $table - - + '' + string + eJztXetz2za2/yz/FYjGLalWttPde78kVbxu7KTpOnZqJ+2948loKQmyWFOkTFJ2PFn/7/c8AALgQ5YTS87O3M7ORibxOPj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qq9Ts9V2++rt+08oxZFi7KPXCC5v3/fj7LWBQ03Z7Ncs64xqbNaL1B/swlNWXJWrVnSMD0IUXPA4GQm1/KCxobvuloyyNp6ya73WwG9IXO9hgvzk6PTjB05TvjxFqnD68n4FHWJ8HX+pfbHNhryP+2Dv8cHAq/HLCr7negS9dqYxdhahdPvjwbn/v/YGh6vTgfcEN5jwZX3VcbVIFYt0m94G1oEnNWNSuU7+aLrMwWty4FVrK0jYGvMnRvrSNG6RvG5bV5ZmT/PURD8/AM2VKfaycLtRU6tMeiwm1zzyUrMntYk27n92sdqWPACzuys4Qb+zK/SBotavSR/pqO6pLACqhb4oQ/JM64Cc1wE+WAJ5Tpq7CoM7z3nC+F2clUelDsYWpa79rMPPpDIRKwWIL1KpU/FVOyiqHO27xa8EH8QjtReZKFV3Znk1m/wf5YqSZ - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + iDB_SQL \iDB_SQL - - - - - - + + parent for database manipulation subclasses + + + - + limit - function - - - - - - string + \iDB_SQL::limit() + + Get database specific sql for limit clause + + + + string - - int + + int - - int + + int - - string + + string - + $sql - - + + string - + $limit - - + + int - + $offset - - + FALSE + int - + random - function - - - - - - string + \iDB_SQL::random() + + Get the sql for random ordering + + + + string - + db_list - function - - - - - string + \iDB_SQL::db_list() + + Returns sql to list other databases + + + string - + table_list - function - - - - - string + \iDB_SQL::table_list() + + Returns sql to list tables + + + string - + system_table_list - function - - - - - string + \iDB_SQL::system_table_list() + + Returns sql to list system tables + + + string - + view_list - function - - - - - string + \iDB_SQL::view_list() + + Returns sql to list views + + + string - + trigger_list - function - - - - - string + \iDB_SQL::trigger_list() + + Returns sql to list triggers + + + string - + function_list - function - - - - - NULL + \iDB_SQL::function_list() + + Return sql to list functions + + + NULL - + procedure_list - function - - - - - string + \iDB_SQL::procedure_list() + + Return sql to list stored procedures + + + string - + sequence_list - function - - - - - string + \iDB_SQL::sequence_list() + + Return sql to list sequences + + + string - + type_list - function - - - - - mixed + \iDB_SQL::type_list() + + Return sql to list database field types + + + mixed - + column_list - function - - - - - - string + \iDB_SQL::column_list() + + Get information about the columns in the +specified table + + + string + + + string - + $table - + + eJytlU1vm0AQhs/wK+bgg2PF3jbtqR9qkiapVFmV0rTq0VqWwawMu2Q/0lpV/3uHBUwS2xJU5cIyzDvP7MwyvPtQ5VXMZrMYZnDr0WxpUa9vDGJjgEsvixQNMLjijifcIlwk1hkunNQKlnyLplWdc+9ybaLomyy1y7fweQE/uDGowluhq62R69xFH7sVTMUJnL14eQbz+vYq+BVSbSCKcucq+4axtXS5TxZCl4w/SO5eE5Z1ydbeApXFxp/cq1wW1nmzRq1ItPAbJnSKLE14Om+dg7DiYsPXJOxisThmDOb/7Yq7ylacSuAg0wbSroYlV7LyBQ9FtD4RBbcWbVfJNjno90k+z40slsqhybhAkFeXq7vbJfyO46jGRqT5hK4H2gqFzKQAe1+EVApZSgfE9VQQcg+Sc972tnmizHkJZJFqDRNSPjYTHCYhyp5VZ5nF1myQuqHaILWJxVHlE2oFZF41pyhEmdaA0zbkaRfk/c3F8u765O2zfbkcdzsxXKW6BG3onLaMQ5sZkkgTakq4qOd9DUIbeE5TstYBnW/s22l75hBKmqzqINMnuzpEoejF2OBBMzC+3VqH5T9hGulqDO1B4s+RlFoytFY0UdZoxlarUR1lPEF0qn3Gl+/L5RFCtxiGsE4bTKEyWmDqzdiu7HQDaXjvUYnRvW9lO8jex/KEsptBmcQiBbetDgBL+QvTY00ixSFWPQikohFQNnOUJ9o3o0Howpd0QKQKj8G7nYBU3XBo+wweT7nhRWgQTVqTELGu9p/6H3KtUtBZ/ZlTGRb0j/0LRqw9LA== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + iQuery_Builder \iQuery_Builder - - - - - - + + Interface defining the Query Builder class + + + - + select - function - - - - - string + \iQuery_Builder::select() + + Specifies rows to select in a query + + + string - - \$this + + \iQuery_Builder + - + $fields - - + + string - + select_max - function - - - - - string + \iQuery_Builder::select_max() + + Selects the maximum value of a field from a query + + + string - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $as - - + FALSE + string - + select_min - function - - - - - string + \iQuery_Builder::select_min() + + Selects the minimum value of a field from a query + + + string - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $as - - + FALSE + string - + select_avg - function - - - - - string + \iQuery_Builder::select_avg() + + Selects the average value of a field from a query + + + string - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $as - - + FALSE + string - + select_sum - function - - - - - string + \iQuery_Builder::select_sum() + + Selects the sum of a field from a query + + + string - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $as - - + FALSE + string - + distinct - function - - - - - \$this + \iQuery_Builder::distinct() + + Adds the 'distinct' keyword to a query + + + \iQuery_Builder + - + from - function - - - - - string + \iQuery_Builder::from() + + Specify the database table to select from + + + string - - \$this + + \iQuery_Builder + - + $tblname - - + + string - + like - function - - - - - string + \iQuery_Builder::like() + + Creates a Like clause in the sql statement + + + string - - mixed + + mixed - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + 'both' + string - + or_like - function - - - - - string + \iQuery_Builder::or_like() + + Generates an OR Like clause + + + string - - mixed + + mixed - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + 'both' + string - + not_like - function - - - - - string + \iQuery_Builder::not_like() + + Generates a NOT LIKE clause + + + string - - mixed + + mixed - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + 'both' + string - + or_not_like - function - - - - - string + \iQuery_Builder::or_not_like() + + Generates a OR NOT LIKE clause + + + string - - mixed + + mixed - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $val - - + + mixed - + $pos - - + 'both' + string - + having - function - - - - - mixed + \iQuery_Builder::having() + + Generates a 'Having' clause + + + mixed - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $key - - + + mixed - + $val - - + array() + mixed - + or_having - function - - - - - mixed + \iQuery_Builder::or_having() + + Generates a 'Having' clause prefixed with 'OR' + + + mixed - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $key - - + + mixed - + $val - - + array() + mixed - + where - function - - \iQuery_Builder::where() + + Specify condition(s) in the where clause of a query Note: this function works with key / value, or a -passed array with key / value pairs]]> - - - mixed +passed array with key / value pairs + + + mixed - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $key - - + + mixed - + $val - - + array() + mixed - + or_where - function - - - - - string + \iQuery_Builder::or_where() + + Where clause prefixed with "OR" + + + string - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $key - - + + string - + $val - - + array() + mixed - + where_in - function - - - - - mixed + \iQuery_Builder::where_in() + + Where clause with 'IN' statement + + + mixed - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $field - - + + mixed - + $val - - + array() + mixed - + or_where_in - function - - - - - string + \iQuery_Builder::or_where_in() + + Where in statement prefixed with "or" + + + string - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $field - - + + string - + $val - - + array() + mixed - + where_not_in - function - - - - - string + \iQuery_Builder::where_not_in() + + WHERE NOT IN (FOO) clause + + + string - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $field - - + + string - + $val - - + array() + mixed - + or_where_not_in - function - - - - - string + \iQuery_Builder::or_where_not_in() + + OR WHERE NOT IN (FOO) clause + + + string - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $field - - + + string - + $val - - + array() + mixed - + set - function - - - - - mixed + \iQuery_Builder::set() + + Sets values for inserts / updates / deletes + + + mixed - - mixed + + mixed - - \$this + + \iQuery_Builder + - + $key - - + + mixed - + $val - - + NULL + mixed - + join - function - - - - - string + \iQuery_Builder::join() + + Creates a join phrase in a compiled query + + + string - - string + + string - - string + + string - - \$this + + \iQuery_Builder + - + $table - - + + string - + $condition - - + + string - + $type - - + '' + string - + group_by - function - - - - - mixed + \iQuery_Builder::group_by() + + Group the results by the selected field(s) + + + mixed - - \$this + + \iQuery_Builder + - + $field - - + + mixed - + order_by - function - - - - - string + \iQuery_Builder::order_by() + + Order the results by the selected field(s) + + + string - - string + + string - - \$this + + \iQuery_Builder + - + $field - - + + string - + $type - - + "" + string - + limit - function - - - - - int + \iQuery_Builder::limit() + + Set a limit on the current sql statement + + + int - - int + + int - - string + + string - + $limit - - + + int - + $offset - - + FALSE + int - + group_start - function - - - - - \$this + \iQuery_Builder::group_start() + + Adds a paren to the current query for query grouping + + + \iQuery_Builder + - + or_group_start - function - - - - - \$this + \iQuery_Builder::or_group_start() + + Adds a paren to the current query for query grouping, +prefixed with 'OR' + + + \iQuery_Builder + - + or_not_group_start - function - - - - - \$this + \iQuery_Builder::or_not_group_start() + + Adds a paren to the current query for query grouping, +prefixed with 'OR NOT' + + + \iQuery_Builder + - + group_end - function - - - - - \$this + \iQuery_Builder::group_end() + + Ends a query group + + + \iQuery_Builder + - + get - function - - - - - - int + \iQuery_Builder::get() + + Select and retrieve all records from the current table, and/or +execute current compiled query + + + + int - - int + + int - - object + + object - + $table - - + '' + mixed - + $limit - - + FALSE + int - + $offset - - + FALSE + int - + get_where - function - - - - - string + \iQuery_Builder::get_where() + + Convience method for get() with a where clause + + + string - - array + + array - - int + + int - - int + + int - - object + + object - + $table - - + + string - + $where - - + array() + array - + $limit - - + FALSE + int - + $offset - - + FALSE + int - + count_all - function - - - - - string + \iQuery_Builder::count_all() + + Retreive the number of rows in the selected table + + + string - - int + + int - + $table - - + + string - + count_all_results - function - - - - - string + \iQuery_Builder::count_all_results() + + Retrieve the number of results for the generated query - used +in place of the get() method + + + string - - int + + int - + $table - - + '' + string - + insert - function - - - - - string + \iQuery_Builder::insert() + + Creates an insert clause, and executes it + + + string - - mixed + + mixed - - mixed + + mixed - + $table - - + + string - + $data - - + array() + mixed - + update - function - - - - - string + \iQuery_Builder::update() + + Creates an update clause, and executes it + + + string - - mixed + + mixed - - mixed + + mixed - + $table - - + + string - + $data - - + array() + mixed - + delete - function - - - - - string + \iQuery_Builder::delete() + + Deletes data from a table + + + string - - mixed + + mixed - - mixed + + mixed - + $table - - + + string - + $where - - + '' + mixed - + get_compiled_select - function - - - - - string + \iQuery_Builder::get_compiled_select() + + Returns the generated 'select' sql query + + + string - - bool + + bool - - string + + string - + $table - - + '' + string - + $reset - - + TRUE + bool - + get_compiled_insert - function - - - - - string + \iQuery_Builder::get_compiled_insert() + + Returns the generated 'insert' sql query + + + string - - bool + + bool - - string + + string - + $table - - + + string - + $reset - - + TRUE + bool - + get_compiled_update - function - - - - - string + \iQuery_Builder::get_compiled_update() + + Returns the generated 'update' sql query + + + string - - bool + + bool - - string + + string - + $table - - + '' + string - + $reset - - + TRUE + bool - + get_compiled_delete - function - - - - - string + \iQuery_Builder::get_compiled_delete() + + Returns the generated 'delete' sql query + + + string - - bool + + bool - - string + + string - + $table - - + "" + string - + $reset - - + TRUE + bool - + reset_query - function - - - - - void + \iQuery_Builder::reset_query() + + Clear out the class variables, so the next query can be run + + + void + eJzVWltv2zYUfrZ/xVkQQE7hRFu3p27G2rVpm82J0bRFHw1Koi02EqmSlBNj2H/fISnFshMncmdJWV4iS7x937kf6bffszjr+8+e9eEZfMipXOKFuX4rKXU34I+cJRGV4MMboklAFIVXgdKShJoJDmOypLKY9TIj4RWZ016vXAteklzHQvZ6n1gqdLyEP0/gC5GScvs0FNlSsnmse6/LKxiER/D8x5+ew7H597MdlzB+Bb1erHWmXvj+nOk4D05CkfpkwYj+BU/ir/ZMWEi5om48Ds9iliidyzkVHCed5Fd+KCLqRwGJjovBONHv930fjvf21y+ZPeOayhkJKUR0xjjjc9DxJr9hQpTaIBJWmFQebN70++x2YWZvTsvF/u73e/vFYpb7AT7ShIbanoBRte89cD0krIdwP2Y0ZDPcAqS4VqAFKLcz40DgmyUAx9mxSJYkKaBKGmIPcVYSKfdEUpQ6h0MdM3vH7/eyPECJwyznTn/duoNi2tGveyeuAspupazsU3LD0jyFBUlyCmK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vtasTDicTdDGI3ByuCr3jgbRIyCZXdANOEYbGqc7DN+9tKliX4glEe0kJ+1obM2Y6csZC1DkjtVMu1Nw7t3OYILOv7MgGzP8sioDtOL1E7KUPtNMrI8zTAVEbM3OcC5cuUMo25Ze4RWgtGGN9GRyhyrqdoDwUdjSO09reBsMjVjA6ZJ/Oie1nYFxwD6pBLykxGn5ivQ3CaG2pUzungXumYFodaGVs7VQsvyrTCcqwbKv0PqsHWN2h3TKnI1c3rzDXs9v4W9G7rlWGYya10BSrwXW3aCXy3dQfw37gq3L57Lj8TqGvha3ArjrMGXlf8b/rBRjS9+Nbqw9j4ADxXK4m620pt+BTPOVHP1kS7dQICIRI4RM+wS0lkAk6ZMEzLb7MqEdwuN/p0+bnx6HIfGc7kuyFj0910y4Sz/m6YWPM8T0EtnGvohow1tzQ6OGiaDOebzpkKaZIQTkWumvdNrxNKMPnJtSs9zJeysCCSGcxqCMrVqZzelEVqiLExoCBzfqeiWwi2zcVb4qZ2BVPS/WO/B8Yi0eRPzN6eBu4D25Mszv4FhiG4RQ== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + DB_Util \DB_Util - - - - - - + + Abstract class defining database / table creation methods + + + - + $conn - - - - + + + Reference to the current connection object + - + __construct - function - - - - - object + \DB_Util::__construct() + + Save a reference to the connection object for later use + + + object - + $conn - - + + object - + __call - function - - - - - string + \DB_Util::__call() + + Enable calling driver methods + + + string - - array + + array - + $method - - + + string - + $args - - + + array - + create_table - function - - - - - - string + \DB_Util::create_table() + + Get database-specific sql to create a new table + + + + string - - array + + array - - array + + array - - array + + array - - string + + string - + $name - - + + string - + $columns - - + + array - + $constraints - + array() array - + $indexes - + array() array - + delete_table - function - - - - - - string + \DB_Util::delete_table() + + Get database-specific sql to drop a table + + + + string - - string + + string - + $name - - + + string - + backup_structure - function - - - - - - string + \DB_Util::backup_structure() + + Return an SQL file with the database table structure + + + + string - + backup_data - function - - - - - - string + \DB_Util::backup_data() + + Return an SQL file with the database data as insert statements + + + + string + eJy1Vl1v0zAUfXZ+xUXqQzq1DQyeGIMxNpBQQdrGxGPkJDeNWeoEf2yrpv13ru2kXUsnbaj0obXs+3HuOffaffehrdoo2duLYA/OLKoFLdz6s0IMG3BsRV2gggROuOEZ1wgfM20Uz41oJEz5AlXnddTy/IrPkLE+Fhxxa6pGMfZDzBtTLeDrBH5ypVD607xpF0rMKsM+9SuI8yHsv3y1D2P389rb1UJeAWOVMa1+myQzYSqbTfJmnvBrwc0bQpKsctYiR6kx2JN5W4laG6tm2EhymtirJG8KTIqMF+POmByTKEoSGO/sE/XM9nxBXnOtocBSSCFnUPSEJkCLGiFXyD2rcyTWCr3BK6xK1Dbb3Ewivp7n5Di9NKKGuyhiDgkjx3MskcjPEUwDpqKU1olBLo2UGCRtsl+0cuZJxFolrrlBGDiDg4itQl3wawQO6q+Im5GgbBTUFESBJaLJ1/tTVYrPexsfv89pM1IFSitDmDSlQyrN5ib2dsOI3UWMDUwl9Pi924HDDiFE7N6j3KmSD8o+lUEqXtdeQ+KHCusF2yiOQDujQTh+eEIzwBcw4GqmH6+acsSd7yjYdpWLEuKwn+Kt0EbHD7gY9fmGZO3NmUJqf+lBp6SBSl2W1GOIw/dW/z4p6e5YJRb6SN8vp9OD/0M1hXuxGplvPbE7Hs2lnl/QLAdxrFvMRUkq6N+162c/kK7LJd6EGV0p3E/bNr0ln+MWtfOmtnOpt564BudCmm2nQhZ4i91Jp0BI1fXOcvI3mygUkHrosYc1WsIYbUl+GLphONpI3e9TKzyRukI1LRH3T6Q9q8QCa1wvcbh2T52HYFzCxdkUSkHDe0Pvh7+rljdwuH/DHWPVo4CfBSyjC9q26TJovEbek2C5BXANgl4oZSgviTnHrkl2BdAl8dju3ft3KgtoSiiy1NLjMaE/CH8A4jdghg== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - - common.php - - + QBASE_PATH - - - - + \\QBASE_PATH + dirname(__FILE__) . '/' + + Reference to root path + - + QDRIVER_PATH - - - - + \\QDRIVER_PATH + QBASE_PATH . 'drivers/' + + Path to driver classes + - + query_autoload - function - - - - - string + \query_autoload() + + Load a Query class + + + string - + $class - - + + string + eJytU8tu2zAQPFNfsQiCSDISs017Shs0Tu2gKQI0L7RHgpZWEhGJVEgqrRH430tKoq1ceqovJrw7M7uz489f2qqN6GwWwQzuOtQb9/DvK404/ACXnahz1EBhyS1fc4OwWBureWaFknDDN6hH1EXLsydeIiGBCy54ZyulCXkUjbLVBr7P4RfXGmVfzVS70aKsLPkaXpBkKZy+e38KJ/7rQ99XC/kEhFTWtuaM0lLYqlvPM9VQ/iK4/egmoXvNWmQoDQ79rr2tRG1sp0tU0oHm3RPNVI40X/P8ZGx2QBpFlMLJf/tEwdlFZ1WtuHexUBr8U8gS+AsXNV/XCHlwNqu5MWjGYQb0PRbo/MoQrAKtlIWW26pvybEQEpP47nLxsGK3i8dv8THkQkveYMLY1fXNirF0HtM4/bTju3VoT5Vr8eImmkru+Jb31z9X94FxTz+PB5QZGamb7rkTGsGoxo2vmsZlouhkHw4T6aGaTBmGprlL3nSqG2cK8DFz/Uz7UGnegEuc9+wwlGgUVODZYxgfTU6GljR6jcjwhHOP9tXfqEPZKRM3fi975UZcC52DQS9msd5ERBSQBAmGf4SxJokL38YyJSVmNk7h6AiCxvk5xMVIFKcRcfLEBZ1vWMPbJM4VEzKruxydoWWt1snUZHeigKWzwRo3ISEaXWyle22jsA3z13cr7S2FORyMV6SvQ9PWcxz4HQ+Hg+1QE1GPC/19r19ZGFaIGpOJWDpuMx6TKZfFN/V+PoK1wZHBRTCZCgeGvixZb8vIcAy3yx9nZyXaRfg7LIeIJamH9bh/G+mWmGhtBwMPBgO3frRtn9QHtNC1wHd/xsi09S42TGPpbuwCEr/NUwj6Suagih3ca/wF3/6atA== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + do_include - function - - - - - string + \do_include() + + Bulk directory loading workaround for use +with array_map and glob + + + string - - void + + void - + $path - - + + string - + mb_trim - function - - - - - - string + \mb_trim() + + Multibyte-safe trim function + + + string + + + string - + $string - + - + db_filter - function - - - - - array + \db_filter() + + Filter out db rows into one array + + + array - - mixed + + mixed - - array + + array - + $array - - + + array - + $index - - + + mixed - + Query - function - - - - - mixed + \Query() + + Connection function + + + mixed - - \Query_Builder + + \Query_Builder - + $params - - + '' + mixed - + + \InvalidArgumentException BadDBDriverException \BadDBDriverException - \InvalidArgumentException - - - - - + + Generic exception for bad drivers + + + - + + \UnexpectedValueException BadConnectionException \BadConnectionException - \UnexpectedValueException - - - - - + + Generic exception for bad connection strings + + + + eJy9V1tv2zYUfpZ+xWlgVHbnRF23J2dpmjTt0KFFu6TbMHSdQIm0zVoWVZJKYqT57zu86eK4exiaBUgi8Vx4zneu+um4XtZx+uhRDI/g14bJDT6Y55eSMXcApw0vKZOQwhnRJCeKwUmutCSF5qKC12TDpJd6VpNiRRYsioIueEYavRQyit7ztdDLDfxyAH8QKVllqYWoN5Ivljp6Hp5gXEzgyePvn8C++feD5St5tYIoWmpdq1maLrheNvlBIdYpueRE/4iWpN2dJS9YpZjjR/Z6yUulG7lgokKhg2aVFoKylOaE7ntmFEzjOE1h/5v9xAHZn0uRkxKKkijFVDpvKoudAr0kGqioEg2SkbLcwJxrINXmaskkA1a2dnlFrGKSF8CuC1Zb+OdCAnoBVPJLJtVWIKDDRDX59mEaW4vglNCz0zOr4EWrmF1rVlEFr6pLUnJ6IhfNmlW6Y7i5vTe4vuplIaqKubzDDOTV4j87/LzVdNfl3yp2XSOR0d9J2bB7dZnPYQwPIKRExq650mqcUJHxqigbypLJJL6JI4NNhH6dNuUKKJdon8DqLAWhiANcCbkiUjQVtWA1mDiG+woLBbDcyCZbkxozi8ICk9HQLB1xk2TtwYRRTfTSnUuG9VLBpeDUHKRxFEyEzrSxFZjEEdoXSfa5QbMyURWBcBhHt/H/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tcZEt0KzO0IuKdFTkxDdej5iuwphx6Y/TvqTnKDrdIrzzH7oYE92XzoqmcKTe0z/C9/0EMqSmZ1xzq/RirmZs/2i32pxjrFtcDTHnmo0ZI7Q73DupPOgF8Hhp32YPnYC+vky2FhM1bWhmfhudUEu7VJgCrc0K8NOexFT0o2wHVPes9jlzpBdbO2n712ZIZc147wb7ru96m8YYTl8gR9CYo75u16L6qBe1v8AfufzyQ== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + - - PgSQL_SQL - \PgSQL_SQL + \iDB_SQL - - - - - + PgSQL_SQL + \PgSQL_SQL + + PostgreSQL specifc SQL + + + - + limit - function - - - - - string + \PgSQL_SQL::limit() + + Limit clause + + + string - - int + + int - - int + + int - - string + + string - + $sql - - + + string - + $limit - - + + int - + $offset - - + FALSE + int - + random - function - - - - - string + \PgSQL_SQL::random() + + Random ordering keyword + + + string - + db_list - function - - - - - string + \PgSQL_SQL::db_list() + + Returns sql to list other databases + + + string - + table_list - function - - - - - string + \PgSQL_SQL::table_list() + + Returns sql to list tables + + + string - + system_table_list - function - - - - - string + \PgSQL_SQL::system_table_list() + + Returns sql to list system tables + + + string - + view_list - function - - - - - string + \PgSQL_SQL::view_list() + + Returns sql to list views + + + string - + trigger_list - function - - - - - string + \PgSQL_SQL::trigger_list() + + Returns sql to list triggers + + + string - + function_list - function - - - - - NULL + \PgSQL_SQL::function_list() + + Return sql to list functions + + + NULL - + procedure_list - function - - - - - string + \PgSQL_SQL::procedure_list() + + Return sql to list stored procedures + + + string - + sequence_list - function - - - - - string + \PgSQL_SQL::sequence_list() + + Return sql to list sequences + + + string - + column_list - function - - - - - string + \PgSQL_SQL::column_list() + + Return sql to list columns of the specified table + + + string - - string + + string - + $table - - + + string - + type_list - function - - - - - string + \PgSQL_SQL::type_list() + + SQL to show list of field types + + + string + eJzVV21T4zYQ/mz/im3mZhwYiO+ln3owbYAwpRPgLqFz0y/1KLZia7Al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P6thmvdbTW0rM2tBXSYpVXBfY4NQWcPN2TSWA+15fg154y84+bUdw4aQhusN+gGSd5IVkelcoIsrBX56czQ4w1Appa66t85XvCp6zKbSOrXzR5Tj6dUsbo8YzNsmB/iKIqopzL1GbNV/f6iUqNPBj0PI/xw2LoOe4W8V7MJRTsu+ao96sxXz/aoli8pw68t4g8vVcx5CZTt+6dMQUMc45xRvq2vc2o9Dcb1Gbl2uTg2gvWBf6op7Dla6xVbweAP6NgueHMp7bJWh21wDmX934YDmRCxyxTzHcMthRlr8zKvwCtgK/n - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + + + \DB_Util + PgSQL_Util + \PgSQL_Util + + Posgres-specific backup, import and creation methods + + + + + + __construct + \PgSQL_Util::__construct() + + Save a reference to the current connection object + + + object + + + void + + + + $conn + + + + + + create_table + \PgSQL_Util::create_table() + + Database-specific method to create a new table + + + string + + + array + + + array + + + array + + + string + + + + $name + + string + + + $columns + + array + + + $constraints + array() + array + + + $indexes + array() + array + + + + delete_table + \PgSQL_Util::delete_table() + + Database-specific SQL for dropping a table + + + string + + + string + + + + $name + + string + + + + backup_structure + \PgSQL_Util::backup_structure() + + Create an SQL backup file for the current database's structure + + + string + + + + + backup_data + \PgSQL_Util::backup_data() + + Create an SQL backup file for the current database's data + + + array + + + string + + + + $exclude + array() + array + + + Implement Backup function - - PgSQL_Util - \PgSQL_Util - \DB_Util - - - - - - - - __construct - function - - - - - object - - - void - - - - $conn - - - - - - create_table - function - - - - - string - - - array - - - array - - - array - - - string - - - - $name - - - - - $columns - - - - - $constraints - - array - - - $indexes - - array - - - - delete_table - function - - - - - string - - - string - - - - $name - - - - - - backup_structure - function - - - - - string - - - - - backup_data - function - - - - - array - - - string - - - - $exclude - - - - - + eJzNV21v2zYQ/iz9iqsRTFLh2G23T3HTNondrYUXp7G7fUgKg5Zom4tMqSKV1Cvy33dHUi92s64DOmABjEjHe3nu4fGOev4yX+d+//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nZR9a5/9lq6Y8JTvdkXX15xxMLycXDgqO0HPaPSCTvAf03Dmxoo06dvRDUuR8qYI3NRMHGGBAjvEyqJFzbdQYL3Pa+vQMYC5zSbDCbzBOuEbinXqcDjLFkv/Sz7ocb9K3Czjn+K0TP5FnTiSyGVYWe9PQlNEynT5tVCHL7CH2cJSpmlZSl+LVOPNNit1c3YVbLMSkkwGGu6Y1Ptt2sVrWnQTykCYJ2K5DJ2wW2cX1d3kAMPlpZ7bBkG7VbUYi4LSMkxSU61vX02XdeGov+pWV7XepqPx6GxGF/jLya90SJDHDdpE7pygZtGm5SPdKkOydtMN482dBt1YXyy5jtcnaRpeDCdHR69Hs7Nf5ifT6eTM6tMPsQ8NXSxJqnukKQfRaokglGXQjmm85GelxGbt4kXwHJ5GdO3UQpa89u3Qnr8fj22XxmDnbGGrzI4q6gIKFlvALdbUdWjthm9V1ZKXolAaiuyu3eXR6Su7X6Ra47h68iFy40DgR0Gh52in9q5SBMIdAvJvFbFkUUBHU+0M7opQ2i/01R7V+FpXzS1LS6xNo2KDUJR3ZYZB7Bp5kJwneE/DZGkOfullw/LQIv3BbHAXgo/kIsCbo3P9oE1AZRLUOn6tNXedHEvrzfl0dDmDN+ezyV5h4SwLetUECzrdTtAaYbgewW8n4/ejKYQttW4VrhdEg2Dgt4E1272zDXYyN6jad7embhvj9kmjAXotr2WnRoCvNGpb/qMeyeqDWg3axotprPf0kTjCLzYsr3yF0nmJX1c9/JD+C47TamQ= - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \DB_PDO PgSQL \PgSQL - \DB_PDO - - - - - + + PostgreSQL specifc class + Extends PDO to simplify cross-database issues + + - + __construct - function - - - - - string + \PgSQL::__construct() + + Connect to a PosgreSQL database + + + string - - string + + string - - string + + string - - array + + array - + $dsn - - + + string - + $username - - + null + string - + $password - - + null + string - + $options - - + array() + array - + truncate - function - - - - - string + \PgSQL::truncate() + + Empty a table + + + string - + $table - - + + string - + get_schemas - function - - - - - array + \PgSQL::get_schemas() + + Get a list of schemas for the current connection + + + array + eJy1VE1z2jAQPcu/YsvQMWQCbtOeCLQhYNq0lHxAJ5fOeIQsbE2M5EhyWiaT/96VbUKSSXpKOZi19u3Xe2v1P+dp7gV7ex7swXnB9QYNZ08059UBHBcii7mGAMbU0iU1HIZLYzVlVigJU7rhuo46yim7ogknZJsLjmhhU6UJWYi1sukGvnXhkmrNZellKt9okaSWjLYWtFgbDt69P4CO+/tQ4jIhr4CQ1Nrc9IIgETYtll2m1gG9EdR+xE6CXc1MMC4Nr/AIz1ORGVvohCuJQd3iKmAq5kG8pHGnBmNg4HlBAJ1X+3lbZs+UsYnm8/MpmJwzsWLAMmrME9pgN4EpltvDsRY3XJuyvzIKzhKXif+xXMYGxsfR2fgUbj2PuHIEw0dKSs4sWAXUFa9rx7V+DlPisLCma0AxhUygGRv53HFhuJZ0zZ/z5djPb6Xjhz5Ul24Amip3C2KcK/BIXiyRaVgVstqbKGLotLpgtuUq7+8KDWSRZfu75Nv3OuGgLNBqtz1y6xEiVtDCPLkydR4/T8x15rdhMBjAZDidh4gsocQBYFAjen7XvR+i484j+MT2ubS93j9ae9DVrqE2prhz9L/u8tzLGa5zu0ElUb3sRfHunc9wjaNIRi1vVaiauCZy4MhYXPycjYaLEBo+dOtEaPgN31HTtKkwnU/XbjVbLuR/T/uFW5w1E8aCWoFhKV9TAyulwaYcWOHuDgusWnGcbkeI5viNy2r/XmAi4TaqU7Ye09Dv9/EbcUsyD6fhaAHjk/niZIZGowpw8jdgcnH6Axp5EpU0mYYLuPwaXoSPYbPTBUxPvodu1X5Fb30HG87Gj0FvkHwhcbI1dc3Vjfke9nGIhJB6nlqBuLwHoqdC3OGdFcrYcVVudVThunix/wUWTqfG - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \DB_Util ODBC_Util \ODBC_Util - \DB_Util - - - - - + + ODBC-specific backup, import and creation methods + + + - + __construct - function - - - - - object + \ODBC_Util::__construct() + + Save a reference to the current connection object + + + object - - void + + void - + $conn - + - + create_table - function - - - - - string + \ODBC_Util::create_table() + + Database-specific method to create a new table + + + string - - array + + array - - array + + array - - array + + array - - string + + string - + $name - - + + string - + $columns - - + + array - + $constraints - + array() array - + $indexes - + array() array - + delete_table - function - - - - - string + \ODBC_Util::delete_table() + + Remove a table from the database + + + string - - string + + string - + $name - - + + string - + backup_structure - function - - - - - string + \ODBC_Util::backup_structure() + + Create an SQL backup file for the current database's structure + + + string - + backup_data - function - - - - - string + \ODBC_Util::backup_data() + + Create an SQL backup file for the current database's data + + + string + eJy1ldtOGzEQhq+9TzFCqAkoyba0V2mrQgi9qCIoJ/Uy8nonWTe79sqHQIR49473kAREVYogUhRnPOOZ+f5Z75dvZVZG8f5+BPtw7tGsaBHW3w1ibYCRl3mKBmIYc8cTbhGOEusMF05qBRO+QtNEHZZcLPgcGWvPgkPuXaYNY1ey0C5bwY8B/OLGoKp2hS5XRs4zx47bFXTFHhy8/3AA/fDzsfLLpVoAY5lzpR3G8Vy6zCcDoYuYLyV3n6iSeJMzlwKVxdqf3MtM5tZ5M0etKGjgF7HQKcZpwtN+40yBcRTFMfRf7RO1ZM/Go+O+LVHImRSQECRf9kAWpTYOuEpBGOQVzQKJVmof8YRNa9YnrXFs5BKNrQoXObe2yjO9djIHvHWoUgvjUf3/LopYKIbRGZd8icDB4AxJBoHgNLgMQfggiwOhlcJaXJ38plWIqiKpHsOLxgrvdoNnvWGQ8CpYapkGQxyx0idEFmZe1UdNp+RNY+OF69aRexG7ixijMynrcLjtUO9/jth9xKjwVxWFbUi0A73RpuYfiFSSBE4Kb4DccnyMgWqVag67ihe4bafp5iugFnJfKPvkTuiTS+We2pUqxVu0D7jWqf5Ctq50WtXYrarprbP3nsj5tTJ193qPMrb2Rpc4DuMEgquOg4XSN5DRd5tMQ4U1RZ5eTyaVZK+t2EawCyz0cp0aZkYX1eimjZD/lug5QFPM8SHQBkkTvDO+OPsJV0ejyQncVfv3O28zq5vOjxvoCi7PJ80VAjMZIGjz4PFtWXQs1E+TN1tcntN/ffp0Hd1dTwScarqwypLcKwFoGsKQbNB0Om88AS/iEJYvQhAC/7/7+/AaOaFrXc/qK9nTFTygN+0f/ZEWtQ== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + + \iDB_SQL ODBC_SQL \ODBC_SQL - - \iDB_SQL - - - - - + + ODBC SQL Class + + + - + limit - function - - - - - string + \ODBC_SQL::limit() + + Limit clause + + + string - - int + + int - - int + + int - - string + + string - + $sql - - + + string - + $limit - - + + int - + $offset - - + FALSE + int - + random - function - - - - - string + \ODBC_SQL::random() + + Random ordering keyword + + + string - + db_list - function - - - - - NULL + \ODBC_SQL::db_list() + + Returns sql to list other databases + + + NULL - + table_list - function - - - - - NULL + \ODBC_SQL::table_list() + + Returns sql to list tables + + + NULL - + system_table_list - function - - - - - NULL + \ODBC_SQL::system_table_list() + + Returns sql to list system tables + + + NULL - + view_list - function - - - - - NULL + \ODBC_SQL::view_list() + + Returns sql to list views + + + NULL - + trigger_list - function - - - - - NULL + \ODBC_SQL::trigger_list() + + Returns sql to list triggers + + + NULL - + function_list - function - - - - - NULL + \ODBC_SQL::function_list() + + Return sql to list functions + + + NULL - + procedure_list - function - - - - - NULL + \ODBC_SQL::procedure_list() + + Return sql to list stored procedures + + + NULL - + sequence_list - function - - - - - NULL + \ODBC_SQL::sequence_list() + + Return sql to list sequences + + + NULL - + type_list - function - - - - - NULL + \ODBC_SQL::type_list() + + SQL to show list of field types + + + NULL - + column_list - function - - - - - string + \ODBC_SQL::column_list() + + SQL to show infromation about columns in a table + + + string - - NULL + + NULL - + $table - - + + string + eJzNlstu2zAQRdfUV8wiC8eIrTbtqg80cZwsCqNFmhZdGpQ0lghLpMJHDCHIv2eoh900cBEVLipvTI94L+eMORQ/fCqzMgjH4wDGcO1QVzTw4yuN2ARg5kSeoIYQ5tzyiBuE88hYzWMrlIQFr1C3qrOSx2ueImOdF5xxZzOlGfsuCmWzCj5P4SfXGmX9NFZlpUWaWXbRjWAUH8Ppq9enMPFfb+p5uZBrYCyztjTvwjAVNnPRNFZFyO8Et28pk3C3Zi5ilAab+TS9zERurNMpKkmiqVuHsUowTCKeTNrJJAyDIAxhcrBP0FX263x2ATfXC7jIuTG/FQt2eRsXdcG5FneoTZ1V7FW1ydKbiKLMsUBpDYj5rA7dBwHzazFyWYhCWCCNIygK1EFaTPMC6G8TMoUjc5v/GhbSwlHudc+iarUy2IY1Ug1la+JDYcBKF1EBYeVksx1ql5Ff4KS1POlMPl6dL24ujwN2HzDWevmJ7wP24PM/bOm39fjGZaIKUJo2sYdfY7WhH7vSvARL1yajp8l/+bFY/Ovk65UMUJnAKqqusUBtRO2YtM1onoH4tPZgJNHSWwyDg/LP+6VfKwZEYCpjsfgLkEa4HBrPncBNLw4vGFD+1MFp6k/NPnuq0fxXiicQXWa9KLrBcDCMVRoTKLWKMXG6X39sVQPiwVuHMu7Z563ojxjs0BxsB+IvB0RgMrVpXx4rWAnME7BV2fPwJcEgOIRcaVXwOikeKUeXHZW7gs4CQYHmNN538dk+fAlxY9swN8q95A/+5ngpE19flUTxkrbOlO7WjxNt5bo= - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \DB_PDO ODBC \ODBC - \DB_PDO - - - For general database access for databases not specified by the main drivers

    ]]>
    - - + + ODBC Database Driver + For general database access for databases not specified by the main drivers + + - + $escape_char - - - - + '' + + Don't define the escape char - or define it in sub-drivers in a refactor + - + __construct - function - - - - - string + \ODBC::__construct() + + Use ODBC to connect to a database + + + string - - string + + string - - string + + string - - array + + array - + $dsn - - + + string - + $username - - + null + string - + $password - - + null + string - + $options - - + array() + array - + truncate - function - - - - - string + \ODBC::truncate() + + Empty the current database + + + string - - void + + void - + $table - - + + string - + insert_batch - function - - - - - string + \ODBC::insert_batch() + + Create sql for batch insert + + + string - - array + + array - - string + + string - + $table - - + + string - + $data - - + array() + array
    + eJytVcFu2zAMPctfQQQBmhRNvHU7pevWtU4PQ7ZuQ4sdA1liYqGO5ElytiDIv4+y7CYdWmyH5hJZJB/Jx0f73YeqqJL0+DiBY/hWo93QIZyvLWK8gMtalRItpJBxz3PuED7mzlsuvDIaZnyDto26qLi450tkrMOCC177wljGbtXK+GIDn8bwg1uLurEKU22sWhaeXXUnGIghnL56fQqj8Pem8SuVvgfGCu8rN0nTpfJFnY+FWaV8rbh/S5Wk+5ylEqgdRn9yrwpVOl/bJRpNQeP6PhVGYipzLketMwWmSZKmMHqxX5JAQy2VdJNdXu35y6xaB9IgGq+NhSVqtLwE2flwIdA5WJCtu3OgjQdXoVALhRLyDfgCYcWVBtlAugfMbhTdVMOVq/PuNtu7p4koOWVqSsTfHrV0kF3Ov2Y3sE0SFlpgFJ4ZfeRB4kJpbPKiE7xCEAW3NKpQZ7QpD1QQJRu1RYVHDhYXJBljA1iasMoaj8JTG/0ING+AzuHo6Owg6x1R0VTmDQijNYWEI38gJXg1ntSx5SsgZSq9hL50+qnr2qHVfIVP2Sqi4Zex8tBGUuUb6JsqiN11tdc5qQYWtY47MJ9TaYRSCz8IiU/2ec51XZYne+zuuQU8b/AHw2HCtgljlBO1n0wOAXtG5mKyDbi73gHyAegeb3iWsF2g72V1/DCO6aryUXWiDkvs/zkHspYt2xZpBzWsjZLPEEkda8E9DmJYy0rf/SxJGL1sOpveTuH6+81n2EaPXe8sOPhCudH7n0Hqg+AdaWAvzQNriICmmyuLVCiE0sKO5tyLgoROw/H/QcUjcQUKHzEUA57hKOaYNwlbnk4ixl9iot5viRdQ8b2xDi9zXlUEFmLCFoU5LpTFXFl5MEjWlvHlbjZriNyF9+JUSzALCGqcx8Ue08fjD/a40Nk=
    - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \DB_Util MySQL_Util \MySQL_Util - \DB_Util - - - - - + + MySQL-specific backup, import and creation methods + + + - + __construct - function - - - - - object + \MySQL_Util::__construct() + + Save a reference to the current connection object + + + object - - void + + void - + $conn - + - + create_table - function - - - - - string + \MySQL_Util::create_table() + + Convienience public function for creating a new MySQL table + + + string - - array + + array - - array + + array - - array + + array - - string + + string - + $name - - + + string - + $columns - - + + array - + $constraints - + array() array - + $indexes - + array() array - + delete_table - function - - - - - string + \MySQL_Util::delete_table() + + Convience public function for droping a table + + + string - - string + + string - + $name - - + + string - + backup_structure - function - - - - - string + \MySQL_Util::backup_structure() + + Create an SQL backup file for the current database's structure + + + string - + backup_data - function - - - - - array + \MySQL_Util::backup_data() + + Create an SQL backup file for the current database's data + + + array - - string + + string - + $exclude - - + array() + array + eJy1WG1z00YQ/iz/isXjQRLj2ED7KSGASZwSxiQQm9IZ6CiydLav0RunU4LL+L939+4knY1phw7kQyLt7e3Ls6/Kk2fFqugMHzzowAN4WzGxxgd6PhOMaQK8qHgSMwFDOA1lOA9LBqN5KUUYSZ5nMAnXTJhbz4swugmXzHFqWfA8rOQqF44z42kuV2t4NYD3oRAsU6dRXqwFX66kc1I/gRf58Pjho8dwQH9+UXwJz27AcVZSFuXhcLjkclXNB1GeDsNbHspf0ZJhqzPhEctKpvmRvVjxpJSVWLI8w0uD6mYY5TEbxvMwPjDMeHHY6QyHcPDDfjo1sq/X07eTg7JgEV/wCOaIUlX0gadFLiSEWQyRYKGCM2UIV1zuAAqtb2U1r4mngt8yUSrLoyQsS60oeCd5AuyzZFlcwukL/f6l03HIHAeFTMNbBiEItmAYiIiBzEGuGEQVBUZClGcZ0+HN53/hE91SN9EgEaaGCvd7xKkPBEOAM7jNeUyEYccpqjliC4sq06KCALkxcapIevqm33G+dBwHZaLWw0ObQZ8fdZxNx0HDf2hYHI0EkN0neXbLWcYVDLsWL3JhIpMtEa+M3WmEAesgYUqAlmJgQduJs5eFKds6wIQP14A+JVWalfuPyPOQZ3LvMc9i9pmVtkoDuN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iG0QVPsU5E2RuR3JSxEngIlpc6Ezt4k7cnWFjMrpuPJ+GRG35gm06VuZ8ghbFh02tItsw8prXiMXAdPF0xGq1GSeG9OLw8Pz8azk5fBaDq9PGlrxoi7eDeZNLS63BVgVoFSuUd5leFUJTU+PIFHPmwVurl+Ec51IumVhdpxCfM1YBTVZwKd3bB1WY/KBRfYDVCovRmgWc91RIhV68TaqpcSjt+jQgbGYXspNEaYPCf5mhezEgkp0xtFGwklguKAD3anwNcmKW7DpGLaCFP46heqeZ+Lm1AgLLGqH/oIjSqlYEuD7kZCyTcKUIMdyVziaBNG+uZrE9Kw8Fxaz9w+GDsapqCZAu75xXR8NYPzi9klXLsDvc9Jf+DicoHvddNxr/vXrrVT4LkPv48m77C9ehZbv9Y2wHXQtVQ2WaMpVjh0L2ytarqfzjj8Lg7srNPEtqJoqVEdcWA1SGqPlgp/QLSj3Y5qiVFNdEP/qxhjZDDP1IQKKvzMHxSr4h/VxgqW - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \DB_PDO MySQL \MySQL - \DB_PDO - - - - - + + MySQL specific class + Extends PDO to simplify cross-database issues + + - + $escape_char - - - - - - string + '`' + + Set the backtick as the MySQL escape character + + + string - + __construct - function - - - - - string + \MySQL::__construct() + + Connect to MySQL Database + + + string - - string + + string - - string + + string - - array + + array - + $dsn - - + + string - + $username - - + null + string - + $password - - + null + string - + $options - - + array() + array - + truncate - function - - - - - string + \MySQL::truncate() + + Empty a table + + + string - + $table - - + + string + eJytVF1v2jAUfXZ+xRVCSqiAbN0eJjq6UqBSJ6BrSTXtKTWOIRbBSW2nW1Tx33cdkgZNXZ8aKYqvfc65n87Xb1mcOf7JiQMncJtzVeDCrq8U54cNuMxFEnEFPkyooSuqOYxW2ijKjEglzGjBVcW6yCjb0g0npNaCC5qbOFWEBGKXmriA7334SZXisjxlaVYosYkNGdcr8FgHTj98PIWe/XwqcYmQWyAkNibTA9/fCBPnqz5Ldz59EtR8xkj8xmciGJeaH/AIz2KRaJOrDU8lkvr51mdpxP1oRaNeBUai7zi+D713e5y6svNieTsDnXEm1oIBS6jW/5QMmuh1vqo3J0o8caXL2EpWJcX/GC4jDZPL8MfkBp4dh1hXBOlLbsDEHFYoYQTbAtWlXRE1oxkHFlPbP2wcUkraxRNVgF0VcmNt3yGZSg1HTATtAyu0LBiC++CeHTkcp1IiDkxa+ajHpNHO0NuuUod2pOVr27nmStIdf+0sw9R/pyo6PsMhogW008yOoa6DzlfYT1jn8jCdYcjw0KicGc867jZ+hjJPkm6jXduV4LDU9zodhzw7hIg1eBFfC8kjz8WaDwbzX5hsOAqCu/B6cR2E45v5fLSYuJZRUkgthTUrxcIdxxH06u3uYdezUPKWJAzPobWcBrAYzadLuA+uel9gfDObjYIpuKXptrpWptM5w88e3ypkTD1LdZW6uyv0Y+J2YDgcwtVotpw2oSLAtrZEDNy+tY+ksOJcmsHgjXIeVbIpog1nb2flfa/Vy+xNd5kpgAIOXPLfeXs5fGU+MBXJqMGmlKiq2W0TC907f7RX0msFd/eLsS31w/MBtX9oHRLb4/9iKiNI11AWLozK+9rHn+pfSjyF2g== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + + \iDB_SQL MySQL_SQL \MySQL_SQL - - \iDB_SQL - - - - - + + MySQL specifc SQL + + + - + limit - function - - - - - string + \MySQL_SQL::limit() + + Limit clause + + + string - - int + + int - - int + + int - - string + + string - + $sql - - + + string - + $limit - - + + int - + $offset - - + FALSE + int - + random - function - - - - - string + \MySQL_SQL::random() + + Random ordering keyword + + + string - + db_list - function - - - - - string + \MySQL_SQL::db_list() + + Returns sql to list other databases + + + string - + table_list - function - - - - - string + \MySQL_SQL::table_list() + + Returns sql to list tables + + + string - - string + + string - + $database - - + '' + string - + system_table_list - function - - - - - string + \MySQL_SQL::system_table_list() + + Overridden in MySQL class + + + string - + view_list - function - - - - - string + \MySQL_SQL::view_list() + + Returns sql to list views + + + string - + trigger_list - function - - - - - string + \MySQL_SQL::trigger_list() + + Returns sql to list triggers + + + string - + function_list - function - - - - - string + \MySQL_SQL::function_list() + + Return sql to list functions + + + string - + procedure_list - function - - - - - string + \MySQL_SQL::procedure_list() + + Return sql to list stored procedures + + + string - + sequence_list - function - - - - - NULL + \MySQL_SQL::sequence_list() + + Return sql to list sequences + + + NULL - + type_list - function - - - - - string + \MySQL_SQL::type_list() + + SQL to show list of field types + + + string - + column_list - function - - - - - string + \MySQL_SQL::column_list() + + SQL to show infromation about columns in a table + + + string - - string + + string - + $table - - + + string + eJzFV1tv4jgUfk5+xZlqJGjVkt3ZeZrdaieFMGUVYIaAqpVGIiYxxGpuYzutIsR/3+PEXNpCVaR2ywvm5HzH/j6fS/jr7zzKTevszIQz+FFQXuJCrbuc0toAVwWLQ8rBgg6RZEYEBXsmJCeBZFkKLikp16ivOQluyYIaxjoWfCWFjDJuGGOWZDIq4Z8W3BDOaVo9DbK85GwRSaO9XkEzOIVPv/3+CS7U1x+VX8zSWzCMSMpcfLGsBZNRMWsFWWKRO0bkZzyJtd0zZgFNBa390T2PWCxkwRc0SxHUKm6tIAupFc5IeKGdEWiZpmXBxat9zLWy/dL74YLIacDmAeD6kV6wPbooZmtjh7M7ykV1sCAmQtRxpioWS/KYJjSVAljnqjItTdNQ+xkYxmUJk4CgAomhoTLibpwkgFfH0gV8FL/iXTNLJXyMFe6JNZvPBdVmTlHHVAdRJss08mKGIsK8SOuUqKI01QbnOuT5Oshl13Y959Q0lqZhsDk04QMwMU2LhHIWNLXXKTpUHobeTsVqnYDb6/fGsKxjrk7+RI8Vsj7gVcdanT8AKP9XvuSN6iOShlkCGcdyURLf0vIef2wv4CXi8SpIU0ukEQ0Y2YNO87Tx1gyq7QSgkCAzvEghAasWqz/UtS+OYxPOpirIIzon3vXwBjr22L6yPceDm2tn5IC/7i8+fLhssHSe8YSoKFMRRDQhjTe/vz3s8UTxLumHNbRW5eWCVPFqTTboy0bjYUXQJJfl9vmTcqj1Q/VcFK87GvbBX268V74ujG327Li/dQYNsWVxFoY0xd6hG1/VvI7LG1EKSZPpjlqPCsJzXKc9Br9iNR3YfcfXSjxNHL9Vu3k+KBF1ttVIr33t9G3/8ueehPvZeI96u2P0/ki1FORZlWodU5LQZ1WqtvbfgzSyWyzUsDuKt0btp17l/Kj37ZszevOsH+nD7jBaH/JISuvFYU7dyaA97g0H4I3t8eQ9qAmZcRpCzrOAhgU/diZscIc5fh8N205ngmX6fiTpr4KmwR5yg4nrHmpbGrSPmYJVNIzX5mFsiah2iwxElN3r6T2HOaNxCLLMj70oBdk/vuu20ul5495A9Rc1yqfjf78/34TbQ3fSH3j+yf8qAx6FZ/VRgMyyAt+Ls7hIsAHhgCL1QD403zcPXyZYHVhP9wq7772ni4kAWotarmXtrF9QV/gvxElDdXVJiSk5Va+1+D/tP9Ewn/o= - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \DB_Util SQLite_Util \SQLite_Util - \DB_Util - - - - - + + SQLite-specific backup, import and creation methods + + + - + __construct - function - - - - - object + \SQLite_Util::__construct() + + Save a reference to the current connection object + + + object - - void + + void - + $conn - + - + create_table - function - - - - - string + \SQLite_Util::create_table() + + Convenience public function to create a new table + + + string - - array + + array - - array + + array - - array + + array - - string + + string - + $name - - + + string - + $columns - - + + array - + $constraints - + array() array - + $indexes - + array() array - + delete_table - function - - - - - string + \SQLite_Util::delete_table() + + SQL to drop the specified table + + + string - - string + + string - + $name - - + + string - + backup_data - function - - - - - array + \SQLite_Util::backup_data() + + Create an SQL backup file for the current database's data + + + array - - string + + string - + $excluded - - + array() + array - + backup_structure - function - - - - - string + \SQLite_Util::backup_structure() + + Create an SQL backup file for the current database's structure + + + string + eJy1WG1T2zgQ/uz8iq0nc7ZpiHu9+0RKWwrhSoeDQtLrzUAn49hKouLIriVDcx3+++1K8ktSWno3lA9gr3ZXu8+unpV59iJf5J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wKlTDN/fPh3ngI471Xx0M4OoST0zEM/z4ajUdwSRhgc9xeuuDrVLQRZoLzLsW567s9cBtiCNoqbmDCtnRDYj0CHnoCtEbh2TERfYIgGhTMlEbauJfu15jxu8SYsJStE6OlNmvsHZyfvm3QtEi6Xl/r9j3X+zmDsDUH7aATGhBzQ4EZT1nTEvZukNhroCf14yZAlsnZ5zgtE5b8OEZmzwn59GvzjUmgWxZHJKRcKurNKE11cOY+IpsO9UbD4+H+GFwC0IXD89M/wcUluh4tI6lYQZhuklW1bdA616YxPXj/eng+1I1+dOJjaapu9tye6/WajAMsV9CQYbdgUrPygsvt55/oHueTU9P2uFimitbxafv5jKl4sZem/tuD052dw+F4//VkbzQ63TfDrhSaCVDVvHezUuWlmtiUvUGnwYhQISx1/YjI6ptcw2x2d+K0Yj3jBsAtix32YnHhEZreB9uQ9ySH4U0/TqzGj6T3VX6Uy0k0Ne1nGJwCkDBdAbK3opNIa1dsJSummuGVRUGR3bTJr2L2CWn6VVwXTz7YffDiIVmhJmgmNy4YFIM9HOTeKGIno2CJx0GujbMqYY1odtMeYPhaR3EdpSXDOEjFbEK7nJUZbmLWyINgDNuJcqXpoLVwI7/Ld59gu/E4K4Xa1b+tJxQ+s3J6fvxY728D0BFcdLke5e3bhBWbWVLp7DQ1xaAaJV1Xe7HQHieWELFhjk5Gw3M6HePTr9oF7jox1QCgAwN/7R2/G47Ab6n1SIky63vBwLNAVT3SQNcunplyTVyte5A1tCWqCt86QTR+LsWlcOsI8JUGVct/UJ/rakI1Dn7yoPpfDG0+psqiNcf+AxfX1n7Dv4f4TZCukFHkSm9sPjnxdvuxxHOnKUAHY0h28+JQ0zK+fpOVH5Y0ye7OT4f7adBeN01PXXgo8T40xE4KNULQut7oJupB4yHYvNM0drppbukfD0OREIdZNEr8ZO/ni/xfdvIUCg== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \DB_PDO SQLite \SQLite - \DB_PDO - - - - - + + SQLite specific class + Extends PDO to simplify cross-database issues + + - + $statement - - - - - - \PDOStatement + + + Reference to the last executed sql query + + + \PDOStatement - + __construct - function - - - - - string + \SQLite::__construct() + + Open SQLite Database + + + string - - string + + string - - string + + string - + $dsn - - + + string - + $user - - + NULL + string - + $pass - - + NULL + string - + truncate - function - - - - - string + \SQLite::truncate() + + Empty a table + + + string - + $table - - + + string - + get_tables - function - - - - - mixed + \SQLite::get_tables() + + List tables for the current database + + + mixed - + get_system_tables - function - - - - - array + \SQLite::get_system_tables() + + List system tables for the current database + + + array - + load_database - function - - - - - string + \SQLite::load_database() + + Load a database for the current connection + + + string - - string + + string - + $db - - + + string - + $name - - + + string - + unload_database - function - - - - - string + \SQLite::unload_database() + + Unload a database from the current connection + + + string - + $name - - + + string - + insert_batch - function - - - - - string + \SQLite::insert_batch() + + Create sql for batch insert + + + string - - array + + array - - string + + string - + $table - - + + string - + $data - - + array() + array + eJy1lt9v4jgQx5+Tv2KEkAIVkLu9e2JLrxRSVSeuvQWq1T2xTmKI1cTx2k61XNX//cZ2Ai0Le1qp7UuDMz/sz8x84/M/RCb88OzMhzP4VFG5xQfzfC0pdQtwVbE8pRJCmBJNYqIojGOlJUk0KznMyJbK2utSkOSBbKjnNbHgklQ6K6XnLVlR6mwLfw7gM5GScvs2KcVWsk2mvUnzBJ2kCx9++fUD9M2/36xdzvgDeF6mtVDDMNwwnVXxICmLkDwyon/HnYT7nDlLKFfU2aO5yFiudCU3tOToNKgewqRMaZjGJO3XxugY+n4YQv/N/vyG7OLTjGkKStCErVkCSU6UOmAG++2rKm4Wp5I9Uqns5qxXE4t+05SnCqZXq7+nd/Dk+55J5qH/nK4p8k0o6BJ0RgH9NDrQpNI0BfU1h682Fxpbh8tHIgGjLDTRtKBcm9XQ94QsNU2MT1s1rz6+SHQnKG/20/TGPqggkhSAjcL4Btqp4seWK4XNc2RdGED1LqoYSwTriruGW62SkqNdleiOCdtzUUa397NZz3na567vPXm+52FJp4tbYAoUK0S+hS9IALc8DAXRWahLbIMvaIcbwPMNhy/jt2rTJ5PouVWnqrN0P/res8Hxtj2zwxsVQm+BAILNT3LdvTxCCs/AE6xbx1kZII5HXbOMKAy/nN/fTsbLCEqhWcH+Jca35wzjSgMvQVVClFLDupS2oXD0K5IDjl9BeDpA27bpqhEE02gWYajr+d1f0AoGLvEgaAWmb7y2zpjqX+yaCT3qJduQHROlay0lxXHlcOjwzsRnDAfFblntzppURqw0pN81eL3Hgn2j6YkKbKheuXidmn67Dj8CFEGy7Zgmauidn59jZfC3t0CMkyW0OCloyyw4oK4bVwXOM5V2/fNNNI+gpbeCtkaBjR2Y9bv5NJrD1T91CJhGi4mPwV0ZpN3AMfQ78mm8WrMc03SMdf9iTXWSjfO8gzoxHF5Hy8nNarxY3E26PQhMjuC9x8EWR23x6MVP18iy/kGNXNiDUoVhPSclR9Uww2JyvapBM5vm0Doj2qhMuQbCt4BagyNDUIYHe6qu5sGrGO8PriQpznkD5ztqKHecWhYnxTs+tmqqfoJpjilXTUJU6bjnzJshqNVivFyOJzcwHS/HV+NFZBUjjVEuYLywP4yPU4+deLxu1/fkds/zQ3KyLH4S3Q8gVfwA0xFC0+iA0NDO8ys5FZKab9dqT6ZXN5pRgsB6BDC6cJsxyt7tHpXj/kV9Seg4tN5bs/UsXLCcJpISbcfJNmRMUF+A4UVM6v/91jUv7CmxPZHgq3F3Diewuxwrm7D+MvZcjFEtyfsP5RIBmZnmpYZHcxkmQmAw49NcrtZM0pjJ9IX4NNNubiEW5DPeKyOeGmmoRz+197oB3r7/A/54L+8= - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + + \iDB_SQL SQLite_SQL \SQLite_SQL - - \iDB_SQL - - - - - + + SQLite Specific SQL + + + - + limit - function - - - - - string + \SQLite_SQL::limit() + + Limit clause + + + string - - int + + int - - int + + int - - string + + string - + $sql - - + + string - + $limit - - + + int - + $offset - - + FALSE + int - + random - function - - - - - string + \SQLite_SQL::random() + + Random ordering keyword + + + string - + db_list - function - - - - - NULL + \SQLite_SQL::db_list() + + Returns sql to list other databases + + + NULL - + table_list - function - - - - - string + \SQLite_SQL::table_list() + + Returns sql to list tables + + + string - + system_table_list - function - - - - - string + \SQLite_SQL::system_table_list() + + Overridden in SQLite class + + + string - + view_list - function - - - - - string + \SQLite_SQL::view_list() + + Returns sql to list views + + + string - + trigger_list - function - - - - - NULL + \SQLite_SQL::trigger_list() + + Returns sql to list triggers + + + NULL - + function_list - function - - - - - NULL + \SQLite_SQL::function_list() + + Return sql to list functions + + + NULL - + procedure_list - function - - - - - NULL + \SQLite_SQL::procedure_list() + + Return sql to list stored procedures + + + NULL - + sequence_list - function - - - - - NULL + \SQLite_SQL::sequence_list() + + Return sql to list sequences + + + NULL - + type_list - function - - - - - array + \SQLite_SQL::type_list() + + SQL to show list of field types + + + array - + column_list - function - - - - - string + \SQLite_SQL::column_list() + + SQL to show infromation about columns in a table + + + string - - string + + string - + $table - - + + string + eJzNV21P2zAQ/pz8iluElBZBs7dPW9HW0rAxBTrSTmyfkJu4rUViB9sBVYj/vnPiAIN2ohJv/WLncvf4nrvc+dr9UswLN9jcdGETjkoqF7gx+z1JaS2AfsmylEoIYEA0mRBFoTdRWpJEM8EhIgsqrdXXgiSnZEYdp8GCr6TUcyEdZ8xyoecL+NGBYyIl5dXbRBQLyWZz7ew2O2glbXj/9t172DbLh0ovY/wUHGeudaE+BcGM6Xk56SQiD8g5I/ojehLcnJmxhHJFa31UL+YsU7qUMyo4GnXK0yARKQ3SCUm3rTIaBq4bBLD9aD+3iezoKGKawqigCZuyxDzfiRjcOK/KSSMcSHZOpapcSzKilEU6wQVYXmQ0p1wrYIN+Jbp0Xccc6SBOxHKmAa1K5IaCSojHSZIDZo/xGWyos+y2mHENG5mxuycV06miViwphpJbECMKXKcoJxhHmJa8/ioqlJY5YMtCbjUgO3u9aBS2XefSdRw2hRa8AaZOeJlTyZKW1WqjQqXh2OMMVseDaP9gfwyXNeaV9xk1rpD1Cq0a62rrHwOj/8h5vo56THgqchASK8aE+JQuLvDhJgEPCZ6sQFo2RNbCh7h3OBgetNp+xcF5QhLViQowlqAF5lJpwNrFHpDaDqDuETr8FUUr6KSTEwNxh48xeOpkLOGB/mdL3P9vPiqbZRy63a4pZfxIR2EU7o7B4ySnnhHsxcMD8PBkU645UZrKSn78PYxD8PSioN6OXyH7Rj6MB2EM/T8WAgbhaNdF8CcO0RD7i2RpSjnWedOnqlazXojUAhnmJysj9ULZPmf0Yk0mxmSNXMOyRMPtLMMO+AbUf4Z0Lv3i8VadmVtkjZK1Ni+ayX9INJ6txaLZvB4aSgtJUyikSGhayvX66LXVK+JDz0rKk/V4NEb/pfHo15tzQ8SMSshAzcWFvdymMGU0S8EU7H0uOK6SxapKQYtlRCqblr9/OA6/hbG/BX4c9iKzjsPfY7P2o2Hfbz8rWcanUuSkcpxMRInzocjKHBsGNn9S33OrZsXrlw9rozVwHZna9s448zPufTvo2bsVHRMtz+/Umh3fs0OOe4UTechTkyHbYs2Ah39a/gLVk0ik - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + + \iDB_SQL Firebird_SQL \Firebird_SQL - - \iDB_SQL - - - - - + + Firebird Specific SQL + + + - + limit - function - - - - - string + \Firebird_SQL::limit() + + Limit clause + + + string - - int + + int - - int + + int - - string + + string - + $sql - - + + string - + $limit - - + + int - + $offset - - + FALSE + int - + random - function - - - - - string + \Firebird_SQL::random() + + Random ordering keyword + + + string - + db_list - function - - - - - NULL + \Firebird_SQL::db_list() + + Returns sql to list other databases + + + NULL - + table_list - function - - - - - string + \Firebird_SQL::table_list() + + Returns sql to list tables + + + string - + system_table_list - function - - - - - string + \Firebird_SQL::system_table_list() + + Returns sql to list system tables + + + string - + view_list - function - - - - - string + \Firebird_SQL::view_list() + + Returns sql to list views + + + string - + trigger_list - function - - - - - string + \Firebird_SQL::trigger_list() + + Returns sql to list triggers + + + string - + function_list - function - - - - - string + \Firebird_SQL::function_list() + + Return sql to list functions + + + string - + procedure_list - function - - - - - string + \Firebird_SQL::procedure_list() + + Return sql to list stored procedures + + + string - + sequence_list - function - - - - - string + \Firebird_SQL::sequence_list() + + Return sql to list sequences + + + string - + column_list - function - - - - - string + \Firebird_SQL::column_list() + + Return sql to list columns of the specified table + + + string - - string + + string - + $table - - + + string - + type_list - function - - - - - string + \Firebird_SQL::type_list() + + SQL to show list of field types + + + string + eJzNWG1vm0gQ/gy/YmVFslOlJklzvZcmd4dhndIScHlpFOkkivHaRsFAeUllRfnvNwuLARtf61PVtF9KduaZfebZ2dldX/4VL2NeePGCRy/Qh5wka/ig3+OEkHIAjXI/mJEECUh2M3fqpgSJ0zRLXC/zoxCp7pokDPV37Hr37oJwXBUL/e3m2TJKOM7yV1G2XKN3Q3TrJgkJC6sXxevEXywzTqq+0MA7RuenZ+foJf3vVeEX+OE94rhllsXpH4Kw8LNlPh160UpwH3w3uwAmQj1n4HskTEnpD+7x0g/SLE8WJAoBNMzvBS+aEWE2dWcvmTMABZ4XBPTyu/3jK2XHfkKmfjJDZkw8f+57yPygbmmGavppPq0G5cR/IElakPMCN003sRwIgfxVHJAVCbMU+fKoGHrkeY5Oy0Ek1V/5GQJcDvnBQDEIEybuCsEK+uECHaWfg+awH2boKKC4ndFoPk8JG04IyBmyIHRI4Lk4n4KWaJ6HZWUUUQZ0ghMW8qQKcjUWVRMf89wjz3Gg+XtCYpQtCfJyWhoZAlDFMHXnBM2jBLloFdFcAXIUQak41OmqyOANTwfLv/tjxTAt1B+iAdA+ZlMXHv4cDRgD9Cc6hfkLAiVyCFBkvlcmDWjp+wZ8nhozxAlZOAmJA9cjg94nE6tYsj75vRPUK7/RI/V86tF8GdHjggCTraRcxPzOBbdZesMNZ9EKRQlsXariPVl/gT/qKviWFUyKIAO2Tgyh2arKyHPfmz/XSKCYLS0qIYugmNIMQQOBRjRjbSjdSYZS25PKbOrQEPty+dGZQAZBRwL/u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g76W92sf4L6HXulf9xxJ2nGoofEyQ7F1uOPf+IFAYezUi320x8clsN4Gf8LWMOEJQ== - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \PDOStatement Firebird_Result \Firebird_Result - \PDOStatement - - - - - + + Firebird result class to emulate PDOStatement Class - only implements +data-fetching methods + + + - + $statement - - - - - - resource + + + Reference to fbird resource + + + resource - + $row - - - - - - int + + + Current row in result array + + + int - + $result - - - - - + array() + + Data pulled from query + + + mixed + - + __construct - function - - - - - resource + \Firebird_Result::__construct() + + Create the object by passing the resource for +the query + + + resource - + $link - - + + resource - + bindColumn - function - - - - - mixed + \Firebird_Result::bindColumn() + + Invalidate method for data consistency + + + mixed - - mixed + + mixed - - int + + int - - mixed + + mixed - - array + + array - - NULL + + NULL - + $column - - + + mixed - + $param - + - + $type - - + NULL + int - + $maxlen - - + NULL + mixed - + $driverdata - - + NULL + array - + bindParam - function - - - - - mixed + \Firebird_Result::bindParam() + + Invalidate method for data consistency + + + mixed - - mixed + + mixed - - int + + int - - mixed + + mixed - - array + + array - - NULL + + NULL - + $parameter - - + + mixed - + $variable - + - + $data_type - - + NULL + int - + $maxlen - - + NULL + mixed - + $driverdata - - + NULL + array - + bindValue - function - - - - - mixed + \Firebird_Result::bindValue() + + Invalidate method for data consistency + + + mixed - - mixed + + mixed - - int + + int - - NULL + + NULL - + $parameter - - + + mixed - + $variable - + - + $data_type - - + NULL + int - + execute - function - - - - - array + \Firebird_Result::execute() + + Run a prepared statement query + + + array - - bool + + bool - + $args - - + NULL + array - + fetch - function - - - - - int + \Firebird_Result::fetch() + + Emulate PDO fetch public function + + + int - - mixed + + mixed - - mixed + + mixed - - mixed + + mixed - + $fetch_style - - + \PDO::FETCH_ASSOC + int - + $statement - - + NULL + mixed - + $offset - - + NULL + mixed - + fetchAll - function - - - - - int + \Firebird_Result::fetchAll() + + Emulate PDO fetchAll public function + + + int - - mixed + + mixed - - mixed + + mixed - - mixed + + mixed - + $fetch_style - - + \PDO::FETCH_ASSOC + int - + $statement - - + NULL + mixed - + $ctor_args - - + NULL + mixed - + fetchColumn - function - - - - - int + \Firebird_Result::fetchColumn() + + Emulate PDOStatement::fetchColumn + + + int - - mixed + + mixed - + $column_num - - + 0 + int - + fetchObject - function - - - - - string + \Firebird_Result::fetchObject() + + Emulate PDOStatement::fetchObject, but only for the default use + + + string - - array + + array - - \stdClass + + \stdClass - + $class_name - - + 'stdClass' + string - + $ctor_args - - + array() + array - + rowCount - function - - - - - int + \Firebird_Result::rowCount() + + Return the number of rows affected by the previous query + + + int - + errorCode - function - - errorCode]]> - - - string + \Firebird_Result::errorCode() + + Method to emulate PDOStatement->errorCode + + + string - + errorInfo - function - - errorInfo / PDOStatement->errorInfo]]> - - - array + \Firebird_Result::errorInfo() + + Method to emulate PDO->errorInfo / PDOStatement->errorInfo + + + array + eJztWG1z00YQ/iz/ii3jITbYCGg/JXVLYpI2NBBKoP3AMJqTdLKvkXXq3SmJh+G/d/dOsk+2DHRKaD+UmQzWvezuPfv23H3/Yzkve+G9ez24B79WXC3xB/0+UZy7ATiqRJ5yBSE8ZYbFTHM4jLVRLDFCFnDGllzVu56ULLlkMx4EjSx4wiozlyoIXouFNPMlPHsAvzOleGFnE1kulZjNTTBtfsEgGcLjh48ew5j++9auy0VxCUEwN6bU+2E4E2ZexQ8SuQjZlWDmO7QkXOvMRcILzd16XF7ORa5NpWZcFrjpQXUZJjLlYRqzdFwvxo1hrxeGMP5i/3oNsidC8VioFBTXVW4gyZnWYCTwRZUzw+Hl0/MLgz8WvDAwtbNjkEW+BLEoczusSVCKHhhn3CRzUcxgwRHaVG+AD2scdBU3g0+VuOJK21M69Y1R0StnFL8xvEh125b3vV5AhwhQ3CuecfRbwsnyrDmPrFTCad6ueXLFVGs07AUlqqZD9nUj9qAXrMVOK4oGA0pegygaiDBE2LItVhRmUyLuacmiCIWyynOeQqbkAv60WKzElEyxBSzEDU+3RDm9E6d5MDzwT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dLmx5bEF2+etyS6KnJFxVl/5EybYlOeMVzTEvVZNq1gaDLXeeOrJu4hFsDPyN1/krxU46Kt9vDJ/D2khPu7KbzS5Wdxn6p86w7ZvhPU7tmuGr4GL+NRXOsOQA7buq7RqlZZtt+327mPO14u9vftgabrS8BWXXYUHEvcYttD8DEXtTk8CZg8bDDvgLadejaPvMh/64l59y8idW7Lysheae19ljgk1cI6zwGb8haO2LSpwvbtK05UIDHpIOXdiaBN6h6XPoa0M2rgyZ/sNRv3WnFfR3mbNu5yA9bU4S1XnFfOAttMqkXMFfUndLcGlmV4JgyxeNkQvishK73JM+szeC9NGwihtCm9bQy82CNa6chSoyaiUf/95CekgR1mNe7WPKdHJWsMtcOlrOg5pe59tY7JBE4Ozy6O6X3iy75aNIewrzYbdKC7dehbv189d5eqHW+k4x+4UlJNZcq3nOfyY9d1oNk2aEdtTXaVSuzcLQdq5+HqM50WmYSw67Q0s3Xa1TvprsPSrlW00ulW0eqfNugv9Myfwc9Bi+u7ZH9IBQA30Y1czxxOH+jV/LhIKayz5lHZhc8DvPv8BfX2AS0= - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + - + + \DB_PDO Firebird \Firebird - \DB_PDO - - - PDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.

    ]]>
    - - + + Firebird Database class + PDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions. + + - + $statement - - - - - - object + + + Reference to the last query executed + + + object - + $statement_link - - - - - - resource + + + Reference to the resource returned by +the last query executed + + + resource - + $trans - - - - - - resource + + + Reference to the current transaction + + + resource - + $conn - - - - - - resource + + + Reference to the connection resource + + + resource - + __construct - function - - - - - string + \Firebird::__construct() + + Open the link to the database + + + string - - string + + string - - string + + string - + $dbpath - - + + string - + $user - - + 'sysdba' + string - + $pass - - + 'masterkey' + string - + truncate - function - - - - - string + \Firebird::truncate() + + Empty a database table + + + string - + $table - - + + string - + query - function - - - - - string + \Firebird::query() + + Wrapper public function to better match PDO + + + string - - \$this + + \Firebird + - + $sql - - + + string - + prepare - function - - - - - string + \Firebird::prepare() + + Emulate PDO prepare + + + string - - array + + array - - \$this + + \Firebird + - + $query - - + + string - + $options - - + NULL + array - + beginTransaction - function - - - - - bool + \Firebird::beginTransaction() + + Start a database transaction + + + bool - + commit - function - - - - - bool + \Firebird::commit() + + Commit a database transaction + + + bool - + rollBack - function - - - - - bool + \Firebird::rollBack() + + Rollback a transaction + + + bool - + prepare_execute - function - - - - - string + \Firebird::prepare_execute() + + Prepare and execute a query + + + string - - array + + array - - resource + + resource - + $sql - - + + string - + $args - - + + array - + quote - function - - quote]]> - - - string + \Firebird::quote() + + Method to emulate PDO->quote + + + string - - int + + int - - string + + string - + $str - - + + string - + $param_type - - + NULL + int - + errorInfo - function - - errorInfo / PDOStatement->errorInfo]]> - - - array + \Firebird::errorInfo() + + Method to emulate PDO->errorInfo / PDOStatement->errorInfo + + + array - + errorCode - function - - errorCode]]> - - - array + \Firebird::errorCode() + + Method to emulate PDO->errorCode + + + array - + prepare_query - function - - - - - string + \Firebird::prepare_query() + + Bind a prepared query with arguments for executing + + + string - - array + + array - - NULL + + NULL - + $sql - - + + string - + $params - - + + array - + insert_batch - function - - - - - string + \Firebird::insert_batch() + + Create sql for batch insert + + + string - - array + + array - - string + + string - + $table - - + + string - + $data - - + array() + array
    + eJzVWFtv2zYUfpZ/xWkQzHLh2F23h6GZe0niABvctUtSFHsyKOnY4iKLKkklNYr89x1eJEuunXhF3GEBkkjk4cdz/cijX18VadEZPn3agafwZ4lySQ/m+VwiugE4KXmWoIQhnDHNIqYQ3kRKSxZrLnKYsCVKv+p1weJrNscgqLDgNSt1KmQQXPGF0OkSfh/ARyYl5nY2FsVS8nmqg9PqCcK4B8+f/fgcjsy/n6xcxvNrCIJU60K9GA7nXKdlNIjFYshuONM/kybD1Z4ZjzFX6ORJvEh5pnQp5yhyWjQor4exSHCYRCw58sK0cNjpDIdw9Gg/ncqz51xixGWy8mC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RDZlhBHOOf51Wpt6MPKZ2GrzOuI2rf2qQ9PKAo+JVwQ/L5XFx/Gtaf9mJHbs29O6UDgj+Gc2AJVLvHy1ZXLTrWYcs9mXYgsi+jws2ffN9kjCeGEEDZaJD38d7XpveMHKvikak/IvJq/7j34WtTG5LzNa+sNwWZqm/pN7eHYdzAVsbmmqb4d1FTWPMouUbvrX80f3DUX7WukvUUiU0swFE4UF8foLnWbWe0Hz5EtgrEjRy9rja2ue47PW9SpSMy9BFfHj7kpUXu1NUC61RBxcsqhfZzqZYGtILklW28twgZGu06mAoCaazxPUTeSlwuUPLbCvXUWMoPrLHTQPRjQMLUxBd0nMaT3Pg2avxZjQAP/jWvtGfhbPhMwNAOXVWY0Zr4qeVsDW7xYr6qK/tB81KnpnKbNu2s/DulwbM7Ys7KZg3aj8FkfLAj9IwmXgsFjOyrYzVOnpEcA/94jp9boDTTYdMg+w3/CifJYxUOJ/0Rzy3VKys9LE3LXfLp692WyOyHalzYlmrJ5gA5XnUJVc2rVgv0lSuqwzZe3yCjvNK6pS9FdgvTFSmFCNda4pfZTXNXBrT62fHUp2FMagbsXSDTJY5pE49jItlg8Vyj1g63qmneNCbszmdtjajf0jW3fYYxcRfVWTr7yXzLN54wb42DqFAnMniL+Y9UujrwzH2nHFCUxq+Wn7uvFoEiLfwC393c2
    - - - - Free Query Builder / Database Abstraction Layer

    ]]>
    - - - - - + + + Query + Free Query Builder / Database Abstraction Layer + + + + + + + \DB_Util + Firebird_Util + \Firebird_Util + + Firebird-specific backup, import and creation methods + + + + + + __construct + \Firebird_Util::__construct() + + Save a reference to the current connection object + + + object + + + void + + + + $conn + + + + + + create_table + \Firebird_Util::create_table() + + Convienience public function to generate sql for creating a db table + + + string + + + array + + + array + + + array + + + string + + + + $name + + string + + + $fields + + array + + + $constraints + array() + array + + + $indexes + array() + array + + + + delete_table + \Firebird_Util::delete_table() + + Drop the selected table + + + string + + + string + + + + $name + + string + + + + backup_structure + \Firebird_Util::backup_structure() + + Create an SQL backup file for the current database's structure + + + string + + + + + backup_data + \Firebird_Util::backup_data() + + Create an SQL backup file for the current database's data + + + array + + + bool + + + string + + + + $exclude + array() + array + + + $system_tables + FALSE + bool + + + Implement Backup structure function - - Firebird_Util - \Firebird_Util - \DB_Util - - - - - - - - __construct - function - - - - - object - - - void - - - - $conn - - - - - - create_table - function - - - - - string - - - array - - - array - - - array - - - string - - - - $name - - - - - $fields - - - - - $constraints - - array - - - $indexes - - array - - - - delete_table - function - - - - - string - - - string - - - - $name - - - - - - backup_structure - function - - - - - string - - - - - backup_data - function - - - - - array - - - bool - - - string - - - - $exclude - - - - - $system_tables - - - - - + eJy1V+tz2kYQ/yz+ig3DVFIGQ5L2k4mTYMCtM8QkBrcfnAxzSAdcLZ2Uu5MdmvH/3r2HHpBHk07iGQ/S3j5/u7e7evo83+at/sOHLXgIbwoqdvign88EpZYApwVLYiqgD2OiyIpICsOVVIJEimUcpmRHhZN6kZPohmyo55W64AUp1DYTnrdgaaa2O3jZg7+IEJSb0yjLd4JttsoblU8QRCE8efT4CRzpn18NX8L4DXjeVqlcHvf7G6a2xaoXZWmf3DKifkNP+rXNhEWUS2r5kT3fskSqQmxoxlGoV9z0oyym/XhF4iPHjIL9Vqvfh6Mf9tcqkT1jgq6YiI9kTiO2ZhGsEKgi7wJL80woIDyGSFBiEE0pIhbLA0yhDk8Wq5I4FuyWCmmcjxIiZWVreaVYAvSDojyWMD617x9bLU875aGeObmlQEDQNcV0RBRUBmpLISp0ehREGefUJjlb/Y1PWspIok+CpI4Kv3Q0pz0QFGHmcJuxWBP6LS8vVogwrAtuVS2XyI3lU0QqsJJhy/vY8jzUiVaPj5sM9nzQ8u5bHjr+Q5Pj1UiMMn7LKGcGhUOHEZUN5VQQRUG+T2CdCZcrvkH44hXgrUjoITgYgWbocJLSJh1rn+ygs2Y0wRx/emCDJ4yrz50yHtMPVNbGHODW2hcgN97SpXEzMA51Swe6nzF7YkhB2D0wWtJdvlAkKVK+tEwn4E4HWGE6U5c0Exv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8rhJqiXLyYEHUTri7rfVbRrxqSNC9R+7tIyWgOl+oq7mB4GtVNbckKbA8DYs1oq28KTI0Ys+0Bk5pjFMFg9Wj3XBhcepLnmcorLrgX45PO36It+0EyitbWdw3mZI8sGH9YqoBhd9re76+ataPzwv5uqj8PSa7GBrWpRtvWI3nF/PJ5QLOLxazg1qEAN+rEd7utptDHM9D+HM4vZrMcej39ie9ttnzw4E/aDVRrCtkL3N2Nam9am6xdanXws3LiStE+y1/y+eTBXau4cV8OFqczy4Gb3m78gkZ2l1oWgx7SBvNXr06Xwza1aUvd5BavZk99/qbfYLfz1iq6/Lbt8Bv3V6+zf8FaerVUA== - - - todo - fixme +
    diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml index 5552b46..a7fde32 100644 --- a/phpdoc.dist.xml +++ b/phpdoc.dist.xml @@ -13,6 +13,10 @@ . tests + coverage + vendor tests/* + coverage/* + vendor/* \ No newline at end of file diff --git a/tests/core/db_qb_test.php b/tests/core/db_qb_test.php index a82e6a0..97e3f0b 100644 --- a/tests/core/db_qb_test.php +++ b/tests/core/db_qb_test.php @@ -20,7 +20,10 @@ abstract class QBTest extends UnitTestCase { public function __destruct() { - //echo '
    ' . print_r($this->db->queries, TRUE) . '
    '; + if (isset($_GET['show_queries'])) + { + echo '
    ' . print_r($this->db->queries, TRUE) . '
    '; + } } // -------------------------------------------------------------------------- @@ -173,6 +176,8 @@ abstract class QBTest extends UnitTestCase { $this->assertIsA($query, 'PDOStatement'); } + + // -------------------------------------------------------------------------- @@ -223,7 +228,67 @@ abstract class QBTest extends UnitTestCase { $this->assertIsA($query, 'PDOStatement'); } + + // -------------------------------------------------------------------------- + // ! Grouping Tests + // -------------------------------------------------------------------------- + + public function TestGroup() + { + if (empty($this->db)) return; + $query = $this->db->select('id, key as k, val') + ->from('create_test') + ->group_start() + ->where('id >', 1) + ->where('id <', 900) + ->group_end() + ->limit(2, 1) + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + public function TestOrGroup() + { + if (empty($this->db)) return; + + $query = $this->db->select('id, key as k, val') + ->from('create_test') + ->group_start() + ->where('id >', 1) + ->where('id <', 900) + ->group_end() + ->or_group_start() + ->where('id =', 0) + ->group_end() + ->limit(2, 1) + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + public function TestOrNotGroup() + { + if (empty($this->db)) return; + + $query = $this->db->select('id, key as k, val') + ->from('create_test') + ->group_start() + ->where('id >', 1) + ->where('id <', 900) + ->group_end() + ->or_not_group_start() + ->where('id =', 0) + ->group_end() + ->limit(2, 1) + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + // -------------------------------------------------------------------------- + // ! Where In Tests // -------------------------------------------------------------------------- public function TestWhereIn() @@ -236,6 +301,48 @@ abstract class QBTest extends UnitTestCase { $this->assertIsA($query, 'PDOStatement'); } + + // -------------------------------------------------------------------------- + + public function TestOrWhereIn() + { + if (empty($this->db)) return; + + $query = $this->db->from('create_test') + ->where('key', 'false') + ->or_where_in('id', array(0, 6, 56, 563, 341)) + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + // -------------------------------------------------------------------------- + + public function TestWhereNotIn() + { + if (empty($this->db)) return; + + $query = $this->db->from('create_test') + ->where('key', 'false') + ->where_not_in('id', array(0, 6, 56, 563, 341)) + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + // -------------------------------------------------------------------------- + + public function TestOrWhereNotIn() + { + if (empty($this->db)) return; + + $query = $this->db->from('create_test') + ->where('key', 'false') + ->or_where_not_in('id', array(0, 6, 56, 563, 341)) + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } // -------------------------------------------------------------------------- @@ -363,8 +470,7 @@ abstract class QBTest extends UnitTestCase { ->where('id >', 0) ->where('id <', 9000) ->group_by('k') - ->group_by('id') - ->group_by('val') + ->group_by(array('id','val')) ->order_by('id', 'DESC') ->order_by('k', 'ASC') ->limit(5,2) @@ -373,6 +479,10 @@ abstract class QBTest extends UnitTestCase { $this->assertIsA($query, 'PDOStatement'); } + // -------------------------------------------------------------------------- + + //public function TestOr + // -------------------------------------------------------------------------- public function TestOrWhere() @@ -401,6 +511,74 @@ abstract class QBTest extends UnitTestCase { $this->assertIsA($query, 'PDOStatement'); } + + // -------------------------------------------------------------------------- + + public function TestOrLike() + { + if (empty($this->db)) return; + + $query = $this->db->from('create_test') + ->like('key', 'og') + ->or_like('key', 'val') + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + // -------------------------------------------------------------------------- + + public function TestOrNotLike() + { + if (empty($this->db)) return; + + $query = $this->db->from('create_test') + ->like('key', 'og', 'before') + ->or_not_like('key', 'val') + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + // -------------------------------------------------------------------------- + + public function TestNotLike() + { + if (empty($this->db)) return; + + $query = $this->db->from('create_test') + ->like('key', 'og', 'before') + ->not_like('key', 'val') + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + // -------------------------------------------------------------------------- + + public function TestLikeBefore() + { + if (empty($this->db)) return; + + $query = $this->db->from('create_test') + ->like('key', 'og', 'before') + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } + + // -------------------------------------------------------------------------- + + public function TestLikeAfter() + { + if (empty($this->db)) return; + + $query = $this->db->from('create_test') + ->like('key', 'og', 'after') + ->get(); + + $this->assertIsA($query, 'PDOStatement'); + } // -------------------------------------------------------------------------- @@ -457,6 +635,21 @@ abstract class QBTest extends UnitTestCase { $this->assertIsA($query, 'PDOStatement'); } + // -------------------------------------------------------------------------- + + public function TestInsertArray() + { + if (empty($this->db)) return; + + $query = $this->db->insert('test', array( + 'id' => 587, + 'key' => 1, + 'val' => 2, + )); + + $this->assertIsA($query, 'PDOStatement'); + } + // -------------------------------------------------------------------------- public function TestInsertBatch() @@ -492,11 +685,12 @@ abstract class QBTest extends UnitTestCase { { if (empty($this->db)) return; - $query = $this->db->set('id', 4) - ->set('key', 'gogle') - ->set('val', 'non-word') - ->where('id', 4) - ->update('create_test'); + $query = $this->db->where('id', 4) + ->update('create_test', array( + 'id' => 4, + 'key' => 'gogle', + 'val' => 'non-word' + )); $this->assertIsA($query, 'PDOStatement'); } @@ -541,7 +735,7 @@ abstract class QBTest extends UnitTestCase { { if (empty($this->db)) return; - $query = $this->db->where('id', 4)->delete('create_test'); + $query = $this->db->delete('create_test', array('id' => 4)); $this->assertIsA($query, 'PDOStatement'); } @@ -592,6 +786,19 @@ abstract class QBTest extends UnitTestCase { $this->assertTrue(is_numeric($this->db->num_rows())); } + + // -------------------------------------------------------------------------- + // ! Compiled Query Tests + // -------------------------------------------------------------------------- + + public function TestGetCompiledSelect() + { + $sql = $this->db->from('create_test')->get_compled_select('', FALSE); + $qb_res = $this->db->get(); + $sql_res = $this->db->query($sql); + + $this->assertEqual($qb_res, $sql_res); + } // -------------------------------------------------------------------------- // ! Error Tests @@ -626,7 +833,8 @@ abstract class QBTest extends UnitTestCase { 'database' => 'test', 'user' => NULL, 'pass' => NULL, - 'type' => 'mysql' + 'type' => 'mysql', + 'name' => 'foobar' ); $this->expectException('BadConnectionException'); @@ -634,6 +842,14 @@ abstract class QBTest extends UnitTestCase { $this->db = @Query($params); } + + // -------------------------------------------------------------------------- + + public function TestBadMethod() + { + $res = $this->db->foo(); + $this->assertEqual(NULL, $res); + } } // End of db_qb_test.php \ No newline at end of file diff --git a/tests/databases/firebird/firebird-qb.php b/tests/databases/firebird/firebird-qb.php index 49676bc..201daa7 100644 --- a/tests/databases/firebird/firebird-qb.php +++ b/tests/databases/firebird/firebird-qb.php @@ -26,6 +26,7 @@ class FirebirdQBTest extends QBTest { // Test the query builder $params = new Stdclass(); + $params->name = 'fire'; $params->type = 'firebird'; $params->file = $dbpath; $params->host = 'localhost'; diff --git a/tests/databases/firebird/firebird.php b/tests/databases/firebird/firebird.php index 83f8a7d..284282e 100644 --- a/tests/databases/firebird/firebird.php +++ b/tests/databases/firebird/firebird.php @@ -42,6 +42,7 @@ class FirebirdTest extends DBTest { public function TestExists() { $this->assertTrue(function_exists('ibase_connect')); + $this->assertTrue(function_exists('fbird_connect')); } // -------------------------------------------------------------------------- diff --git a/tests/db_files/FB_TEST_DB.FDB b/tests/db_files/FB_TEST_DB.FDB index d10160c9861c119eb50c5e47382fb471da5952bf..223e0c78929e31f09dd694672b0d2f75b59bc946 100755 GIT binary patch delta 2832 zcmb7GO=w(I6h80GytH|@lit?GX#B|}!*r6#kC~ZtP;J3kH~etc|`Qi>VwLK7c_$;7rzZfIQZMF{y4qy z!^xfuq!UOtkhwtS1L*~FB#_4fc|4G#_oSbf?(5b4k)q%5zdA2J+HY3<_q|}*zqc&% zYwbU*b!~&zoe6rcFilSiW%~MLk)Djr(AwB66;BlDA2CB8pD568VuXV+E``O4?$K;bF z+P+?44}E-ku57io7C&iW{eXgqytiG4YWK-o2kSE_O)LvtkYgRmS06aUm7X|V29F&| z4n!hD(6IvB;jdqc;zFU%ipN$Aw-?V>Z|$_+fTb|#h_~9S{ccAz;seWC{bzk_H!?a{ zkE{Q0v31wz1MfNZ{3m9>xg6STS(+(lG*VvizNhwOOy>xgI&^Wn)~A4|Rt?|nikYSH zlshW?FviBS!Vj6hJ`;_zRJnOL3!hPq@WZZnzCED-2zdF7dbouAH~{ad)JYGAH_-te z7s1wI`Oshj+w_ZlfAb?unP$`3xix{C*@Y5O5K{ z&6cGVlE)(eqmh12?aP>E7#YY#vo96x64QEwA9Tg!(m*{O0q9~i{H_Z?5$hD7H+)J; zE>TY!Q0T8%iz;D;63znjbj0;(b!F5YvaEh1bpQouX1$uEVkh*s62Z4eyBUBYT+CvM zH8OyKS|6~3Xrlkem04-rWsXHLW;#`6OzTv>xNZ4O zmvQ5^V?jm>R9$8OWTGRQyaKs>#Jytu82-JGRTKKXU^}TUzs;7_T^iy6p)%}j`o=w6 zD4aw^ti};iAw}c1Bcs^>|M(%H?xycM;uM}LsdR`d&w63{KbPMncU50w6Y7OwIe-;@ q{2<_3ZH(gptT3Ghrk_=^`q{wC#57KRLM6R7E8N___y64!?%k(=m2kZP delta 1861 zcmb7^O=uHA6vy9Ac3ZoXHsi;k)JD^+G3y5p^M9=uhr(t{Uo9y};`N%76jzD+k6O?Sy|{%_~ayx+c^f2ESIRPwV1 zoX_o?g3cj$B^D@kZ@B;)_yb_ZlP>_*r?;~^V|su9hG)qa23}k4tBKOf#FFrY;R)u6 zm?un6Se_X0#Goe*cw%T%*rs5Q+^vC>U9h*Fp0;mTtAC4zG!Dat zorTen42&kyaDT*wm3RuSCQ?v}r{P0<7=Dg8FcWv+NZf@V+=15^o5R>go`GlhUmYv< zFub*W5U@Z13^7nOTlmAfVZqHi<$IT6?R8f^uJS9a>B`+Tp1M^osC0EOm1g{It29+5 z-ir+K=hku7H@-G7CV;ewN{uD07F1^=7_Vl~S{|$Mv~fs&tMfCg;mW%;UXZ`){AeKd zK6}2*#|A-RDfsvo`#{ zl~j7nM-f0;qeG}gfLiTBtwvE%c3P=L*h-YqR$^eEt;7t!mCFI5*$*O>tiMJ9q%|^x zS|b~<(1o}VMMT*_)FMPg8AZf^k2u_SD>1`w<-01jaxvhv`r)LyiIX&awWNtt8J*h2 zv@2UtPLv%^EkaI|QBDlZR`;_j(K?muIPzMPbNO|RkF$rq|0L)8YAO{^Ta+|4l{8rp zSrWmb>Fu>3lpR%f7WCPLB0@9vG!rE(B(4Dzn|%ZF2VF57mfL Az5oCK diff --git a/tests/php_test.ini b/tests/php_test.ini new file mode 100644 index 0000000..9a94ed7 --- /dev/null +++ b/tests/php_test.ini @@ -0,0 +1 @@ +zend_extension="xdebug.so" \ No newline at end of file diff --git a/tests/simpletest/autorun.php b/tests/simpletest/autorun.php index 8faf84d..9145417 100644 --- a/tests/simpletest/autorun.php +++ b/tests/simpletest/autorun.php @@ -51,7 +51,17 @@ function run_local_tests() { $suite = $loader->createSuiteFromClasses( basename(initial_file()), $loader->selectRunnableTests($candidates)); - return $suite->run(new DefaultReporter()); + if (function_exists("xdebug_start_code_coverage")) { + $coverage = new PHP_CodeCoverage; + $coverage->start('Query'); + } + $ret = $suite->run(new DefaultReporter()); + if (function_exists("xdebug_start_code_coverage")) { + $coverage->stop(); + $writer = new PHP_CodeCoverage_Report_HTML; + $writer->process($coverage, QBASE_DIR . '/coverage/'); + } + return $ret; } catch (Exception $stack_frame_fix) { print $stack_frame_fix->getMessage(); return false;