QueryFree Query Builder / Database Abstraction Layer\PDODB_PDO\DB_PDOBase Database classExtends PDO to simplify cross-database issues$statement$escape_char'"'$sql$util$last_query$table_prefix''__construct\DB_PDO::__construct()PDO constructor wrapperstringstringstringarray$dsnstring$usernameNULLstring$passwordNULLstring$driver_optionsarray()arrayprepare_query\DB_PDO::prepare_query()Simplifies prepared statements for database queriesstringarraymixed$sqlstring$dataarrayprepare_execute\DB_PDO::prepare_execute()Create and execute a prepared statement with the provided parametersstringarray\PDOStatement$sqlstring$paramsarrayaffected_rows\DB_PDO::affected_rows()Returns number of rows affected by an INSERT, UPDATE, DELETE type query\PDOStatementint$statement''\PDOStatementget_last_error\DB_PDO::get_last_error()Return the last error for the current database connectionstringquote_table\DB_PDO::quote_table()Quote database table name, and set prefixstringstring$tablestring_prefix\DB_PDO::_prefix()Sets the table prefix on the passed stringstringstring$strstringquote_ident\DB_PDO::quote_ident()Surrounds the string with the databases identifier escape charactersmixedstring$identmixed_quote\DB_PDO::_quote()Helper method for quote_identmixedmixed$strmixedempty_table\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';stringmixed$tablestringget_schemas\DB_PDO::get_schemas()Return schemas for databases that list themarrayget_tables\DB_PDO::get_tables()Return list of tables for the current databasearrayget_dbs\DB_PDO::get_dbs()Return list of dbs for the current connection, if possiblearrayget_views\DB_PDO::get_views()Return list of views for the current databasearrayget_sequences\DB_PDO::get_sequences()Return list of sequences for the current database, if they existarrayget_functions\DB_PDO::get_functions()Return list of function for the current databasearrayget_procedures\DB_PDO::get_procedures()Return list of stored procedures for the current databasearrayget_triggers\DB_PDO::get_triggers()Return list of triggers for the current databasearrayget_system_tables\DB_PDO::get_system_tables()Retreives an array of non-user-created tables for
the connection/databasearrayget_columns\DB_PDO::get_columns()Retrieve column information for the current database tablestringarray$tablestringget_types\DB_PDO::get_types()Retrieve list of data types for the databasearraydriver_query\DB_PDO::driver_query()Method to simplify retreiving db results for meta-data queriesstringboolmixed$sqlstring$filtered_indexTRUEboolnum_rows\DB_PDO::num_rows()Return the number of rows returned for a SELECT queryinttruncate\DB_PDO::truncate()Empty the passed tablestringvoid$tablestringinsert_batch\DB_PDO::insert_batch()Create sql for batch insertstringarraystring$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction Layer\PDOStatementFirebird_Result\Firebird_ResultFirebird result class to emulate PDOStatement Class - only implements
data-fetching methods$statementReference to fbird resourceresource$rowCurrent row in result arrayint$resultarray()Data pulled from querymixed__construct\Firebird_Result::__construct()Create the object by passing the resource for
the queryresource$linkresourcebindColumn\Firebird_Result::bindColumn()Invalidate method for data consistencymixedmixedintmixedarrayNULL$columnmixed$param$typeNULLint$maxlenNULLmixed$driverdataNULLarraybindParam\Firebird_Result::bindParam()Invalidate method for data consistencymixedmixedintmixedarrayNULL$parametermixed$variable$data_typeNULLint$maxlenNULLmixed$driverdataNULLarraybindValue\Firebird_Result::bindValue()Invalidate method for data consistencymixedmixedintNULL$parametermixed$variable$data_typeNULLintexecute\Firebird_Result::execute()Run a prepared statement queryarraybool$argsNULLarrayfetch\Firebird_Result::fetch()Emulate PDO fetch public functionintmixedmixedmixed$fetch_style\PDO::FETCH_ASSOCint$cursor_orientation\PDO::FETCH_ORI_NEXT$cursor_offsetNULLfetchAll\Firebird_Result::fetchAll()Emulate PDO fetchAll public functionintmixedmixedmixed$fetch_style\PDO::FETCH_ASSOCint$statementNULLmixed$ctor_argsNULLmixedfetchColumn\Firebird_Result::fetchColumn()Emulate PDOStatement::fetchColumnintmixed$column_num0intfetchObject\Firebird_Result::fetchObject()Emulate PDOStatement::fetchObject, but only for the default usestringarray\stdClass$class_name'stdClass'string$ctor_argsarray()arrayrowCount\Firebird_Result::rowCount()Return the number of rows affected by the previous queryinterrorCode\Firebird_Result::errorCode()Method to emulate PDOStatement->errorCodestringerrorInfo\Firebird_Result::errorInfo()Method to emulate PDO->errorInfo / PDOStatement->errorInfoarrayQueryFree Query Builder / Database Abstraction Layer\DB_UtilFirebird_Util\Firebird_UtilFirebird-specific backup, import and creation methods__construct\Firebird_Util::__construct()Save a reference to the current connection objectobjectvoid$conncreate_table\Firebird_Util::create_table()Convienience public function to generate sql for creating a db tablestringarrayarrayarraystring$namestring$fieldsarray$constraintsarray()array$indexesarray()arraydelete_table\Firebird_Util::delete_table()Drop the selected tablestringstring$namestringbackup_structure\Firebird_Util::backup_structure()Create an SQL backup file for the current database's structurestringbackup_data\Firebird_Util::backup_data()Create an SQL backup file for the current database's dataarrayboolstring$excludearray()array$system_tablesFALSEboolImplement Backup structure functionQueryFree Query Builder / Database Abstraction Layer\iQuery_BuilderQuery_Builder\Query_BuilderConvienience 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$valuesarray()$where_valuesarray()$limit$offset$sql$query_maparray()$having_map$conn_name""$queries$explainFALSE__construct\Query_Builder::__construct()Constructor\DB_PDOobject$db\DB_PDO$paramsobjectselect\Query_Builder::select()Specifies rows to select in a querystring\Query_Builder$fieldsstring_select\Query_Builder::_select()Method to simplify select_ methodsstringstringstring$fieldstring$asFALSEstringselect_max\Query_Builder::select_max()Selects the maximum value of a field from a querystringstring\Query_Builder$fieldstring$asFALSEstringselect_min\Query_Builder::select_min()Selects the minimum value of a field from a querystringstring\Query_Builder$fieldstring$asFALSEstringselect_avg\Query_Builder::select_avg()Selects the average value of a field from a querystringstring\Query_Builder$fieldstring$asFALSEstringselect_sum\Query_Builder::select_sum()Selects the sum of a field from a querystringstring\Query_Builder$fieldstring$asFALSEstringdistinct\Query_Builder::distinct()Adds the 'distinct' keyword to a query\Query_Builderexplain\Query_Builder::explain()Tell the database to give you the query plan instead of result set\Query_Builderfrom\Query_Builder::from()Specify the database table to select fromstring\Query_Builder$tblnamestring_like\Query_Builder::_like()Simplify 'like' methodsstringmixedstringstringstring\Query_Builder$fieldstring$valmixed$posstring$like'LIKE'string$conj'AND'stringlike\Query_Builder::like()Creates a Like clause in the sql statementstringmixedstring\Query_Builder$fieldstring$valmixed$pos'both'stringor_like\Query_Builder::or_like()Generates an OR Like clausestringmixedstring\Query_Builder$fieldstring$valmixed$pos'both'stringnot_like\Query_Builder::not_like()Generates a NOT LIKE clausestringmixedstring\Query_Builder$fieldstring$valmixed$pos'both'stringor_not_like\Query_Builder::or_not_like()Generates a OR NOT LIKE clausestringmixedstring\Query_Builder$fieldstring$valmixed$pos'both'string_having\Query_Builder::_having()Simplify building having clausesmixedmixedstring\Query_Builder$keymixed$valarray()mixed$conj'AND'stringhaving\Query_Builder::having()Generates a 'Having' clausemixedmixed\Query_Builder$keymixed$valarray()mixedor_having\Query_Builder::or_having()Generates a 'Having' clause prefixed with 'OR'mixedmixed\Query_Builder$keymixed$valarray()mixed_where\Query_Builder::_where()Do all the repeditive stuff for where/having type methodsmixedmixedarray$keymixed$valarray()mixed_where_string\Query_Builder::_where_string()Simplify generating where stringmixedmixedstring\Query_Builder$keymixed$valarray()mixed$conj'AND'string_where_in\Query_Builder::_where_in()Simplify where_in methodsmixedmixedstringstring\Query_Builder$keymixed$valarray()mixed$in'IN'string$conj'AND'stringwhere\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 pairsmixedmixedmixed\Query_Builder$keymixed$valarray()mixed$escapeNULLmixedor_where\Query_Builder::or_where()Where clause prefixed with "OR"stringmixed\Query_Builder$keystring$valarray()mixedwhere_in\Query_Builder::where_in()Where clause with 'IN' statementmixedmixed\Query_Builder$fieldmixed$valarray()mixedor_where_in\Query_Builder::or_where_in()Where in statement prefixed with "or"stringmixed\Query_Builder$fieldstring$valarray()mixedwhere_not_in\Query_Builder::where_not_in()WHERE NOT IN (FOO) clausestringmixed\Query_Builder$fieldstring$valarray()mixedor_where_not_in\Query_Builder::or_where_not_in()OR WHERE NOT IN (FOO) clausestringmixed\Query_Builder$fieldstring$valarray()mixedset\Query_Builder::set()Sets values for inserts / updates / deletesmixedmixed\Query_Builder$keymixed$valNULLmixedjoin\Query_Builder::join()Creates a join phrase in a compiled querystringstringstring\Query_Builder$tablestring$conditionstring$type''stringgroup_by\Query_Builder::group_by()Group the results by the selected field(s)mixed\Query_Builder$fieldmixedorder_by\Query_Builder::order_by()Order the results by the selected field(s)stringstring\Query_Builder$fieldstring$type""stringlimit\Query_Builder::limit()Set a limit on the current sql statementintintstring$limitint$offsetFALSEintgroup_start\Query_Builder::group_start()Adds a paren to the current query for query grouping\Query_Builderor_group_start\Query_Builder::or_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR'\Query_Builderor_not_group_start\Query_Builder::or_not_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR NOT'\Query_Buildergroup_end\Query_Builder::group_end()Ends a query group\Query_Builderget\Query_Builder::get()Select and retrieve all records from the current table, and/or
execute current compiled queryintintobject$table''mixed$limitFALSEint$offsetFALSEintget_where\Query_Builder::get_where()Convience method for get() with a where clausestringarrayintintobject$tablestring$wherearray()array$limitFALSEint$offsetFALSEintcount_all\Query_Builder::count_all()Retreive the number of rows in the selected tablestringint$tablestringcount_all_results\Query_Builder::count_all_results()Retrieve the number of results for the generated query - used
in place of the get() methodstringint$table''stringinsert\Query_Builder::insert()Creates an insert clause, and executes itstringmixedmixed$tablestring$dataarray()mixedinsert_batch\Query_Builder::insert_batch()Create sql for batch insertstringarraystring$tablestring$dataarray()arrayupdate\Query_Builder::update()Creates an update clause, and executes itstringmixedmixed$tablestring$dataarray()mixeddelete\Query_Builder::delete()Deletes data from a tablestringmixedmixed$tablestring$where''mixedget_compiled_select\Query_Builder::get_compiled_select()Returns the generated 'select' sql querystringboolstring$table''string$resetTRUEboolget_compiled_insert\Query_Builder::get_compiled_insert()Returns the generated 'insert' sql querystringboolstring$tablestring$resetTRUEboolget_compiled_update\Query_Builder::get_compiled_update()Returns the generated 'update' sql querystringboolstring$table''string$resetTRUEboolget_compiled_delete\Query_Builder::get_compiled_delete()Returns the generated 'delete' sql querystringboolstring$table""string$resetTRUEbool_get_compile\Query_Builder::_get_compile()Helper function for returning sql stringsstringstringbool$typestring$tablestring$resetboolreset_query\Query_Builder::reset_query()Clear out the class variables, so the next query can be runvoid_run\Query_Builder::_run()Executes the compiled querystringstringboolstringmixedmixed$typestring$tablestring$simpleFALSEbool$sqlNULLstring$valsNULLmixed__call\Query_Builder::__call()Calls a function further down the inheritence chainstringarraymixed$namestring$paramsarray_compile\Query_Builder::_compile()String together the sql statements for sending to the dbstringstring\$string$type''string$table''stringQueryFree Query Builder / Database Abstraction Layer\DB_PDOFirebird\FirebirdFirebird Database classPDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.$statementReference to the last query executedobject$statement_linkReference to the resource returned by
the last query executedresource$transReference to the current transactionresource$connReference to the connection resourceresource__construct\Firebird::__construct()Open the link to the databasestringstringstring$dbpathstring$user'SYSDBA'string$pass'masterkey'stringtruncate\Firebird::truncate()Empty a database tablestring$tablestringquery\Firebird::query()Wrapper public function to better match PDOstring\Firebird$sqlstringprepare\Firebird::prepare()Emulate PDO preparestringarray\Firebird$querystring$optionsNULLarraybeginTransaction\Firebird::beginTransaction()Start a database transactionboolcommit\Firebird::commit()Commit a database transactionboolrollBack\Firebird::rollBack()Rollback a transactionboolprepare_execute\Firebird::prepare_execute()Prepare and execute a querystringarrayresource$sqlstring$argsarrayquote\Firebird::quote()Method to emulate PDO->quotestringintstring$strstring$param_typeNULLinterrorInfo\Firebird::errorInfo()Method to emulate PDO->errorInfo / PDOStatement->errorInfoarrayerrorCode\Firebird::errorCode()Method to emulate PDO->errorCodearrayprepare_query\Firebird::prepare_query()Bind a prepared query with arguments for executingstringarrayNULL$sqlstring$paramsarrayinsert_batch\Firebird::insert_batch()Create sql for batch insertstringarraystring$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction Layer\DB_UtilMySQL_Util\MySQL_UtilMySQL-specific backup, import and creation methods__construct\MySQL_Util::__construct()Save a reference to the current connection objectobjectvoid$conncreate_table\MySQL_Util::create_table()Convienience public function for creating a new MySQL tablestringarrayarrayarraystring$namestring$columnsarray$constraintsarray()array$indexesarray()arraydelete_table\MySQL_Util::delete_table()Convience public function for droping a tablestringstring$namestringbackup_structure\MySQL_Util::backup_structure()Create an SQL backup file for the current database's structurestringbackup_data\MySQL_Util::backup_data()Create an SQL backup file for the current database's dataarraystring$excludearray()arrayQueryFree Query Builder / Database Abstraction Layer\iDB_SQLODBC_SQL\ODBC_SQLODBC SQL Classlimit\ODBC_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\ODBC_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\ODBC_SQL::random()Random ordering keywordstringdb_list\ODBC_SQL::db_list()Returns sql to list other databasesNULLtable_list\ODBC_SQL::table_list()Returns sql to list tablesNULLsystem_table_list\ODBC_SQL::system_table_list()Returns sql to list system tablesNULLview_list\ODBC_SQL::view_list()Returns sql to list viewsNULLtrigger_list\ODBC_SQL::trigger_list()Returns sql to list triggersNULLfunction_list\ODBC_SQL::function_list()Return sql to list functionsNULLprocedure_list\ODBC_SQL::procedure_list()Return sql to list stored proceduresNULLsequence_list\ODBC_SQL::sequence_list()Return sql to list sequencesNULLtype_list\ODBC_SQL::type_list()SQL to show list of field typesNULLcolumn_list\ODBC_SQL::column_list()SQL to show infromation about columns in a tablestringNULL$tablestringQueryFree Query Builder / Database Abstraction Layer\DB_UtilODBC_Util\ODBC_UtilODBC-specific backup, import and creation methods__construct\ODBC_Util::__construct()Save a reference to the current connection objectobjectvoid$conncreate_table\ODBC_Util::create_table()Database-specific method to create a new tablestringarrayarrayarraystring$namestring$columnsarray$constraintsarray()array$indexesarray()arraydelete_table\ODBC_Util::delete_table()Remove a table from the databasestringstring$namestringbackup_structure\ODBC_Util::backup_structure()Create an SQL backup file for the current database's structurestringbackup_data\ODBC_Util::backup_data()Create an SQL backup file for the current database's datastringQueryFree Query Builder / Database Abstraction LayerDB_Util\DB_UtilAbstract class defining database / table creation methods$connReference to the current connection object__construct\DB_Util::__construct()Save a reference to the connection object for later useobject$connobject__call\DB_Util::__call()Enable calling driver methodsstringarraymixed$methodstring$argsarraycreate_table\DB_Util::create_table()Get database-specific sql to create a new tablestringarrayarrayarraystring$namestring$columnsarray$constraintsarray()array$indexesarray()arraydelete_table\DB_Util::delete_table()Get database-specific sql to drop a tablestringstring$namestringbackup_structure\DB_Util::backup_structure()Return an SQL file with the database table structurestringbackup_data\DB_Util::backup_data()Return an SQL file with the database data as insert statementsstringQueryFree Query Builder / Database Abstraction LayeriQuery_Builder\iQuery_BuilderInterface defining the Query Builder classselect\iQuery_Builder::select()Specifies rows to select in a querystring\iQuery_Builder$fieldsstringselect_max\iQuery_Builder::select_max()Selects the maximum value of a field from a querystringstring\iQuery_Builder$fieldstring$asFALSEstringselect_min\iQuery_Builder::select_min()Selects the minimum value of a field from a querystringstring\iQuery_Builder$fieldstring$asFALSEstringselect_avg\iQuery_Builder::select_avg()Selects the average value of a field from a querystringstring\iQuery_Builder$fieldstring$asFALSEstringselect_sum\iQuery_Builder::select_sum()Selects the sum of a field from a querystringstring\iQuery_Builder$fieldstring$asFALSEstringdistinct\iQuery_Builder::distinct()Adds the 'distinct' keyword to a query\iQuery_Builderexplain\iQuery_Builder::explain()Shows the query plan for the query\iQuery_Builderfrom\iQuery_Builder::from()Specify the database table to select fromstring\iQuery_Builder$tblnamestringlike\iQuery_Builder::like()Creates a Like clause in the sql statementstringmixedstring\iQuery_Builder$fieldstring$valmixed$pos'both'stringor_like\iQuery_Builder::or_like()Generates an OR Like clausestringmixedstring\iQuery_Builder$fieldstring$valmixed$pos'both'stringnot_like\iQuery_Builder::not_like()Generates a NOT LIKE clausestringmixedstring\iQuery_Builder$fieldstring$valmixed$pos'both'stringor_not_like\iQuery_Builder::or_not_like()Generates a OR NOT LIKE clausestringmixedstring\iQuery_Builder$fieldstring$valmixed$pos'both'stringhaving\iQuery_Builder::having()Generates a 'Having' clausemixedmixed\iQuery_Builder$keymixed$valarray()mixedor_having\iQuery_Builder::or_having()Generates a 'Having' clause prefixed with 'OR'mixedmixed\iQuery_Builder$keymixed$valarray()mixedwhere\iQuery_Builder::where()$key$valarray()$escapeNULLor_where\iQuery_Builder::or_where()Where clause prefixed with "OR"stringmixed\iQuery_Builder$keystring$valarray()mixedwhere_in\iQuery_Builder::where_in()Where clause with 'IN' statementmixedmixed\iQuery_Builder$fieldmixed$valarray()mixedor_where_in\iQuery_Builder::or_where_in()Where in statement prefixed with "or"stringmixed\iQuery_Builder$fieldstring$valarray()mixedwhere_not_in\iQuery_Builder::where_not_in()WHERE NOT IN (FOO) clausestringmixed\iQuery_Builder$fieldstring$valarray()mixedor_where_not_in\iQuery_Builder::or_where_not_in()OR WHERE NOT IN (FOO) clausestringmixed\iQuery_Builder$fieldstring$valarray()mixedset\iQuery_Builder::set()Sets values for inserts / updates / deletesmixedmixed\iQuery_Builder$keymixed$valNULLmixedjoin\iQuery_Builder::join()Creates a join phrase in a compiled querystringstringstring\iQuery_Builder$tablestring$conditionstring$type''stringgroup_by\iQuery_Builder::group_by()Group the results by the selected field(s)mixed\iQuery_Builder$fieldmixedorder_by\iQuery_Builder::order_by()Order the results by the selected field(s)stringstring\iQuery_Builder$fieldstring$type""stringlimit\iQuery_Builder::limit()Set a limit on the current sql statementintintstring$limitint$offsetFALSEintgroup_start\iQuery_Builder::group_start()Adds a paren to the current query for query grouping\iQuery_Builderor_group_start\iQuery_Builder::or_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR'\iQuery_Builderor_not_group_start\iQuery_Builder::or_not_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR NOT'\iQuery_Buildergroup_end\iQuery_Builder::group_end()Ends a query group\iQuery_Builderget\iQuery_Builder::get()Select and retrieve all records from the current table, and/or
execute current compiled queryintintobject$table''mixed$limitFALSEint$offsetFALSEintget_where\iQuery_Builder::get_where()Convience method for get() with a where clausestringarrayintintobject$tablestring$wherearray()array$limitFALSEint$offsetFALSEintcount_all\iQuery_Builder::count_all()Retreive the number of rows in the selected tablestringint$tablestringcount_all_results\iQuery_Builder::count_all_results()Retrieve the number of results for the generated query - used
in place of the get() methodstringint$table''stringinsert\iQuery_Builder::insert()Creates an insert clause, and executes itstringmixedmixed$tablestring$dataarray()mixedupdate\iQuery_Builder::update()Creates an update clause, and executes itstringmixedmixed$tablestring$dataarray()mixeddelete\iQuery_Builder::delete()Deletes data from a tablestringmixedmixed$tablestring$where''mixedget_compiled_select\iQuery_Builder::get_compiled_select()Returns the generated 'select' sql querystringboolstring$table''string$resetTRUEboolget_compiled_insert\iQuery_Builder::get_compiled_insert()Returns the generated 'insert' sql querystringboolstring$tablestring$resetTRUEboolget_compiled_update\iQuery_Builder::get_compiled_update()Returns the generated 'update' sql querystringboolstring$table''string$resetTRUEboolget_compiled_delete\iQuery_Builder::get_compiled_delete()Returns the generated 'delete' sql querystringboolstring$table""string$resetTRUEboolreset_query\iQuery_Builder::reset_query()Clear out the class variables, so the next query can be runvoidQueryFree Query Builder / Database Abstraction Layer\DB_UtilSQLite_Util\SQLite_UtilSQLite-specific backup, import and creation methods__construct\SQLite_Util::__construct()Save a reference to the current connection objectobjectvoid$conncreate_table\SQLite_Util::create_table()Convenience public function to create a new tablestringarrayarrayarraystring$namestring$columnsarray$constraintsarray()array$indexesarray()arraydelete_table\SQLite_Util::delete_table()SQL to drop the specified tablestringstring$namestringbackup_data\SQLite_Util::backup_data()Create an SQL backup file for the current database's dataarraystring$excludedarray()arraybackup_structure\SQLite_Util::backup_structure()Create an SQL backup file for the current database's structurestringQueryFree Query Builder / Database Abstraction Layer\DB_UtilPgSQL_Util\PgSQL_UtilPosgres-specific backup, import and creation methods__construct\PgSQL_Util::__construct()Save a reference to the current connection objectobjectvoid$conncreate_table\PgSQL_Util::create_table()Database-specific method to create a new tablestringarrayarrayarraystring$namestring$columnsarray$constraintsarray()array$indexesarray()arraydelete_table\PgSQL_Util::delete_table()Database-specific SQL for dropping a tablestringstring$namestringbackup_structure\PgSQL_Util::backup_structure()Create an SQL backup file for the current database's structurestringbackup_data\PgSQL_Util::backup_data()Create an SQL backup file for the current database's dataarraystring$excludearray()arrayImplement Backup functionQueryFree Query Builder / Database Abstraction Layer\iDB_SQLPgSQL_SQL\PgSQL_SQLPostgreSQL specifc SQLlimit\PgSQL_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\PgSQL_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\PgSQL_SQL::random()Random ordering keywordstringdb_list\PgSQL_SQL::db_list()Returns sql to list other databasesstringtable_list\PgSQL_SQL::table_list()Returns sql to list tablesstringsystem_table_list\PgSQL_SQL::system_table_list()Returns sql to list system tablesstringview_list\PgSQL_SQL::view_list()Returns sql to list viewsstringtrigger_list\PgSQL_SQL::trigger_list()Returns sql to list triggersstringfunction_list\PgSQL_SQL::function_list()Return sql to list functionsNULLprocedure_list\PgSQL_SQL::procedure_list()Return sql to list stored proceduresstringsequence_list\PgSQL_SQL::sequence_list()Return sql to list sequencesstringcolumn_list\PgSQL_SQL::column_list()Return sql to list columns of the specified tablestringstring$tablestringtype_list\PgSQL_SQL::type_list()SQL to show list of field typesstringQueryFree Query Builder / Database Abstraction Layer\iDB_SQLMySQL_SQL\MySQL_SQLMySQL specifc SQLlimit\MySQL_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\MySQL_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\MySQL_SQL::random()Random ordering keywordstringdb_list\MySQL_SQL::db_list()Returns sql to list other databasesstringtable_list\MySQL_SQL::table_list()Returns sql to list tablesstringstring$database''stringsystem_table_list\MySQL_SQL::system_table_list()Overridden in MySQL classstringview_list\MySQL_SQL::view_list()Returns sql to list viewsstringtrigger_list\MySQL_SQL::trigger_list()Returns sql to list triggersstringfunction_list\MySQL_SQL::function_list()Return sql to list functionsstringprocedure_list\MySQL_SQL::procedure_list()Return sql to list stored proceduresstringsequence_list\MySQL_SQL::sequence_list()Return sql to list sequencesNULLtype_list\MySQL_SQL::type_list()SQL to show list of field typesstringcolumn_list\MySQL_SQL::column_list()SQL to show infromation about columns in a tablestringstring$tablestringQueryFree Query Builder / Database Abstraction Layer\iDB_SQLFirebird_SQL\Firebird_SQLFirebird Specific SQLlimit\Firebird_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\Firebird_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\Firebird_SQL::random()Random ordering keywordstringdb_list\Firebird_SQL::db_list()Returns sql to list other databasesNULLtable_list\Firebird_SQL::table_list()Returns sql to list tablesstringsystem_table_list\Firebird_SQL::system_table_list()Returns sql to list system tablesstringview_list\Firebird_SQL::view_list()Returns sql to list viewsstringtrigger_list\Firebird_SQL::trigger_list()Returns sql to list triggersstringfunction_list\Firebird_SQL::function_list()Return sql to list functionsstringprocedure_list\Firebird_SQL::procedure_list()Return sql to list stored proceduresstringsequence_list\Firebird_SQL::sequence_list()Return sql to list sequencesstringcolumn_list\Firebird_SQL::column_list()Return sql to list columns of the specified tablestringstring$tablestringtype_list\Firebird_SQL::type_list()SQL to show list of field typesstringQueryFree Query Builder / Database Abstraction Layer\DB_PDOSQLite\SQLiteSQLite specific classExtends PDO to simplify cross-database issues$statementReference to the last executed sql query\PDOStatement__construct\SQLite::__construct()Open SQLite Databasestringstringstring$dsnstring$userNULLstring$passNULLstringtruncate\SQLite::truncate()Empty a tablestring$tablestringget_tables\SQLite::get_tables()List tables for the current databasemixedget_system_tables\SQLite::get_system_tables()List system tables for the current databasearrayinsert_batch\SQLite::insert_batch()Create sql for batch insertstringarraystring$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction Layer\iDB_SQLSQLite_SQL\SQLite_SQLSQLite Specific SQLlimit\SQLite_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\SQLite_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\SQLite_SQL::random()Random ordering keywordstringdb_list\SQLite_SQL::db_list()Returns sql to list other databasesNULLtable_list\SQLite_SQL::table_list()Returns sql to list tablesstringsystem_table_list\SQLite_SQL::system_table_list()Overridden in SQLite classstringview_list\SQLite_SQL::view_list()Returns sql to list viewsstringtrigger_list\SQLite_SQL::trigger_list()Returns sql to list triggersNULLfunction_list\SQLite_SQL::function_list()Return sql to list functionsNULLprocedure_list\SQLite_SQL::procedure_list()Return sql to list stored proceduresNULLsequence_list\SQLite_SQL::sequence_list()Return sql to list sequencesNULLtype_list\SQLite_SQL::type_list()SQL to show list of field typesarraycolumn_list\SQLite_SQL::column_list()SQL to show infromation about columns in a tablestringstring$tablestringQueryFree Query Builder / Database Abstraction Layer\DB_PDOODBC\ODBCODBC Database DriverFor 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\ODBC::__construct()Use ODBC to connect to a databasestringstringstringarray$dsnstring$usernamenullstring$passwordnullstring$optionsarray()arraytruncate\ODBC::truncate()Empty the current databasestringvoid$tablestringinsert_batch\ODBC::insert_batch()Create sql for batch insertstringarraystring$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction Layer\DB_PDOPgSQL\PgSQLPostgreSQL specifc classExtends PDO to simplify cross-database issues__construct\PgSQL::__construct()Connect to a PosgreSQL databasestringstringstringarray$dsnstring$usernamenullstring$passwordnullstring$optionsarray()arraytruncate\PgSQL::truncate()Empty a tablestring$tablestringget_schemas\PgSQL::get_schemas()Get a list of schemas for the current connectionarrayQueryFree Query Builder / Database Abstraction Layerdo_include\do_include()Bulk directory loading workaround for use
with array_map and globstringvoid$pathstringmb_trim\mb_trim()Multibyte-safe trim functionstringstring$stringstringdb_filter\db_filter()Filter out db rows into one arrayarraymixedarray$arrayarray$indexmixedQuery\Query()Connection functionmixed\Query_Builder\InvalidArgumentException\BadDBDriverException\BadConnectionException$params''mixed\InvalidArgumentExceptionBadDBDriverException\BadDBDriverExceptionGeneric exception for bad drivers\UnexpectedValueExceptionBadConnectionException\BadConnectionExceptionGeneric exception for bad connection stringsQueryFree Query Builder / Database Abstraction LayerQBASE_PATH\\QBASE_PATHdirname(__FILE__) . '/'Reference to root pathQDRIVER_PATH\\QDRIVER_PATHQBASE_PATH . 'drivers/'Path to driver classesquery_autoload\query_autoload()Load query classesstring$classstringQueryFree Query Builder / Database Abstraction LayerQuery_Parser\Query_ParserUtility Class to parse sql clauses for properly escaping identifiers$match_patternsarray('function' => '([a-zA-Z0-9_]+\((.*?)\))', 'identifier' => '([a-zA-Z0-9_-]+\.?)+', 'operator' => '=|AND|&&?|~|\|\|?|\^|/|>=?|<=?|-|%|OR|\+|NOT|\!=?|<>|XOR')Regex patterns for various syntax componentsarray$matchesarray('functions' => array(), 'identifiers' => array(), 'operators' => array(), 'combined' => array())Regex matchesarray__construct\Query_Parser::__construct()Constructor/entry point into parserstring$sql''parse_join\Query_Parser::parse_join()Public parser method for seting the parse stringstring$sqlfilter_array\Query_Parser::filter_array()Returns a more useful match arrayarrayarray$arrayQueryFree Query Builder / Database Abstraction LayeriDB_SQL\iDB_SQLparent for database manipulation subclasseslimit\iDB_SQL::limit()Get database specific sql for limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\iDB_SQL::explain()Modify the query to get the query planstringstring$sqlstringrandom\iDB_SQL::random()Get the sql for random orderingstringdb_list\iDB_SQL::db_list()Returns sql to list other databasesstringtable_list\iDB_SQL::table_list()Returns sql to list tablesstringsystem_table_list\iDB_SQL::system_table_list()Returns sql to list system tablesstringview_list\iDB_SQL::view_list()Returns sql to list viewsstringtrigger_list\iDB_SQL::trigger_list()Returns sql to list triggersstringfunction_list\iDB_SQL::function_list()Return sql to list functionsNULLprocedure_list\iDB_SQL::procedure_list()Return sql to list stored proceduresstringsequence_list\iDB_SQL::sequence_list()Return sql to list sequencesstringtype_list\iDB_SQL::type_list()Return sql to list database field typesmixedcolumn_list\iDB_SQL::column_list()Get information about the columns in the
specified tablestringstring$tableQueryFree Query Builder / Database Abstraction Layer\DB_PDOMySQL\MySQLMySQL specific classExtends PDO to simplify cross-database issues$escape_char'`'Set the backtick as the MySQL escape characterstring__construct\MySQL::__construct()Connect to MySQL Databasestringstringstringarray$dsnstring$usernamenullstring$passwordnullstring$optionsarray()arraytruncate\MySQL::truncate()Empty a tablestring$tablestring