QueryFree 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''stringparse_join\Query_Parser::parse_join()Public parser method for seting the parse stringstring$sqlstringfilter_array\Query_Parser::filter_array()Returns a more useful match arrayarrayarray$arrayarrayQueryFree Query Builder / Database Abstraction LayerDriver_Interface\Driver_InterfacePDO Interface to implement for database drivers__construct\Driver_Interface::__construct()Constructor/Connection methodstring\[string]\[string]\[array]void$dsnstring$usernameNULL\[string]$passwordNULL\[string]$driver_optionsarray()\[array]beginTransaction\Driver_Interface::beginTransaction()Begin a transactionboolcommit\Driver_Interface::commit()Commit a transactionboolerrorCode\Driver_Interface::errorCode()Return the current error codemixederrorInfo\Driver_Interface::errorInfo()Return information about the current errorarrayexec\Driver_Interface::exec()Execute an SQL statement and return the number of affected rowsstringint$statementstringgetAttribute\Driver_Interface::getAttribute()Get a connection attribute for the current db driverint$attributeintrollback\Driver_Interface::rollback()Rollback a transactionboolsetAttribute\Driver_Interface::setAttribute()Set a connection attributeintmixedbool$attributeint$valuemixedQueryFree Query Builder / Database Abstraction LayerQuery_Builder_Interface\Query_Builder_InterfaceInterface defining the Query Builder classselect\Query_Builder_Interface::select()Specifies rows to select in a querystring\Query_Builder$fieldsstringselect_max\Query_Builder_Interface::select_max()Selects the maximum value of a field from a querystringstring\Query_Builder$fieldstring$asFALSEstringselect_min\Query_Builder_Interface::select_min()Selects the minimum value of a field from a querystringstring\Query_Builder$fieldstring$asFALSEstringselect_avg\Query_Builder_Interface::select_avg()Selects the average value of a field from a querystringstring\Query_Builder$fieldstring$asFALSEstringselect_sum\Query_Builder_Interface::select_sum()Selects the sum of a field from a querystringstring\Query_Builder$fieldstring$asFALSEstringdistinct\Query_Builder_Interface::distinct()Adds the 'distinct' keyword to a query\Query_Builderexplain\Query_Builder_Interface::explain()Shows the query plan for the query\Query_Builderfrom\Query_Builder_Interface::from()Specify the database table to select fromstring\Query_Builder$tblnamestringlike\Query_Builder_Interface::like()Creates a Like clause in the sql statementstringmixedstring\Query_Builder$fieldstring$valmixed$pos'both'stringor_like\Query_Builder_Interface::or_like()Generates an OR Like clausestringmixedstring\Query_Builder$fieldstring$valmixed$pos'both'stringnot_like\Query_Builder_Interface::not_like()Generates a NOT LIKE clausestringmixedstring\Query_Builder$fieldstring$valmixed$pos'both'stringor_not_like\Query_Builder_Interface::or_not_like()Generates a OR NOT LIKE clausestringmixedstring\Query_Builder$fieldstring$valmixed$pos'both'stringhaving\Query_Builder_Interface::having()Generates a 'Having' clausemixedmixed\Query_Builder$keymixed$valarray()mixedor_having\Query_Builder_Interface::or_having()Generates a 'Having' clause prefixed with 'OR'mixedmixed\Query_Builder$keymixed$valarray()mixedwhere\Query_Builder_Interface::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 pairsmixedmixedbool\Query_Builder$keymixed$valarray()mixed$escapeNULLboolor_where\Query_Builder_Interface::or_where()Where clause prefixed with "OR"stringmixed\Query_Builder$keystring$valarray()mixedwhere_in\Query_Builder_Interface::where_in()Where clause with 'IN' statementmixedmixed\Query_Builder$fieldmixed$valarray()mixedor_where_in\Query_Builder_Interface::or_where_in()Where in statement prefixed with "or"stringmixed\Query_Builder$fieldstring$valarray()mixedwhere_not_in\Query_Builder_Interface::where_not_in()WHERE NOT IN (FOO) clausestringmixed\Query_Builder$fieldstring$valarray()mixedor_where_not_in\Query_Builder_Interface::or_where_not_in()OR WHERE NOT IN (FOO) clausestringmixed\Query_Builder$fieldstring$valarray()mixedset\Query_Builder_Interface::set()Sets values for inserts / updates / deletesmixedmixed\Query_Builder$keymixed$valNULLmixedjoin\Query_Builder_Interface::join()Creates a join phrase in a compiled querystringstringstring\Query_Builder$tablestring$conditionstring$type''stringgroup_by\Query_Builder_Interface::group_by()Group the results by the selected field(s)mixed\Query_Builder$fieldmixedorder_by\Query_Builder_Interface::order_by()Order the results by the selected field(s)stringstring\Query_Builder$fieldstring$type""stringlimit\Query_Builder_Interface::limit()Set a limit on the current sql statementintintstring$limitint$offsetFALSEintgroup_start\Query_Builder_Interface::group_start()Adds a paren to the current query for query grouping\Query_Builderor_group_start\Query_Builder_Interface::or_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR'\Query_Builderor_not_group_start\Query_Builder_Interface::or_not_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR NOT'\Query_Buildergroup_end\Query_Builder_Interface::group_end()Ends a query group\Query_Builderget\Query_Builder_Interface::get()Select and retrieve all records from the current table, and/or
execute current compiled queryintint\PDOStatement$table''mixed$limitFALSEint$offsetFALSEintget_where\Query_Builder_Interface::get_where()Convience method for get() with a where clausestringarrayintint\PDOStatement$tablestring$wherearray()array$limitFALSEint$offsetFALSEintcount_all\Query_Builder_Interface::count_all()Retreive the number of rows in the selected tablestringint$tablestringcount_all_results\Query_Builder_Interface::count_all_results()Retrieve the number of results for the generated query - used
in place of the get() methodstringint$table''stringinsert\Query_Builder_Interface::insert()Creates an insert clause, and executes itstringmixed\PDOStatement$tablestring$dataarray()mixedinsert_batch\Query_Builder_Interface::insert_batch()Creates and executes a batch insertion querystringarray\PDOStatement$tablestring$dataarray()arrayupdate\Query_Builder_Interface::update()Creates an update clause, and executes itstringmixed\PDOStatement$tablestring$dataarray()mixeddelete\Query_Builder_Interface::delete()Deletes data from a tablestringmixed\PDOStatement$tablestring$where''mixedget_compiled_select\Query_Builder_Interface::get_compiled_select()Returns the generated 'select' sql querystringboolstring$table''string$resetTRUEboolget_compiled_insert\Query_Builder_Interface::get_compiled_insert()Returns the generated 'insert' sql querystringboolstring$tablestring$resetTRUEboolget_compiled_update\Query_Builder_Interface::get_compiled_update()Returns the generated 'update' sql querystringboolstring$table''string$resetTRUEboolget_compiled_delete\Query_Builder_Interface::get_compiled_delete()Returns the generated 'delete' sql querystringboolstring$table""string$resetTRUEboolreset_query\Query_Builder_Interface::reset_query()Clear out the class variables, so the next query can be runvoidQueryFree Query Builder / Database Abstraction Layer\SQL_InterfaceAbstract_SQL\Abstract_SQLparent for database manipulation subclasseslimit\Abstract_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintQueryFree 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()Convienience public function to generate sql for creating a db tablestringarrayarrayarraystring$namestring$fieldsarray$constraintsarray()array$indexesarray()arraydelete_table\DB_Util::delete_table()Drop the selected 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 LayerTable_Builder_Interface\Table_Builder_InterfaceAbstract class defining database / table creation methods__construct\Table_Builder_Interface::__construct()Constructorstringarray\Abstract_Driver$namestring$optionsarray()array$drivernull\Abstract_DriverQueryFree Query Builder / Database Abstraction Layer\PDO\Driver_InterfaceAbstract_Driver\Abstract_DriverBase Database classExtends PDO to simplify cross-database issues$statementReference to the last executed query\PDOStatement$escape_char'"'Character to escape indentifiersstring$sqlReference to sql class\SQL_Interface$utilReference to util class\DB_Util$last_queryLast query executedstring$table_prefix''Prefix to apply to table namesstring__construct\Abstract_Driver::__construct()PDO constructor wrapperstringstringstringarray$dsnstring$usernameNULLstring$passwordNULLstring$driver_optionsarray()arrayprepare_query\Abstract_Driver::prepare_query()Simplifies prepared statements for database queriesstringarray\PDOStatement\InvalidArgumentException$sqlstring$dataarrayprepare_execute\Abstract_Driver::prepare_execute()Create and execute a prepared statement with the provided parametersstringarray\PDOStatement$sqlstring$paramsarrayaffected_rows\Abstract_Driver::affected_rows()Returns number of rows affected by an INSERT, UPDATE, DELETE type queryintquote_table\Abstract_Driver::quote_table()Quote database table name, and set prefixstringstring$tablestring_prefix\Abstract_Driver::_prefix()Sets the table prefix on the passed stringstringstring$strstringquote_ident\Abstract_Driver::quote_ident()Surrounds the string with the databases identifier escape charactersmixedstring$identmixed_quote\Abstract_Driver::_quote()Helper method for quote_identmixedmixed$strmixedget_schemas\Abstract_Driver::get_schemas()Return schemas for databases that list themarrayget_tables\Abstract_Driver::get_tables()Return list of tables for the current databasearrayget_dbs\Abstract_Driver::get_dbs()Return list of dbs for the current connection, if possiblearrayget_views\Abstract_Driver::get_views()Return list of views for the current databasearrayget_sequences\Abstract_Driver::get_sequences()Return list of sequences for the current database, if they existarrayget_functions\Abstract_Driver::get_functions()Return list of function for the current databasearrayget_procedures\Abstract_Driver::get_procedures()Return list of stored procedures for the current databasearrayget_triggers\Abstract_Driver::get_triggers()Return list of triggers for the current databasearrayget_system_tables\Abstract_Driver::get_system_tables()Retreives an array of non-user-created tables for
the connection/databasearrayget_columns\Abstract_Driver::get_columns()Retrieve column information for the current database tablestringarray$tablestringget_types\Abstract_Driver::get_types()Retrieve list of data types for the databasearraydriver_query\Abstract_Driver::driver_query()Method to simplify retreiving db results for meta-data queriesstringboolarray$sqlstring$filtered_indexTRUEboolnum_rows\Abstract_Driver::num_rows()Return the number of rows returned for a SELECT queryinttruncate\Abstract_Driver::truncate()Empty the passed tablestringvoid$tablestringinsert_batch\Abstract_Driver::insert_batch()Create sql for batch insertstringarraystring$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction Layer\Table_Builder_InterfaceTable_Builder\Table_BuilderAbstract class defining database / table creation methods$name''The name of the current tablestring$driverNULLDriver for the current db\Driver_Interface$table_optionsarray()Options for the current tablearray__construct\Table_Builder::__construct()Constructorstringarray\Driver_Interface\Table_Builder$namestring$optionsarray()array$driverNULL\Driver_Interfaceadd_column\Table_Builder::add_column()$column_name$typeNULL$optionsarray()remove_column\Table_Builder::remove_column()$column_namerename_column\Table_Builder::rename_column()$old_name$new_namechange_column\Table_Builder::change_column()$column_name$new_column_type$optionsarray()has_column\Table_Builder::has_column()$column_name$optionsarray()add_index\Table_Builder::add_index()$columns$optionsarray()remove_index\Table_Builder::remove_index()$columns$optionsarray()remove_index_by_name\Table_Builder::remove_index_by_name()$namehas_index\Table_Builder::has_index()$columns$optionsarray()add_foreign_key\Table_Builder::add_foreign_key()$columns$referenced_table$referenced_columnsarray('id')$optionsarray()drop_foreign_key\Table_Builder::drop_foreign_key()$columns$constraintNULLhas_foreign_key\Table_Builder::has_foreign_key()$columns$constraintNULLexists\Table_Builder::exists()drop\Table_Builder::drop()rename\Table_Builder::rename()$new_table_nameget_columns\Table_Builder::get_columns()create\Table_Builder::create()update\Table_Builder::update()save\Table_Builder::save()reset\Table_Builder::reset()QueryFree Query Builder / Database Abstraction Layer\InvalidArgumentExceptionBadDBDriverException\BadDBDriverExceptionGeneric exception for bad driversConnection_Manager\Connection_ManagerConnection manager class to manage connections for the
Query method$connectionsarray()Map of named database connectionsarray$instancenullClass instance variable\Connection_Manager__construct\Connection_Manager::__construct()Private constructor to prevent multiple instances__clone\Connection_Manager::__clone()Private clone method to prevent cloning__wakeup\Connection_Manager::__wakeup()Make sure serialize/deseriaze doesn't work\DomainExceptionget_instance\Connection_Manager::get_instance()Return a connection manager instance\Connection_Managerget_connection\Connection_Manager::get_connection()Returns the connection specified by the name givenmixed\Query_Builder\InvalidArgumentException$name''mixedconnect\Connection_Manager::connect()Parse the passed parameters and return a connectionarrayobject\Query_Builder\BadConnectionException$paramsarray|objectparse_params\Connection_Manager::parse_params()Parses params into a dsn and option array\ArrayObject\BadDBDriverException$params\ArrayObjectcreate_dsn\Connection_Manager::create_dsn()Create the dsn from the db type and paramsstringarrayobjectstring$dbtypestring$paramsarray|objectQueryFree Query Builder / Database Abstraction LayerSQL_Interface\SQL_Interfaceparent for database manipulation subclasseslimit\SQL_Interface::limit()Get database specific sql for limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\SQL_Interface::explain()Modify the query to get the query planstringstring$sqlstringrandom\SQL_Interface::random()Get the sql for random orderingstringdb_list\SQL_Interface::db_list()Returns sql to list other databasesstringtable_list\SQL_Interface::table_list()Returns sql to list tablesstringsystem_table_list\SQL_Interface::system_table_list()Returns sql to list system tablesstringview_list\SQL_Interface::view_list()Returns sql to list viewsstringtrigger_list\SQL_Interface::trigger_list()Returns sql to list triggersstringfunction_list\SQL_Interface::function_list()Return sql to list functionsNULLprocedure_list\SQL_Interface::procedure_list()Return sql to list stored proceduresstringsequence_list\SQL_Interface::sequence_list()Return sql to list sequencesstringtype_list\SQL_Interface::type_list()Return sql to list database field typesstringarraycolumn_list\SQL_Interface::column_list()Get information about the columns in the
specified tablestringstring$tablestringQueryFree Query Builder / Database Abstraction Layer\Query_Builder_InterfaceQuery_Builder\Query_BuilderConvienience class for creating sql queries - also the class that
instantiates the specific db driver$select_string''Compiled 'select' clause\type$from_stringCompiled 'from' clause\type$set_stringCompiled arguments for insert / updatestring$order_stringOrder by clausestring$group_stringGroup by clausestring$set_array_keysarray()Keys for insert/update statementarray$order_arrayarray()Key/val pairs for order by clausearray$group_arrayarray()Key/val pairs for group by clausearray$valuesarray()Values to apply to prepared statementsarray$where_valuesarray()Values to apply to where clauses in prepared statementsarray$limitValue for limit string\type$offsetValue for offset in limit stringint$query_maparray()Query component order mapping
for complex select queriesFormat:
array(
'type' => 'where',
'conjunction' => ' AND ',
'string' => 'k=?'
)array$having_mapMap for having clausearray$conn_name""Convenience property for connection managementstring$queriesList of queries executedarray$explainWhether to do only an explain on the querybool$dbThe current database driver\Driver_Interface$parserQuery parser class instance\Query_Parser$utilAlias to $this->db->util\DB_Util$sqlAlias to $this->db->sql\SQL_Interface__construct\Query_Builder::__construct()Constructor\Abstract_driver\ArrayObject$db\Abstract_driver$params\ArrayObject__destruct\Query_Builder::__destruct()Destructor_select\Query_Builder::_select()Method to simplify select_ methodsstringstringstring$fieldstring$asFALSEstringselect\Query_Builder::select()Specifies rows to select in a querystring\Query_Builder$fieldsstringselect_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 statementintint\Query_Builder$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 queryintint\PDOStatement$table''mixed$limitFALSEint$offsetFALSEintget_where\Query_Builder::get_where()Convience method for get() with a where clausestringarrayintint\PDOStatement$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 itstringmixed\PDOStatement$tablestring$dataarray()mixedinsert_batch\Query_Builder::insert_batch()Creates and executes a batch insertion querystringarray\PDOStatement$tablestring$dataarray()arrayupdate\Query_Builder::update()Creates an update clause, and executes itstringmixed\PDOStatement$tablestring$dataarray()mixeddelete\Query_Builder::delete()Deletes data from a tablestringmixed\PDOStatement$tablestring$where''mixed_get_compile\Query_Builder::_get_compile()Helper function for returning sql stringsstringstringbool$typestring$tablestring$resetboolget_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$resetTRUEboolreset_query\Query_Builder::reset_query()Clear out the class variables, so the next query can be runvoid_run\Query_Builder::_run()Executes the compiled querystringstringstringarraynull\PDOStatement$typestring$tablestring$sqlNULLstring$valsNULLarray|null__call\Query_Builder::__call()Calls a function further down the inheritence chainstringarraymixed\BadMethodCallException$namestring$paramsarray_append_query\Query_Builder::_append_query()Convert the prepared statement into readable sqlarraystringstringvoid$valsarray$sqlstring$total_timestring_append_map\Query_Builder::_append_map()Add an additional set of mapping pairs to a internal mapstringstringstringvoid$conjunction''string$string''string$type''string_compile_type\Query_Builder::_compile_type()Sub-method for generating sql stringsstringstringstring$type''string$table''string_compile\Query_Builder::_compile()String together the sql statements for sending to the dbstringstring\$string$type''string$table''stringQueryFree Query Builder / Database Abstraction Layer\Abstract_DriverSQLite\SQLiteSQLite specific classExtends PDO to simplify cross-database issues$statementReference to the last executed sql query\PDOStatement__construct\SQLite::__construct()Open SQLite Databasestringstringstringarray$dsnstring$userNULLstring$passNULLstring$driver_optionsarray()arraytruncate\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 databasestring[]insert_batch\SQLite::insert_batch()Create sql for batch insertstringarraystring$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction Layer\Abstract_SQLSQLite_SQL\SQLite_SQLSQLite Specific SQLexplain\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 typesstring[]column_list\SQLite_SQL::column_list()SQL to show infromation about columns in a tablestringstring$tablestringQueryFree Query Builder / Database Abstraction Layer\DB_UtilSQLite_Util\SQLite_UtilSQLite-specific backup, import and creation methodscreate_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 structurestringqueryquoteQueryFree Query Builder / Database Abstraction Layer\Abstract_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\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$parammixed$typeNULLint$maxlenNULLmixed$driverdataNULLarraybindParam\Firebird_Result::bindParam()Invalidate method for data consistencymixedmixedintmixedarrayNULL$parametermixed$variablemixed$data_typeNULLint$maxlenNULLmixed$driverdataNULLarraybindValue\Firebird_Result::bindValue()Invalidate method for data consistencymixedmixedintNULL$parametermixed$variablemixed$data_typeNULLintexecute\Firebird_Result::execute()Run a prepared statement queryarray\Firebird_Result$argsNULLarrayfetch\Firebird_Result::fetch()Emulate PDO fetch public functionintmixedmixedmixed$fetch_style\PDO::FETCH_ASSOCint$cursor_orientation\PDO::FETCH_ORI_NEXTmixed$cursor_offsetNULLmixedfetchAll\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\Abstract_DriverFirebird\FirebirdFirebird Database classPDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.$statementNULLReference to the last query executedobject$statement_linkNULLReference to the resource returned by
the last query executedresource$transNULLReference to the current transactionresource$connNULLReference to the connection resourceresource__construct\Firebird::__construct()Open the link to the databasestringstringstringarray$dbpathstring$user'SYSDBA'string$pass'masterkey'string$optionsarray()arraytruncate\Firebird::truncate()Empty a database tablestring$tablestringexec\Firebird::exec()Execute an sql statement and return number of affected rowsstringint$sqlstringgetAttribute\Firebird::getAttribute()Implement for compatibility with PDOintmixed$attributeintinTransaction\Firebird::inTransaction()Return whether the current statement is in a transactionboollastInsertId\Firebird::lastInsertId()Returns the last value of the specified generatorstringmixed$nameNULLstringquery\Firebird::query()Wrapper public function to better match PDOstring\Firebird_Result\PDOException$sql''stringprepare\Firebird::prepare()Emulate PDO preparestringarray\Firebird_Result\PDOException$querystring$optionsarray()arraybeginTransaction\Firebird::beginTransaction()Start a database transactionbooleannullcommit\Firebird::commit()Commit a database transactionboolrollBack\Firebird::rollBack()Rollback a transactionboolsetAttribute\Firebird::setAttribute()Set a connection attributeintmixedbool$attributeint$valuemixedprepare_execute\Firebird::prepare_execute()Prepare and execute a querystringarray\Firebird_Result$sqlstring$argsarrayquote\Firebird::quote()Method to emulate PDO->quotestringintstring$strstring$param_type\PDO::PARAM_STRinterrorInfo\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_UtilFirebird_Util\Firebird_UtilFirebird-specific backup, import and creation methodsbackup_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_tablesFALSEboolget_system_tablesget_tablesqueryImplement Backup structure functionQueryFree Query Builder / Database Abstraction Layer\Abstract_DriverPgSQL\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 Layer\Abstract_SQLPgSQL_SQL\PgSQL_SQLPostgreSQL specifc SQLexplain\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\DB_UtilPgSQL_Util\PgSQL_UtilPosgres-specific backup, import and creation methodsbackup_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()arrayqueryget_tablesImplement Backup functionQueryFree Query Builder / Database Abstraction Layer\Abstract_DriverMySQL\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$tablestringQueryFree Query Builder / Database Abstraction Layer\Abstract_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\DB_UtilMySQL_Util\MySQL_UtilMySQL-specific backup, import and creation methodscreate_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()arrayget_dbsdriver_queryget_system_tablesget_tablesqueryquoteQueryFree 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 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$params''mixed