$statement
-$statement : \PDOStatement-
Reference to the last executed query
- - -diff --git a/docs/.htaccess b/docs/.htaccess
deleted file mode 100644
index 7b01f9b..0000000
--- a/docs/.htaccess
+++ /dev/null
@@ -1,5 +0,0 @@
-# Fixes a vulnerability in CentOS: http://stackoverflow.com/questions/20533279/prevent-php-from-parsing-non-php-files-such-as-somefile-php-txt
-
Name | +Description | ++ |
---|---|---|
+ Exception + | ++ No description available + | +EMPTY + | +
+ InvalidArgumentException + | ++ No description available + | +EMPTY + | +
+ LogicException + | ++ No description available + | +EMPTY + | +
+ PDO + | ++ No description available + | +EMPTY + | +
+ PDOStatement + | ++ No description available + | +EMPTY + | +
Name | +Description | ++ |
---|---|---|
+ Abstract_Driver + | +Base Database class | +EMPTY + | +
+ Abstract_Query_Builder + | +Abstract Class for internal implementation methods of the Query Builder | +EMPTY + | +
+ Abstract_SQL + | +parent for database manipulation subclasses | +EMPTY + | +
+ Abstract_Util + | +Abstract class defining database / table creation methods | +EMPTY + | +
+ BadDBDriverException + | +Generic exception for bad drivers | +EMPTY + | +
+ Connection_Manager + | +Connection manager class to manage connections for the Query method | +EMPTY + | +
+ Query_Builder + | +Convenience class for creating sql queries - also the class that instantiates the specific db driver | +EMPTY + | +
+ Query_Parser + | +Utility Class to parse sql clauses for properly escaping identifiers | +EMPTY + | +
Name | +Description | ++ |
---|---|---|
+ Driver + | +Firebird Database class | +EMPTY + | +
+ Result + | +Firebird result class to emulate PDOStatement Class - only implements data-fetching methods | +EMPTY + | +
+ SQL + | +Firebird Specific SQL | +EMPTY + | +
+ Util + | +Firebird-specific backup, import and creation methods | +EMPTY + | +
Name | +Description | ++ |
---|---|---|
+ Driver + | +MySQL specific class | +EMPTY + | +
+ SQL + | +MySQL specifc SQL | +EMPTY + | +
+ Util + | +MySQL-specific backup, import and creation methods | +EMPTY + | +
function __clone()
+
+ public function __toString()
+
+ public function getCode()
+
+ public function getFile()
+
+ public function getLine()
+
+ public function getMessage()
+
+ public function getPrevious()
+
+ public function getTrace()
+
+ public function getTraceAsString()
+
+ function __clone()
+
+ public function __toString()
+
+ public function getCode()
+
+ public function getFile()
+
+ public function getLine()
+
+ public function getMessage()
+
+ public function getPrevious()
+
+ public function getTrace()
+
+ public function getTraceAsString()
+
+ function __clone()
+
+ public function __toString()
+
+ public function getCode()
+
+ public function getFile()
+
+ public function getLine()
+
+ public function getMessage()
+
+ public function getPrevious()
+
+ public function getTrace()
+
+ public function getTraceAsString()
+
+ public function __construct(string
+ $dsn,
+ string
+ $username,
+ string
+ $password,
+
+ $driver_options )
+
+ $dsn
+ —
+ string$username
+ —
+ string$password
+ —
+ string$driver_options
+ —
+ Turns off autocommit mode. While autocommit mode is turned off, changes made to the database via the PDO object instance are not committed until you end the transaction by calling PDO::commit. Calling PDO::rollBack will roll back all changes to the database and return the connection to autocommit mode.
+public function beginTransaction()
+
+ public function commit()
+
+ public function errorCode()
+
+ public function errorInfo()
+
+ PDO::exec executes an SQL statement in a single function call, returning the number of rows affected by the statement.
+public function exec(string
+ $statement )
+
+ $statement
+ —
+ stringThis function returns the value of a database connection attribute. To retrieve PDOStatement attributes, refer to PDOStatement::getAttribute.
+public function getAttribute(int
+ $attribute )
+
+ $attribute
+ —
+ intpublic function getAvailableDrivers()
+
+ public function inTransaction()
+
+ Returns the ID of the last inserted row, or the last value from a sequence object, depending on the underlying driver. For example, PDO_PGSQL requires you to specify the name of a sequence object for the name parameter.
+public function lastInsertId(string
+ $name )
+
+ $name
+ —
+ stringPrepares an SQL statement to be executed by the PDOStatement::execute method. The SQL statement can contain zero or more named (:name) or question mark (?) parameter markers for which real values will be substituted when the statement is executed. You cannot use both named and question mark parameter markers within the same SQL statement; pick one or the other parameter style. Use these parameters to bind any user-input, do not include the user-input directly in the query.
+PDO::query executes an SQL statement in a single function call, returning the result set (if any) returned by the statement as a PDOStatement object.
+public function query(string
+ $statement )
+
+ $statement
+ —
+ stringPDO::quote places quotes around the input string (if required) and escapes special characters within the input string, using a quoting style appropriate to the underlying driver.
+public function quote(string
+ $string,
+ int
+ $parameter_type )
+
+ $string
+ —
+ string$parameter_type
+ —
+ intRolls back the current transaction, as initiated by PDO::beginTransaction. A PDOException will be thrown if no transaction is active.
+public function rollBack()
+
+ Sets an attribute on the database handle. Some of the available generic attributes are listed below; some drivers may make use of additional driver specific attributes. PDO::ATTR_CASE: Force column names to a specific case. PDO::CASE_LOWER: Force column names to lower case. PDO::CASE_NATURAL: Leave column names as returned by the database driver. PDO::CASE_UPPER: Force column names to upper case. PDO::ATTR_ERRMODE: Error reporting. PDO::ERRMODE_SILENT: Just set error codes. PDO::ERRMODE_WARNING: Raise E_WARNING. PDO::ERRMODE_EXCEPTION: Throw exceptions. PDO::ATTR_ORACLE_NULLS (available with all drivers, not just Oracle): Conversion of NULL and empty strings. PDO::NULL_NATURAL: No conversion. PDO::NULL_EMPTY_STRING: Empty string is converted to NULL. PDO::NULL_TO_STRING: NULL is converted to an empty string. PDO::ATTR_STRINGIFY_FETCHES: Convert numeric values to strings when fetching. Requires bool. PDO::ATTR_STATEMENT_CLASS: Set user-supplied statement class derived from PDOStatement. Cannot be used with persistent PDO instances. Requires array(string classname, array(mixed constructor_args)). PDO::ATTR_TIMEOUT: Specifies the timeout duration in seconds. Not all drivers support this option, and it's meaning may differ from driver to driver. For example, sqlite will wait for up to this time value before giving up on obtaining an writable lock, but other drivers may interpret this as a connect or a read timeout interval. Requires int. PDO::ATTR_AUTOCOMMIT (available in OCI, Firebird and MySQL): Whether to autocommit every single statement. PDO::ATTR_EMULATE_PREPARES Enables or disables emulation of prepared statements. Some drivers do not support native prepared statements or have limited support for them. Use this setting to force PDO to either always emulate prepared statements (if TRUE), or to try to use native prepared statements (if FALSE). It will always fall back to emulating the prepared statement if the driver cannot successfully prepare the current query. Requires bool. PDO::MYSQL_ATTR_USE_BUFFERED_QUERY (available in MySQL): Use buffered queries. PDO::ATTR_DEFAULT_FETCH_MODE: Set default fetch mode. Description of modes is available in PDOStatement::fetch documentation.
+PDOStatement::bindColumn arranges to have a particular variable bound to a given column in the result-set from a query. Each call to PDOStatement::fetch or PDOStatement::fetchAll will update all the variables that are bound to columns.
+public function bindColumn(
+ $column,
+
+ $param,
+ int
+ $type,
+ int
+ $maxlen,
+
+ $driverdata )
+
+ $column
+ —
+ $param
+ —
+ $type
+ —
+ int$maxlen
+ —
+ int$driverdata
+ —
+ Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement. Unlike PDOStatement::bindValue, the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute is called.
+public function bindParam(
+ $parameter,
+
+ $variable,
+ int
+ $data_type,
+ int
+ $length,
+
+ $driver_options )
+
+ $parameter
+ —
+ $variable
+ —
+ $data_type
+ —
+ int$length
+ —
+ int$driver_options
+ —
+ PDOStatement::closeCursor frees up the connection to the server so that other SQL statements may be issued, but leaves the statement in a state that enables it to be executed again.
+public function closeCursor()
+
+ Use PDOStatement::columnCount to return the number of columns in the result set represented by the PDOStatement object.
+public function columnCount()
+
+ Dumps the informations contained by a prepared statement directly on the output. It will provide the SQL query in use, the number of parameters used (Params), the list of parameters, with their name, type (paramtype) as an integer, their key name or position, the value, and the position in the query (if this is supported by the PDO driver, otherwise, it will be -1).
+public function debugDumpParams()
+
+ public function errorCode()
+
+ public function errorInfo()
+
+ Execute the prepared statement. If the prepared statement included parameter markers, you must either: call PDOStatement::bindParam to bind PHP variables to the parameter markers: bound variables pass their value as input and receive the output value, if any, of their associated parameter markers or pass an array of input-only parameter values
+public function fetch(int
+ $fetch_style,
+ int
+ $cursor_orientation,
+ int
+ $cursor_offset )
+
+ $fetch_style
+ —
+ int$cursor_orientation
+ —
+ int$cursor_offset
+ —
+ intpublic function fetchColumn(int
+ $column_number )
+
+ $column_number
+ —
+ intGets an attribute of the statement. Currently, no generic attributes exist but only driver specific: PDO::ATTR_CURSOR_NAME (Firebird and ODBC specific): Get the name of cursor for UPDATE ... WHERE CURRENT OF.
+public function getAttribute(int
+ $attribute )
+
+ $attribute
+ —
+ intpublic function getColumnMeta(int
+ $column )
+
+ $column
+ —
+ intpublic function nextRowset()
+
+ PDOStatement::rowCount returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding PDOStatement object.
+public function rowCount()
+
+ Sets an attribute on the statement. Currently, no generic attributes are set but only driver specific: PDO::ATTR_CURSOR_NAME (Firebird and ODBC specific): Set the name of cursor for UPDATE ... WHERE CURRENT OF.
+public function setFetchMode(int
+ $mode )
+
+ $mode
+ —
+ intBase Database class
-Extends PDO to simplify cross-database issues
- - -$sql : \Query\SQL_Interface-
Reference to sql class
- - -$util : \Query\Abstract_Util-
Reference to util class
- - -get_sql() : \Query\SQL_Interface-
Get the SQL class for the current driver
- - - - -get_util() : \Query\Abstract_Util-
Get the Util class for the current driver
- - - - -Abstract Class for internal implementation methods of the Query Builder
- - - -$db : \Query\Driver_Interface-
The current database driver
- - -$parser : \Query\Query_Parser-
Query parser class instance
- - -_mixed_set(array $var, mixed $key, mixed $val = NULL, integer $val_type = self::BOTH) : array-
Set values in the class, with either an array or key value pair
- - -array | -$var | -- |
mixed | -$key | -- |
mixed | -$val | -- |
integer | -$val_type | -- |
_like(string $field, mixed $val, string $pos, string $like = 'LIKE', string $conj = 'AND') : \Query\Query_Builder-
Simplify 'like' methods
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
string | -$like | -- |
string | -$conj | -- |
_having(mixed $key, mixed $val = array(), string $conj = 'AND') : \Query\Query_Builder-
Simplify building having clauses
- - -mixed | -$key | -- |
mixed | -$val | -- |
string | -$conj | -- |
_where_string(mixed $key, mixed $val = array(), string $defaultConj = 'AND') : \Query\Query_Builder-
Simplify generating where string
- - -mixed | -$key | -- |
mixed | -$val | -- |
string | -$defaultConj | -- |
_where_in(mixed $key, mixed $val = array(), string $in = 'IN', string $conj = 'AND') : \Query\Query_Builder-
Simplify where_in methods
- - -mixed | -$key | -- |
mixed | -$val | -- |
string | -$in | -
|
-
string | -$conj | -
|
-
parent for database manipulation subclasses
- - - -Abstract class defining database / table creation methods
- - - -__construct(\Query\Driver_Interface $conn)
- Save a reference to the connection object for later use
- - -\Query\Driver_Interface | -$conn | -- |
get_driver() : \Query\Driver_Interface-
Get the driver object for the current connection
- - - - -create_table(string $name, array $fields, array $constraints = array(), boolean $if_not_exists = TRUE) : string-
Convenience public function to generate sql for creating a db table
- - -string | -$name | -- |
array | -$fields | -- |
array | -$constraints | -- |
boolean | -$if_not_exists | -- |
Generic exception for bad drivers
- - - -Connection manager class to manage connections for the -Query method
- - - -$instance : \Query\Connection_Manager-
Class instance variable
- - -get_instance() : \Query\Connection_Manager-
Return a connection manager instance
- - - - -get_connection(string|array|object $name = '') : \Query\Query_Builder
- Returns the connection specified by the name given
- - -string|array|object | -$name | -- |
connect(\stdClass $params) : \Query\Query_Builder
- Parse the passed parameters and return a connection
- - -\stdClass | -$params | -- |
PDO Interface to implement for database drivers
- - -__construct(string $dsn, string $username = NULL, string $password = NULL, array $driver_options = array())-
Constructor/Connection method
- - -string | -$dsn | -- |
string | -$username | -- |
string | -$password | -- |
array | -$driver_options | -- |
get_sql() : \Query\SQL_Interface-
Get the SQL class for the current driver
- - - - -get_util() : \Query\Abstract_Util-
Get the Util class for the current driver
- - - - -Firebird Database class
-PDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.
- - -$sql : \Query\SQL_Interface-
Reference to sql class
- - -$util : \Query\Abstract_Util-
Reference to util class
- - -__construct(string $dbpath, string $user = 'SYSDBA', string $pass = 'masterkey', array $options = array())-
Open the link to the database
- - -string | -$dbpath | -- |
string | -$user | -- |
string | -$pass | -- |
array | -$options | -- |
get_sql() : \Query\SQL_Interface-
Get the SQL class for the current driver
- - - - -get_util() : \Query\Abstract_Util-
Get the Util class for the current driver
- - - - -prepare_execute(string $sql, array $args) : \Query\Drivers\Firebird\Result-
Prepare and execute a query
- - -string | -$sql | -- |
array | -$args | -- |
query(string $sql = '') : \Query\Drivers\Firebird\Result
- Wrapper public function to better match PDO
- - -string | -$sql | -- |
prepare(string $query, array $options = array()) : \Query\Drivers\Firebird\Result-
Emulate PDO prepare
- - -string | -$query | -- |
array | -$options | -- |
Firebird result class to emulate PDOStatement Class - only implements -data-fetching methods
- - - -$db : \Query\Drivers\Firebird\Driver-
Reference to the db drive to de-duplicate error functions
- - -__construct(resource $link, \Query\Drivers\Firebird\Driver|null $db = NULL)-
Create the object by passing the resource for -the query
- - -resource | -$link | -- |
\Query\Drivers\Firebird\Driver|null | -$db | -- |
bindColumn(mixed $column, mixed $param, integer $type = NULL, mixed $maxlen = NULL, array $driverdata = NULL) : NULL-
Invalidate method for data consistency
- - -mixed | -$column | -- |
mixed | -$param | -- |
integer | -$type | -- |
mixed | -$maxlen | -- |
array | -$driverdata | -- |
bindParam(mixed $parameter, mixed $variable, integer $data_type = NULL, mixed $maxlen = NULL, array $driverdata = NULL) : NULL-
Invalidate method for data consistency
- - -mixed | -$parameter | -- |
mixed | -$variable | -- |
integer | -$data_type | -- |
mixed | -$maxlen | -- |
array | -$driverdata | -- |
execute(array $args = NULL) : \Query\Drivers\Firebird\Result
- Run a prepared statement query
- - -array | -$args | -- |
fetch(integer $fetch_style = \PDO::FETCH_ASSOC, mixed $cursor_orientation = \PDO::FETCH_ORI_NEXT, mixed $cursor_offset = NULL) : mixed-
Emulate PDO fetch public function
- - -integer | -$fetch_style | -- |
mixed | -$cursor_orientation | -- |
mixed | -$cursor_offset | -- |
fetchAll(integer $fetch_style = \PDO::FETCH_ASSOC, mixed $statement = NULL, mixed $ctor_args = NULL) : mixed-
Emulate PDO fetchAll public function
- - -integer | -$fetch_style | -- |
mixed | -$statement | -- |
mixed | -$ctor_args | -- |
fetchObject(string $class_name = 'stdClass', array $ctor_args = array()) : \Query\Drivers\Firebird\stdClass-
Emulate PDOStatement::fetchObject, but only for the default use
- - -string | -$class_name | -- |
array | -$ctor_args | -- |
Firebird Specific SQL
- - - -Firebird-specific backup, import and creation methods
- - - -__construct(\Query\Driver_Interface $conn)
- Save a reference to the connection object for later use
- - -\Query\Driver_Interface | -$conn | -- |
get_driver() : \Query\Driver_Interface-
Get the driver object for the current connection
- - - - -create_table(string $name, array $fields, array $constraints = array(), boolean $if_not_exists = FALSE) : string-
Convenience public function to generate sql for creating a db table
- - -string | -$name | -- |
array | -$fields | -- |
array | -$constraints | -- |
boolean | -$if_not_exists | -- |
delete_table(string $name) : string
- Drop the selected table
- - -string | -$name | -- |
None found |
backup_structure() : string-
Create an SQL backup file for the current database's structure
- - - - -None found |
backup_data(array $exclude = array(), boolean $system_tables = FALSE) : string-
Create an SQL backup file for the current database's data
- - -array | -$exclude | -- |
boolean | -$system_tables | -- |
None found |
quote_ident(string $sql) : string
- - - -
string | -$sql | -- |
None found |
quote_table(string $sql) : string
- - - -
string | -$sql | -- |
None found |
MySQL specific class
-Extends PDO to simplify cross-database issues
- - -None found |
$statement : \PDOStatement-
Reference to the last executed query
- - -None found |
$escape_char : string-
Set the backtick as the MySQL escape character
- - -None found |
$sql : \Query\SQL_Interface-
Reference to sql class
- - -None found |
$util : \Query\Abstract_Util-
Reference to util class
- - -None found |
None found |
$table_prefix : string-
Prefix to apply to table names
- - -None found |
$has_truncate : boolean-
Whether the driver supports 'TRUNCATE'
- - -None found |
__construct(string $dsn, string $username = null, string $password = null, array $options = array())-
Connect to MySQL Database
- - -string | -$dsn | -- |
string | -$username | -- |
string | -$password | -- |
array | -$options | -- |
- codeCoverageIgnore - | -- - | -
---|
__call(string $name, array $args = array()) : mixed-
Allow invoke to work on table object
- - -string | -$name | -- |
array | -$args | -- |
- codeCoverageIgnore - | -- - | -
---|
get_last_query() : string-
Get the last sql query exexcuted
- - - - -None found |
set_last_query(string $query_string) : void
- Set the last query sql
- - -string | -$query_string | -- |
None found |
get_sql() : \Query\SQL_Interface-
Get the SQL class for the current driver
- - - - -None found |
get_util() : \Query\Abstract_Util-
Get the Util class for the current driver
- - - - -None found |
set_table_prefix(string $prefix) : void
- Set the common table name prefix
- - -string | -$prefix | -- |
None found |
prepare_query(string $sql, array $data) : \PDOStatement-
Simplifies prepared statements for database queries
- - -string | -$sql | -- |
array | -$data | -- |
| FALSE
- -None found |
prepare_execute(string $sql, array $params) : \PDOStatement-
Create and execute a prepared statement with the provided parameters
- - -string | -$sql | -- |
array | -$params | -- |
None found |
affected_rows() : integer-
Returns number of rows affected by an INSERT, UPDATE, DELETE type query
- - - - -None found |
prefix_table(string $table) : string
- Prefixes a table if it is not already prefixed
- - -string | -$table | -- |
None found |
quote_table(string $table) : string
- Quote database table name, and set prefix
- - -string | -$table | -- |
None found |
quote_ident(mixed $ident) : string
- Surrounds the string with the databases identifier escape characters
- - -mixed | -$ident | -- |
None found |
get_schemas() : array-
Return schemas for databases that list them
- - - - -None found |
get_tables() : array-
Return list of tables for the current database
- - - - -None found |
get_dbs() : array-
Return list of dbs for the current connection, if possible
- - - - -None found |
get_views() : array-
Return list of views for the current database
- - - - -None found |
get_sequences() : array-
Return list of sequences for the current database, if they exist
- - - - -None found |
get_functions() : array-
Return list of functions for the current database
- - - - -None found |
get_procedures() : array-
Return list of stored procedures for the current database
- - - - -None found |
get_triggers() : array-
Return list of triggers for the current database
- - - - -None found |
get_system_tables() : array-
Retrieves an array of non-user-created tables for -the connection/database
- - - - -None found |
get_columns(string $table) : array
- Retrieve column information for the current database table
- - -string | -$table | -- |
None found |
get_fks(string $table) : array
- Retrieve foreign keys for the table
- - -string | -$table | -- |
None found |
get_indexes(string $table) : array
- Retrieve indexes for the table
- - -string | -$table | -- |
None found |
get_types() : array-
Retrieve list of data types for the database
- - - - -None found |
driver_query(string|array|null $query, boolean $filtered_index = TRUE) : array-
Method to simplify retrieving db results for meta-data queries
- - -string|array|null | -$query | -- |
boolean | -$filtered_index | -- |
None found |
num_rows() : integer-
Return the number of rows returned for a SELECT query
- - - - -None found |
insert_batch(string $table, array $data = array()) : null|\Query\array<string|array|\Query\null>-
Create sql for batch insert
- - -string | -$table | -- |
array | -$data | -- |
None found |
_quote(mixed $str) : mixed
- Helper method for quote_ident
- - -mixed | -$str | -- |
None found |
truncate(string $table) : \PDOStatement
- Empty the passed table
- - -string | -$table | -- |
None found |
_load_sub_classes() : void-
Loads the subclasses for the driver
- - - - - -None found |
_prefix(string $str) : string
- Sets the table prefix on the passed string
- - -string | -$str | -- |
None found |
MySQL specifc SQL
- - - -None found |
limit(string $sql, integer $limit, integer $offset = FALSE) : string-
Limit clause
- - -string | -$sql | -- |
integer | -$limit | -- |
integer | -$offset | -- |
None found |
explain(string $sql) : string
- Get the query plan for the sql query
- - -string | -$sql | -- |
None found |
None found |
db_list() : string-
Returns sql to list other databases
- - - - -None found |
table_list(string $database = '') : string
- Returns sql to list tables
- - -string | -$database | -- |
None found |
system_table_list() : string-
Overridden in MySQL class
- - - - -None found |
view_list() : string-
Returns sql to list views
- - - - -None found |
trigger_list() : string-
Returns sql to list triggers
- - - - -None found |
function_list() : string-
Return sql to list functions
- - - - -None found |
procedure_list() : string-
Return sql to list stored procedures
- - - - -None found |
sequence_list() : NULL-
Return sql to list sequences
- - - - -None found |
type_list() : string-
SQL to show list of field types
- - - - -None found |
column_list(string $table) : string
- SQL to show infromation about columns in a table
- - -string | -$table | -- |
None found |
MySQL-specific backup, import and creation methods
- - - -None found |
None found |
__construct(\Query\Driver_Interface $conn)
- Save a reference to the connection object for later use
- - -\Query\Driver_Interface | -$conn | -- |
None found |
get_driver() : \Query\Driver_Interface-
Get the driver object for the current connection
- - - - -None found |
create_table(string $name, array $fields, array $constraints = array(), boolean $if_not_exists = TRUE) : string-
Convenience public function to generate sql for creating a db table
- - -string | -$name | -- |
array | -$fields | -- |
array | -$constraints | -- |
boolean | -$if_not_exists | -- |
None found |
delete_table(string $name) : string
- Drop the selected table
- - -string | -$name | -- |
None found |
backup_structure() : string-
Create an SQL backup file for the current database's structure
- - - - -None found |
backup_data(array $exclude = array()) : string
- Create an SQL backup file for the current database's data
- - -array | -$exclude | -- |
None found |
quote_ident(string $sql) : string
- - - -
string | -$sql | -- |
None found |
quote_table(string $sql) : string
- - - -
string | -$sql | -- |
None found |
Firebird specific class
-Extends PDO to simplify cross-database issues
- - -None found |
$statement : \PDOStatement-
Reference to the last executed query
- - -None found |
$escape_char : string-
Character to escape identifiers
- - -None found |
$sql : \Query\SQL_Interface-
Reference to sql class
- - -None found |
$util : \Query\Abstract_Util-
Reference to util class
- - -None found |
None found |
$table_prefix : string-
Prefix to apply to table names
- - -None found |
$has_truncate : boolean-
Firebird doesn't have the truncate keyword
- - -None found |
__construct(string $dsn, string $username = "SYSDBA", string $password = "masterkey", array $options = array())-
Connect to Firebird Database
- - -string | -$dsn | -- |
string | -$username | -- |
string | -$password | -- |
array | -$options | -- |
None found |
__call(string $name, array $args = array()) : mixed-
Allow invoke to work on table object
- - -string | -$name | -- |
array | -$args | -- |
- codeCoverageIgnore - | -- - | -
---|
get_last_query() : string-
Get the last sql query exexcuted
- - - - -None found |
set_last_query(string $query_string) : void
- Set the last query sql
- - -string | -$query_string | -- |
None found |
get_sql() : \Query\SQL_Interface-
Get the SQL class for the current driver
- - - - -None found |
get_util() : \Query\Abstract_Util-
Get the Util class for the current driver
- - - - -None found |
set_table_prefix(string $prefix) : void
- Set the common table name prefix
- - -string | -$prefix | -- |
None found |
prepare_query(string $sql, array $data) : \PDOStatement-
Simplifies prepared statements for database queries
- - -string | -$sql | -- |
array | -$data | -- |
| FALSE
- -None found |
prepare_execute(string $sql, array $params) : \PDOStatement-
Create and execute a prepared statement with the provided parameters
- - -string | -$sql | -- |
array | -$params | -- |
None found |
affected_rows() : integer-
Returns number of rows affected by an INSERT, UPDATE, DELETE type query
- - - - -None found |
prefix_table(string $table) : string
- Prefixes a table if it is not already prefixed
- - -string | -$table | -- |
None found |
quote_table(string $table) : string
- Quote database table name, and set prefix
- - -string | -$table | -- |
None found |
quote_ident(mixed $ident) : string
- Surrounds the string with the databases identifier escape characters
- - -mixed | -$ident | -- |
None found |
get_schemas() : array-
Return schemas for databases that list them
- - - - -None found |
get_tables() : array-
Return list of tables for the current database
- - - - -None found |
get_dbs() : array-
Return list of dbs for the current connection, if possible
- - - - -None found |
get_views() : array-
Return list of views for the current database
- - - - -None found |
get_sequences() : array-
Return list of sequences for the current database, if they exist
- - - - -None found |
get_functions() : array-
Return list of functions for the current database
- - - - -None found |
get_procedures() : array-
Return list of stored procedures for the current database
- - - - -None found |
get_triggers() : array-
Return list of triggers for the current database
- - - - -None found |
get_system_tables() : array-
Retrieves an array of non-user-created tables for -the connection/database
- - - - -None found |
get_columns(string $table) : array
- Retrieve column information for the current database table
- - -string | -$table | -- |
None found |
get_fks(string $table) : array
- Retrieve foreign keys for the table
- - -string | -$table | -- |
None found |
get_indexes(string $table) : array
- Retrieve indexes for the table
- - -string | -$table | -- |
None found |
get_types() : array-
Retrieve list of data types for the database
- - - - -None found |
driver_query(string|array|null $query, boolean $filtered_index = TRUE) : array-
Method to simplify retrieving db results for meta-data queries
- - -string|array|null | -$query | -- |
boolean | -$filtered_index | -- |
None found |
num_rows() : integer-
Return the number of rows returned for a SELECT query
- - - - -None found |
insert_batch(string $table, array $data = array()) : array-
Create sql for batch insert
- - -string | -$table | -- |
array | -$data | -- |
None found |
_quote(mixed $str) : mixed
- Helper method for quote_ident
- - -mixed | -$str | -- |
None found |
truncate(string $table) : \PDOStatement
- Empty the passed table
- - -string | -$table | -- |
None found |
_load_sub_classes() : void-
Loads the subclasses for the driver
- - - - - -None found |
_prefix(string $str) : string
- Sets the table prefix on the passed string
- - -string | -$str | -- |
None found |
Firebird Specific SQL
- - - -None found |
limit(string $sql, integer $limit, integer|boolean $offset = FALSE) : string-
Limit clause
- - -string | -$sql | -- |
integer | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
explain(string $sql) : string
- Get the query plan for the sql query
- - -string | -$sql | -- |
None found |
None found |
db_list() : NULL-
Returns sql to list other databases
- - - - -None found |
table_list() : string-
Returns sql to list tables
- - - - -None found |
system_table_list() : string-
Returns sql to list system tables
- - - - -None found |
view_list() : string-
Returns sql to list views
- - - - -None found |
trigger_list() : string-
Returns sql to list triggers
- - - - -None found |
function_list() : string-
Return sql to list functions
- - - - -None found |
procedure_list() : string-
Return sql to list stored procedures
- - - - -None found |
sequence_list() : string-
Return sql to list sequences
- - - - -None found |
column_list(string $table) : string
- Return sql to list columns of the specified table
- - -string | -$table | -- |
None found |
type_list() : string-
SQL to show list of field types
- - - - -None found |
fk_list(string $table) : string
- Get the list of foreign keys for the current -table
- - -string | -$table | -- |
None found |
index_list(string $table) : array
- Get the list of indexes for the current table
- - -string | -$table | -- |
None found |
Firebird-specific backup, import and creation methods
- - - -None found |
None found |
create_table(string $name, array $fields, array $constraints = array(), boolean $if_not_exists = TRUE) : string-
Convenience public function to generate sql for creating a db table
- - -string | -$name | -- |
array | -$fields | -- |
array | -$constraints | -- |
boolean | -$if_not_exists | -- |
None found |
delete_table(string $name) : string
- Drop the selected table
- - -string | -$name | -- |
None found |
backup_structure() : string-
Create an SQL backup file for the current database's structure
- - - - -None found |
backup_data() : string-
Return an SQL file with the database data as insert statements
- - - - -None found |
__construct(\Query\Driver_Interface $conn)
- Save a reference to the connection object for later use
- - -\Query\Driver_Interface | -$conn | -- |
None found |
get_driver() : \Query\Driver_Interface-
Get the driver object for the current connection
- - - - -None found |
quote_ident(string $sql) : string
- - - -
string | -$sql | -- |
None found |
quote_table(string $sql) : string
- - - -
string | -$sql | -- |
None found |
PostgreSQL specifc class
-Extends PDO to simplify cross-database issues
- - -None found |
$statement : \PDOStatement-
Reference to the last executed query
- - -None found |
$escape_char : string-
Character to escape identifiers
- - -None found |
$sql : \Query\SQL_Interface-
Reference to sql class
- - -None found |
$util : \Query\Abstract_Util-
Reference to util class
- - -None found |
None found |
$table_prefix : string-
Prefix to apply to table names
- - -None found |
$has_truncate : boolean-
Whether the driver supports 'TRUNCATE'
- - -None found |
__construct(string $dsn, string $username = null, string $password = null, array $options = array())-
Connect to a PosgreSQL database
- - -string | -$dsn | -- |
string | -$username | -- |
string | -$password | -- |
array | -$options | -- |
- codeCoverageIgnore - | -- - | -
---|
__call(string $name, array $args = array()) : mixed-
Allow invoke to work on table object
- - -string | -$name | -- |
array | -$args | -- |
- codeCoverageIgnore - | -- - | -
---|
get_last_query() : string-
Get the last sql query exexcuted
- - - - -None found |
set_last_query(string $query_string) : void
- Set the last query sql
- - -string | -$query_string | -- |
None found |
get_sql() : \Query\SQL_Interface-
Get the SQL class for the current driver
- - - - -None found |
get_util() : \Query\Abstract_Util-
Get the Util class for the current driver
- - - - -None found |
set_table_prefix(string $prefix) : void
- Set the common table name prefix
- - -string | -$prefix | -- |
None found |
prepare_query(string $sql, array $data) : \PDOStatement-
Simplifies prepared statements for database queries
- - -string | -$sql | -- |
array | -$data | -- |
| FALSE
- -None found |
prepare_execute(string $sql, array $params) : \PDOStatement-
Create and execute a prepared statement with the provided parameters
- - -string | -$sql | -- |
array | -$params | -- |
None found |
affected_rows() : integer-
Returns number of rows affected by an INSERT, UPDATE, DELETE type query
- - - - -None found |
prefix_table(string $table) : string
- Prefixes a table if it is not already prefixed
- - -string | -$table | -- |
None found |
quote_table(string $table) : string
- Quote database table name, and set prefix
- - -string | -$table | -- |
None found |
quote_ident(mixed $ident) : string
- Surrounds the string with the databases identifier escape characters
- - -mixed | -$ident | -- |
None found |
get_schemas() : array-
Get a list of schemas for the current connection
- - - - -None found |
get_tables() : array-
Return list of tables for the current database
- - - - -None found |
get_dbs() : array-
Return list of dbs for the current connection, if possible
- - - - -None found |
get_views() : array-
Return list of views for the current database
- - - - -None found |
get_sequences() : array-
Return list of sequences for the current database, if they exist
- - - - -None found |
get_functions() : array-
Return list of functions for the current database
- - - - -None found |
get_procedures() : array-
Return list of stored procedures for the current database
- - - - -None found |
get_triggers() : array-
Return list of triggers for the current database
- - - - -None found |
get_system_tables() : array-
Retrieves an array of non-user-created tables for -the connection/database
- - - - -None found |
get_columns(string $table) : array
- Retrieve column information for the current database table
- - -string | -$table | -- |
None found |
get_fks(string $table) : array
- Retrieve foreign keys for the table
- - -string | -$table | -- |
None found |
get_indexes(string $table) : array
- Retrieve indexes for the table
- - -string | -$table | -- |
None found |
get_types() : array-
Retrieve list of data types for the database
- - - - -None found |
driver_query(string|array|null $query, boolean $filtered_index = TRUE) : array-
Method to simplify retrieving db results for meta-data queries
- - -string|array|null | -$query | -- |
boolean | -$filtered_index | -- |
None found |
num_rows() : integer-
Return the number of rows returned for a SELECT query
- - - - -None found |
insert_batch(string $table, array $data = array()) : null|\Query\array<string|array|\Query\null>-
Create sql for batch insert
- - -string | -$table | -- |
array | -$data | -- |
None found |
_quote(mixed $str) : mixed
- Helper method for quote_ident
- - -mixed | -$str | -- |
None found |
truncate(string $table) : \PDOStatement
- Empty the passed table
- - -string | -$table | -- |
None found |
_load_sub_classes() : void-
Loads the subclasses for the driver
- - - - - -None found |
_prefix(string $str) : string
- Sets the table prefix on the passed string
- - -string | -$str | -- |
None found |
PostgreSQL specifc SQL
- - - -None found |
limit(string $sql, integer $limit, integer|boolean $offset = FALSE) : string-
Limit clause
- - -string | -$sql | -- |
integer | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
explain(string $sql) : string
- Get the query plan for the sql query
- - -string | -$sql | -- |
None found |
None found |
db_list() : string-
Returns sql to list other databases
- - - - -None found |
table_list() : string-
Returns sql to list tables
- - - - -None found |
system_table_list() : string-
Returns sql to list system tables
- - - - -None found |
view_list() : string-
Returns sql to list views
- - - - -None found |
trigger_list() : string-
Returns sql to list triggers
- - - - -None found |
function_list() : NULL-
Return sql to list functions
- - - - -None found |
procedure_list() : string-
Return sql to list stored procedures
- - - - -None found |
sequence_list() : string-
Return sql to list sequences
- - - - -None found |
column_list(string $table) : string
- Return sql to list columns of the specified table
- - -string | -$table | -- |
None found |
type_list() : string-
SQL to show list of field types
- - - - -None found |
Posgres-specific backup, import and creation methods
- - - -None found |
None found |
__construct(\Query\Driver_Interface $conn)
- Save a reference to the connection object for later use
- - -\Query\Driver_Interface | -$conn | -- |
None found |
get_driver() : \Query\Driver_Interface-
Get the driver object for the current connection
- - - - -None found |
create_table(string $name, array $fields, array $constraints = array(), boolean $if_not_exists = TRUE) : string-
Convenience public function to generate sql for creating a db table
- - -string | -$name | -- |
array | -$fields | -- |
array | -$constraints | -- |
boolean | -$if_not_exists | -- |
None found |
delete_table(string $name) : string
- Drop the selected table
- - -string | -$name | -- |
None found |
backup_structure() : string-
Create an SQL backup file for the current database's structure
- - - - -None found |
backup_data(array $exclude = array()) : string
- Create an SQL backup file for the current database's data
- - -array | -$exclude | -- |
None found |
quote_ident(string $sql) : string
- - - -
string | -$sql | -- |
None found |
quote_table(string $sql) : string
- - - -
string | -$sql | -- |
None found |
SQLite specific class
-Extends PDO to simplify cross-database issues
- - -None found |
$statement : \Query\Drivers\Sqlite\PDOStatement-
Reference to the last executed sql query
- - -None found |
$escape_char : string-
Character to escape identifiers
- - -None found |
$sql : \Query\SQL_Interface-
Reference to sql class
- - -None found |
$util : \Query\Abstract_Util-
Reference to util class
- - -None found |
None found |
$table_prefix : string-
Prefix to apply to table names
- - -None found |
$has_truncate : boolean-
SQLite has a truncate optimization, -but no support for the actual keyword
- - -None found |
__construct(string $dsn, string $user = NULL, string $pass = NULL, array $driver_options = array())-
Open SQLite Database
- - -string | -$dsn | -- |
string | -$user | -- |
string | -$pass | -- |
array | -$driver_options | -- |
None found |
__call(string $name, array $args = array()) : mixed-
Allow invoke to work on table object
- - -string | -$name | -- |
array | -$args | -- |
- codeCoverageIgnore - | -- - | -
---|
get_last_query() : string-
Get the last sql query exexcuted
- - - - -None found |
set_last_query(string $query_string) : void
- Set the last query sql
- - -string | -$query_string | -- |
None found |
get_sql() : \Query\SQL_Interface-
Get the SQL class for the current driver
- - - - -None found |
get_util() : \Query\Abstract_Util-
Get the Util class for the current driver
- - - - -None found |
set_table_prefix(string $prefix) : void
- Set the common table name prefix
- - -string | -$prefix | -- |
None found |
prepare_query(string $sql, array $data) : \PDOStatement-
Simplifies prepared statements for database queries
- - -string | -$sql | -- |
array | -$data | -- |
| FALSE
- -None found |
prepare_execute(string $sql, array $params) : \PDOStatement-
Create and execute a prepared statement with the provided parameters
- - -string | -$sql | -- |
array | -$params | -- |
None found |
affected_rows() : integer-
Returns number of rows affected by an INSERT, UPDATE, DELETE type query
- - - - -None found |
prefix_table(string $table) : string
- Prefixes a table if it is not already prefixed
- - -string | -$table | -- |
None found |
quote_table(string $table) : string
- Quote database table name, and set prefix
- - -string | -$table | -- |
None found |
quote_ident(mixed $ident) : string
- Surrounds the string with the databases identifier escape characters
- - -mixed | -$ident | -- |
None found |
get_schemas() : array-
Return schemas for databases that list them
- - - - -None found |
get_tables() : mixed-
List tables for the current database
- - - - -None found |
get_dbs() : array-
Return list of dbs for the current connection, if possible
- - - - -None found |
get_views() : array-
Return list of views for the current database
- - - - -None found |
get_sequences() : array-
Return list of sequences for the current database, if they exist
- - - - -None found |
get_functions() : array-
Return list of functions for the current database
- - - - -None found |
get_procedures() : array-
Return list of stored procedures for the current database
- - - - -None found |
get_triggers() : array-
Return list of triggers for the current database
- - - - -None found |
get_system_tables() : array-
Retrieves an array of non-user-created tables for -the connection/database
- - - - -None found |
get_columns(string $table) : array
- Retrieve column information for the current database table
- - -string | -$table | -- |
None found |
get_fks(string $table) : array
- Retrieve foreign keys for the table
- - -string | -$table | -- |
None found |
get_indexes(string $table) : array
- Retrieve indexes for the table
- - -string | -$table | -- |
None found |
get_types() : array-
Retrieve list of data types for the database
- - - - -None found |
driver_query(string|array|null $query, boolean $filtered_index = TRUE) : array-
Method to simplify retrieving db results for meta-data queries
- - -string|array|null | -$query | -- |
boolean | -$filtered_index | -- |
None found |
num_rows() : integer-
Return the number of rows returned for a SELECT query
- - - - -None found |
insert_batch(string $table, array $data = array()) : string-
Create sql for batch insert
- - -string | -$table | -- |
array | -$data | -- |
- codeCoverageIgnore - | -- - | -
---|
_quote(mixed $str) : mixed
- Helper method for quote_ident
- - -mixed | -$str | -- |
None found |
truncate(string $table) : \PDOStatement
- Empty the passed table
- - -string | -$table | -- |
None found |
_load_sub_classes() : void-
Loads the subclasses for the driver
- - - - - -None found |
_prefix(string $str) : string
- Sets the table prefix on the passed string
- - -string | -$str | -- |
None found |
SQLite Specific SQL
- - - -None found |
limit(string $sql, integer $limit, integer|boolean $offset = FALSE) : string-
Limit clause
- - -string | -$sql | -- |
integer | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
explain(string $sql) : string
- Get the query plan for the sql query
- - -string | -$sql | -- |
None found |
None found |
db_list() : string-
Returns sql to list other databases
- - - - -None found |
table_list() : string-
Returns sql to list tables
- - - - -None found |
system_table_list() : array<mixed,string>-
List the system tables
- - - - -None found |
view_list() : string-
Returns sql to list views
- - - - -None found |
trigger_list() : string-
Returns sql to list triggers
- - - - -None found |
function_list() : NULL-
Return sql to list functions
- - - - -None found |
procedure_list() : NULL-
Return sql to list stored procedures
- - - - -None found |
sequence_list() : NULL-
Return sql to list sequences
- - - - -None found |
type_list() : array<mixed,string>-
SQL to show list of field types
- - - - -None found |
column_list(string $table) : string
- SQL to show infromation about columns in a table
- - -string | -$table | -- |
None found |
SQLite-specific backup, import and creation methods
- - - -None found |
None found |
__construct(\Query\Driver_Interface $conn)
- Save a reference to the connection object for later use
- - -\Query\Driver_Interface | -$conn | -- |
None found |
get_driver() : \Query\Driver_Interface-
Get the driver object for the current connection
- - - - -None found |
create_table(string $name, array $fields, array $constraints = array(), boolean $if_not_exists = TRUE) : string-
Convenience public function to generate sql for creating a db table
- - -string | -$name | -- |
array | -$fields | -- |
array | -$constraints | -- |
boolean | -$if_not_exists | -- |
None found |
delete_table(string $name) : string
- Drop the selected table
- - -string | -$name | -- |
None found |
backup_structure() : string-
Create an SQL backup file for the current database's structure
- - - - -None found |
backup_data(array $excluded = array()) : string
- Create an SQL backup file for the current database's data
- - -array | -$excluded | -- |
None found |
query(string $sql) : mixed
- - - -
string | -$sql | -- |
None found |
quote(string $str) : string
- - - -
string | -$str | -- |
None found |
quote_ident(string $sql) : string
- - - -
string | -$sql | -- |
None found |
quote_table(string $sql) : string
- - - -
string | -$sql | -- |
None found |
Convenience class for creating sql queries - also the class that -instantiates the specific db driver
- - - -None found |
None found |
None found |
None found |
$conn_name : string-
Convenience property for connection management
- - -None found |
None found |
$db : \Query\Driver_Interface-
The current database driver
- - -None found |
$util : \Query\Abstract_Util-
Alias to driver util class
- - -None found |
$sql : \Query\SQL_Interface-
Alias to driver sql class
- - -None found |
None found |
None found |
$set_string : string-
Compiled arguments for insert / update
- - -None found |
None found |
None found |
$set_array_keys : array-
Keys for insert/update statement
- - -None found |
$order_array : array-
Key/val pairs for order by clause
- - -None found |
$group_array : array-
Key/val pairs for group by clause
- - -None found |
None found |
$where_values : array-
Values to apply to where clauses in prepared statements
- - -None found |
None found |
$offset : boolean|integer-
Value for offset in limit string
- - -None found |
$query_map : array-
Query component order mapping -for complex select queries
-Format: -array( -'type' => 'where', -'conjunction' => ' AND ', -'string' => 'k=?' -)
- -None found |
None found |
$explain : boolean-
Whether to do only an explain on the query
- - -None found |
$parser : \Query\Query_Parser-
Query parser class instance
- - -None found |
None found |
None found |
__construct(\Query\Driver_Interface $db, \Query\Query_Parser $parser)-
Constructor
- - -\Query\Driver_Interface | -$db | -- |
\Query\Query_Parser | -$parser | -- |
None found |
- codeCoverageIgnore - | -- - | -
---|
__call(string $name, array $params) : mixed-
Calls a function further down the inheritence chain
- - -string | -$name | -- |
array | -$params | -- |
None found |
select(string $fields) : \Query\Query_Builder
- Specifies rows to select in a query
- - -string | -$fields | -- |
None found |
select_max(string $field, string|FALSE $as = FALSE) : \Query\Query_Builder-
Selects the maximum value of a field from a query
- - -string | -$field | -- |
string|FALSE | -$as | -- |
None found |
select_min(string $field, string|boolean $as = FALSE) : \Query\Query_Builder-
Selects the minimum value of a field from a query
- - -string | -$field | -- |
string|boolean | -$as | -- |
None found |
select_avg(string $field, string|boolean $as = FALSE) : \Query\Query_Builder-
Selects the average value of a field from a query
- - -string | -$field | -- |
string|boolean | -$as | -- |
None found |
select_sum(string $field, string|boolean $as = FALSE) : \Query\Query_Builder-
Selects the sum of a field from a query
- - -string | -$field | -- |
string|boolean | -$as | -- |
None found |
distinct() : \Query\Query_Builder-
Adds the 'distinct' keyword to a query
- - - - -None found |
explain() : \Query\Query_Builder-
Tell the database to give you the query plan instead of result set
- - - - -None found |
from(string $tblname) : \Query\Query_Builder
- Specify the database table to select from
- - -string | -$tblname | -- |
None found |
like(string $field, mixed $val, string $pos = 'both') : \Query\Query_Builder-
Creates a Like clause in the sql statement
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
None found |
or_like(string $field, mixed $val, string $pos = 'both') : \Query\Query_Builder-
Generates an OR Like clause
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
None found |
not_like(string $field, mixed $val, string $pos = 'both') : \Query\Query_Builder-
Generates a NOT LIKE clause
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
None found |
or_not_like(string $field, mixed $val, string $pos = 'both') : \Query\Query_Builder-
Generates a OR NOT LIKE clause
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
None found |
having(mixed $key, mixed $val = array()) : \Query\Query_Builder-
Generates a 'Having' clause
- - -mixed | -$key | -- |
mixed | -$val | -- |
None found |
or_having(mixed $key, mixed $val = array()) : \Query\Query_Builder-
Generates a 'Having' clause prefixed with 'OR'
- - -mixed | -$key | -- |
mixed | -$val | -- |
None found |
where(mixed $key, mixed $val = array(), mixed $escape = NULL) : \Query\Query_Builder-
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 | -$key | -- |
mixed | -$val | -- |
mixed | -$escape | -- |
None found |
or_where(string $key, mixed $val = array()) : \Query\Query_Builder-
Where clause prefixed with "OR"
- - -string | -$key | -- |
mixed | -$val | -- |
None found |
where_in(mixed $field, mixed $val = array()) : \Query\Query_Builder-
Where clause with 'IN' statement
- - -mixed | -$field | -- |
mixed | -$val | -- |
None found |
or_where_in(string $field, mixed $val = array()) : \Query\Query_Builder-
Where in statement prefixed with "or"
- - -string | -$field | -- |
mixed | -$val | -- |
None found |
where_not_in(string $field, mixed $val = array()) : \Query\Query_Builder-
WHERE NOT IN (FOO) clause
- - -string | -$field | -- |
mixed | -$val | -- |
None found |
or_where_not_in(string $field, mixed $val = array()) : \Query\Query_Builder-
OR WHERE NOT IN (FOO) clause
- - -string | -$field | -- |
mixed | -$val | -- |
None found |
set(mixed $key, mixed $val = NULL) : \Query\Query_Builder-
Sets values for inserts / updates / deletes
- - -mixed | -$key | -- |
mixed | -$val | -- |
None found |
join(string $table, string $condition, string $type = '') : \Query\Query_Builder-
Creates a join phrase in a compiled query
- - -string | -$table | -- |
string | -$condition | -- |
string | -$type | -- |
None found |
group_by(mixed $field) : \Query\Query_Builder
- Group the results by the selected field(s)
- - -mixed | -$field | -- |
None found |
order_by(string $field, string $type = "") : \Query\Query_Builder-
Order the results by the selected field(s)
- - -string | -$field | -- |
string | -$type | -- |
None found |
limit(integer $limit, integer|boolean $offset = FALSE) : \Query\Query_Builder-
Set a limit on the current sql statement
- - -integer | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
group_start() : \Query\Query_Builder-
Adds a paren to the current query for query grouping
- - - - -None found |
or_group_start() : \Query\Query_Builder-
Adds a paren to the current query for query grouping, -prefixed with 'OR'
- - - - -None found |
or_not_group_start() : \Query\Query_Builder-
Adds a paren to the current query for query grouping, -prefixed with 'OR NOT'
- - - - -None found |
group_end() : \Query\Query_Builder-
Ends a query group
- - - - -None found |
get( $table = '', integer|boolean $limit = FALSE, integer|boolean $offset = FALSE) : \PDOStatement-
Select and retrieve all records from the current table, and/or -execute current compiled query
- - -- | $table | -- |
integer|boolean | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
get_where(string $table, array $where = array(), integer|boolean $limit = FALSE, integer|boolean $offset = FALSE) : \PDOStatement-
Convenience method for get() with a where clause
- - -string | -$table | -- |
array | -$where | -- |
integer|boolean | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
count_all(string $table) : integer
- Retreive the number of rows in the selected table
- - -string | -$table | -- |
None found |
count_all_results(string $table = '') : integer
- Retrieve the number of results for the generated query - used -in place of the get() method
- - -string | -$table | -- |
None found |
insert(string $table, mixed $data = array()) : \PDOStatement-
Creates an insert clause, and executes it
- - -string | -$table | -- |
mixed | -$data | -- |
None found |
insert_batch(string $table, array $data = array()) : \PDOStatement-
Creates and executes a batch insertion query
- - -string | -$table | -- |
array | -$data | -- |
None found |
update(string $table, mixed $data = array()) : \PDOStatement-
Creates an update clause, and executes it
- - -string | -$table | -- |
mixed | -$data | -- |
None found |
delete(string $table, mixed $where = '') : \PDOStatement-
Deletes data from a table
- - -string | -$table | -- |
mixed | -$where | -- |
None found |
get_compiled_select(string $table = '', boolean $reset = TRUE) : string-
Returns the generated 'select' sql query
- - -string | -$table | -- |
boolean | -$reset | -- |
None found |
get_compiled_insert(string $table, boolean $reset = TRUE) : string-
Returns the generated 'insert' sql query
- - -string | -$table | -- |
boolean | -$reset | -- |
None found |
get_compiled_update(string $table = '', boolean $reset = TRUE) : string-
Returns the generated 'update' sql query
- - -string | -$table | -- |
boolean | -$reset | -- |
None found |
get_compiled_delete(string $table = "", boolean $reset = TRUE) : string-
Returns the generated 'delete' sql query
- - -string | -$table | -- |
boolean | -$reset | -- |
None found |
reset_query() : void-
Clear out the class variables, so the next query can be run
- - - - - -None found |
_mixed_set(array $var, mixed $key, mixed $val = NULL, integer $val_type = self::BOTH) : array-
Set values in the class, with either an array or key value pair
- - -array | -$var | -- |
mixed | -$key | -- |
mixed | -$val | -- |
integer | -$val_type | -- |
None found |
_select(string $field, string|boolean $as = FALSE) : string-
Method to simplify select_ methods
- - -string | -$field | -- |
string|boolean | -$as | -- |
None found |
_get_compile(string $type, string $table, boolean $reset) : string-
Helper function for returning sql strings
- - -string | -$type | -- |
string | -$table | -- |
boolean | -$reset | -- |
None found |
_like(string $field, mixed $val, string $pos, string $like = 'LIKE', string $conj = 'AND') : \Query\Query_Builder-
Simplify 'like' methods
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
string | -$like | -- |
string | -$conj | -- |
None found |
_having(mixed $key, mixed $val = array(), string $conj = 'AND') : \Query\Query_Builder-
Simplify building having clauses
- - -mixed | -$key | -- |
mixed | -$val | -- |
string | -$conj | -- |
None found |
_where(mixed $key, mixed $val = array()) : array-
Do all the repeditive stuff for where/having type methods
- - -mixed | -$key | -- |
mixed | -$val | -- |
None found |
_where_string(mixed $key, mixed $val = array(), string $defaultConj = 'AND') : \Query\Query_Builder-
Simplify generating where string
- - -mixed | -$key | -- |
mixed | -$val | -- |
string | -$defaultConj | -- |
None found |
_where_in(mixed $key, mixed $val = array(), string $in = 'IN', string $conj = 'AND') : \Query\Query_Builder-
Simplify where_in methods
- - -mixed | -$key | -- |
mixed | -$val | -- |
string | -$in | -
|
-
string | -$conj | -
|
-
None found |
_run(string $type, string $table, string $sql = NULL, array|null $vals = NULL) : \PDOStatement-
Executes the compiled query
- - -string | -$type | -- |
string | -$table | -- |
string | -$sql | -- |
array|null | -$vals | -- |
None found |
_append_map(string $conjunction = '', string $string = '', string $type = '') : void-
Add an additional set of mapping pairs to a internal map
- - -string | -$conjunction | -- |
string | -$string | -- |
string | -$type | -- |
None found |
_append_query(array $vals, string $sql, string $total_time) : void-
Convert the prepared statement into readable sql
- - -array | -$vals | -- |
string | -$sql | -- |
string | -$total_time | -- |
None found |
_compile_type(string $type = '', string $table = '') : string-
Sub-method for generating sql strings
- - -string | -$type | -- |
string | -$table | -- |
None found |
_compile(string $type = '', string $table = '') : string-
String together the sql statements for sending to the db
- - -string | -$type | -- |
string | -$table | -- |
None found |
Interface defining the Query Builder class
- - -None found |
select(string $fields) : \Query\Query_Builder
- Specifies rows to select in a query
- - -string | -$fields | -- |
None found |
select_max(string $field, string|boolean $as = FALSE) : \Query\Query_Builder-
Selects the maximum value of a field from a query
- - -string | -$field | -- |
string|boolean | -$as | -- |
None found |
select_min(string $field, string|boolean $as = FALSE) : \Query\Query_Builder-
Selects the minimum value of a field from a query
- - -string | -$field | -- |
string|boolean | -$as | -- |
None found |
select_avg(string $field, string|boolean $as = FALSE) : \Query\Query_Builder-
Selects the average value of a field from a query
- - -string | -$field | -- |
string|boolean | -$as | -- |
None found |
select_sum(string $field, string|boolean $as = FALSE) : \Query\Query_Builder-
Selects the sum of a field from a query
- - -string | -$field | -- |
string|boolean | -$as | -- |
None found |
distinct() : \Query\Query_Builder-
Adds the 'distinct' keyword to a query
- - - - -None found |
explain() : \Query\Query_Builder-
Shows the query plan for the query
- - - - -None found |
from(string $tblname) : \Query\Query_Builder
- Specify the database table to select from
- - -string | -$tblname | -- |
None found |
like(string $field, mixed $val, string $pos = 'both') : \Query\Query_Builder-
Creates a Like clause in the sql statement
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
None found |
or_like(string $field, mixed $val, string $pos = 'both') : \Query\Query_Builder-
Generates an OR Like clause
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
None found |
not_like(string $field, mixed $val, string $pos = 'both') : \Query\Query_Builder-
Generates a NOT LIKE clause
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
None found |
or_not_like(string $field, mixed $val, string $pos = 'both') : \Query\Query_Builder-
Generates a OR NOT LIKE clause
- - -string | -$field | -- |
mixed | -$val | -- |
string | -$pos | -- |
None found |
having(mixed $key, mixed $val = array()) : \Query\Query_Builder-
Generates a 'Having' clause
- - -mixed | -$key | -- |
mixed | -$val | -- |
None found |
or_having(mixed $key, mixed $val = array()) : \Query\Query_Builder-
Generates a 'Having' clause prefixed with 'OR'
- - -mixed | -$key | -- |
mixed | -$val | -- |
None found |
where(mixed $key, mixed $val = array(), boolean $escape = NULL) : \Query\Query_Builder-
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 | -$key | -- |
mixed | -$val | -- |
boolean | -$escape | -- |
None found |
or_where(string $key, mixed $val = array()) : \Query\Query_Builder-
Where clause prefixed with "OR"
- - -string | -$key | -- |
mixed | -$val | -- |
None found |
where_in(mixed $field, mixed $val = array()) : \Query\Query_Builder-
Where clause with 'IN' statement
- - -mixed | -$field | -- |
mixed | -$val | -- |
None found |
or_where_in(string $field, mixed $val = array()) : \Query\Query_Builder-
Where in statement prefixed with "or"
- - -string | -$field | -- |
mixed | -$val | -- |
None found |
where_not_in(string $field, mixed $val = array()) : \Query\Query_Builder-
WHERE NOT IN (FOO) clause
- - -string | -$field | -- |
mixed | -$val | -- |
None found |
or_where_not_in(string $field, mixed $val = array()) : \Query\Query_Builder-
OR WHERE NOT IN (FOO) clause
- - -string | -$field | -- |
mixed | -$val | -- |
None found |
set(mixed $key, mixed $val = NULL) : \Query\Query_Builder-
Sets values for inserts / updates / deletes
- - -mixed | -$key | -- |
mixed | -$val | -- |
None found |
join(string $table, string $condition, string $type = '') : \Query\Query_Builder-
Creates a join phrase in a compiled query
- - -string | -$table | -- |
string | -$condition | -- |
string | -$type | -- |
None found |
group_by(mixed $field) : \Query\Query_Builder
- Group the results by the selected field(s)
- - -mixed | -$field | -- |
None found |
order_by(string $field, string $type = "") : \Query\Query_Builder-
Order the results by the selected field(s)
- - -string | -$field | -- |
string | -$type | -- |
None found |
limit(integer $limit, integer|boolean $offset = FALSE) : \Query\Query_Builder-
Set a limit on the current sql statement
- - -integer | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
group_start() : \Query\Query_Builder-
Adds a paren to the current query for query grouping
- - - - -None found |
or_group_start() : \Query\Query_Builder-
Adds a paren to the current query for query grouping, -prefixed with 'OR'
- - - - -None found |
or_not_group_start() : \Query\Query_Builder-
Adds a paren to the current query for query grouping, -prefixed with 'OR NOT'
- - - - -None found |
group_end() : \Query\Query_Builder-
Ends a query group
- - - - -None found |
get( $table = '', integer|boolean $limit = FALSE, integer|boolean $offset = FALSE) : \PDOStatement-
Select and retrieve all records from the current table, and/or -execute current compiled query
- - -- | $table | -- |
integer|boolean | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
get_where(string $table, array $where = array(), integer|boolean $limit = FALSE, integer|boolean $offset = FALSE) : \PDOStatement-
Convience method for get() with a where clause
- - -string | -$table | -- |
array | -$where | -- |
integer|boolean | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
count_all(string $table) : integer
- Retrieve the number of rows in the selected table
- - -string | -$table | -- |
None found |
count_all_results(string $table = '') : integer
- Retrieve the number of results for the generated query - used -in place of the get() method
- - -string | -$table | -- |
None found |
insert(string $table, mixed $data = array()) : \PDOStatement-
Creates an insert clause, and executes it
- - -string | -$table | -- |
mixed | -$data | -- |
None found |
insert_batch(string $table, array $data = array()) : \PDOStatement|null-
Creates and executes a batch insertion query
- - -string | -$table | -- |
array | -$data | -- |
None found |
update(string $table, mixed $data = array()) : \PDOStatement-
Creates an update clause, and executes it
- - -string | -$table | -- |
mixed | -$data | -- |
None found |
delete(string $table, mixed $where = '') : \PDOStatement-
Deletes data from a table
- - -string | -$table | -- |
mixed | -$where | -- |
None found |
get_compiled_select(string $table = '', boolean $reset = TRUE) : string-
Returns the generated 'select' sql query
- - -string | -$table | -- |
boolean | -$reset | -- |
None found |
get_compiled_insert(string $table, boolean $reset = TRUE) : string-
Returns the generated 'insert' sql query
- - -string | -$table | -- |
boolean | -$reset | -- |
None found |
get_compiled_update(string $table = '', boolean $reset = TRUE) : string-
Returns the generated 'update' sql query
- - -string | -$table | -- |
boolean | -$reset | -- |
None found |
Utility Class to parse sql clauses for properly escaping identifiers
- - - -None found |
None found |
$db : \Query\Driver_Interface-
DB Driver
- - -None found |
$match_patterns : array-
Regex patterns for various syntax components
- - -None found |
__construct(\Query\Driver\Driver_Interface $db)
- Constructor/entry point into parser
- - -\Query\Driver\Driver_Interface | -$db | -- |
None found |
parse_join(string $sql) : array
- Parser method for setting the parse string
- - -string | -$sql | -- |
None found |
parent for database manipulation subclasses
- - -None found |
limit(string $sql, integer $limit, integer|boolean $offset = FALSE) : string-
Get database specific sql for limit clause
- - -string | -$sql | -- |
integer | -$limit | -- |
integer|boolean | -$offset | -- |
None found |
explain(string $sql) : string
- Modify the query to get the query plan
- - -string | -$sql | -- |
None found |
random() : string-
Get the sql for random ordering
- - - - -None found |
db_list() : string-
Returns sql to list other databases
- - - - -None found |
table_list() : string-
Returns sql to list tables
- - - - -None found |
system_table_list() : string-
Returns sql to list system tables
- - - - -None found |
view_list() : string-
Returns sql to list views
- - - - -None found |
trigger_list() : string-
Returns sql to list triggers
- - - - -None found |
function_list() : NULL-
Return sql to list functions
- - - - -None found |
procedure_list() : string-
Return sql to list stored procedures
- - - - -None found |
sequence_list() : string-
Return sql to list sequences
- - - - -None found |
type_list() : string|array-
Return sql to list database field types
- - - - -None found |
column_list(string $table) : string
- Get information about the columns in the -specified table
- - -string | -$table | -- |
None found |
Extends PDO to simplify cross-database issues
++ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Some scrutinizer fixes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix Firebird tests and speed up tests by using one database connection for each query builder datbase test+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize classes to autoload by namespace+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some useless code, extract an exception into its own class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some very minor code quality issues+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove Table Builder classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improve some tests and docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some variable setting logic duplication+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Split Query Builder class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix access of member variable+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+De-duplicate truncate method of drivers+
public function __call(string
+ $name,
+ [array
+ $args = ] )
+
+ $name
+ —
+ string$args
+ —
+ arraypublic function __construct(string
+ $dsn,
+ [string
+ $username = NULL,
+ [string
+ $password = NULL,
+ [array
+ $driver_options = ]]] )
+
+ $dsn
+ —
+ string$username
+ —
+ string$password
+ —
+ string$driver_options
+ —
+ arrayprotected function _load_sub_classes()
+
+ protected function _prefix(string
+ $str )
+
+ $str
+ —
+ stringpublic function _quote(mixed
+ $str )
+
+ $str
+ —
+ mixedpublic function affected_rows()
+
+
+
+ Driver_Interface
+
+
public function driver_query(string|array|null
+ $query,
+ [boolean
+ $filtered_index = TRUE] )
+
+ $query
+ —
+ object$filtered_index
+ —
+ boolean
+
+ Driver_Interface
+
+
public function get_columns(string
+ $table )
+
+ $table
+ —
+ string
+
+ Driver_Interface
+
+
public function get_dbs()
+
+
+
+ Driver_Interface
+
+
public function get_fks(string
+ $table )
+
+ $table
+ —
+ string
+
+ Driver_Interface
+
+
public function get_functions()
+
+
+
+ Driver_Interface
+
+
public function get_indexes(string
+ $table )
+
+ $table
+ —
+ string
+
+ Driver_Interface
+
+
public function get_last_query()
+
+ public function get_procedures()
+
+
+
+ Driver_Interface
+
+
public function get_schemas()
+
+ public function get_sequences()
+
+
+
+ Driver_Interface
+
+
public function get_sql()
+
+
+
+ Driver_Interface
+
+
public function get_system_tables()
+
+
+
+ Driver_Interface
+
+
public function get_tables()
+
+
+
+ Driver_Interface
+
+
public function get_triggers()
+
+
+
+ Driver_Interface
+
+
public function get_types()
+
+
+
+ Driver_Interface
+
+
public function get_util()
+
+
+
+ Driver_Interface
+
+
public function get_views()
+
+
+
+ Driver_Interface
+
+
public function insert_batch(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ array
+
+ Driver_Interface
+
+
public function num_rows()
+
+
+
+ Driver_Interface
+
+
public function prefix_table(string
+ $table )
+
+ $table
+ —
+ string
+
+ Driver_Interface
+
+
public function prepare_execute(string
+ $sql,
+ array
+ $params )
+
+ $sql
+ —
+ string$params
+ —
+ array
+
+ Driver_Interface
+
+
public function prepare_query(string
+ $sql,
+ array
+ $data )
+
+ $sql
+ —
+ string$data
+ —
+ array
+ InvalidArgumentException
+
+
+
+ Driver_Interface
+
+
public function quote_ident(mixed
+ $ident )
+
+ $ident
+ —
+ mixed
+
+ Driver_Interface
+
+
public function quote_table(string
+ $table )
+
+ $table
+ —
+ string
+
+ Driver_Interface
+
+
public function set_last_query(string
+ $query_string )
+
+ $query_string
+ —
+ stringpublic function set_table_prefix(string
+ $prefix )
+
+ $prefix
+ —
+ stringpublic function truncate(string
+ $table )
+
+ $table
+ —
+ stringName | +Value | +
---|---|
KEY | +0 | +
VALUE | +1 | +
BOTH | +2 | +
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Re-add some missing tests, and update README+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Some scrutinizer fixes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some issues with multiple array items in where statements+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize classes to autoload by namespace+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some very minor code quality issues+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix minor issue of where clause disappearing after a number of joins+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Attempting some Quercus compatibility, test-suite runs with simpletest as well as PHPUnit+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improve some tests and docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+method shortening+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some variable setting logic duplication+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Split Query Builder class+
protected function _append_map([string
+ $conjunction = '',
+ [string
+ $string = '',
+ [string
+ $type = '']]] )
+
+ $conjunction
+ —
+ string$string
+ —
+ string$type
+ —
+ stringprotected function _append_query(array
+ $vals,
+ string
+ $sql,
+ string
+ $total_time )
+
+ $vals
+ —
+ array$sql
+ —
+ string$total_time
+ —
+ stringprotected function _compile([string
+ $type = '',
+ [string
+ $table = '']] )
+
+ $type
+ —
+ string$table
+ —
+ stringprotected function _compile_type([string
+ $type = '',
+ [string
+ $table = '']] )
+
+ $type
+ —
+ string$table
+ —
+ stringprotected function _get_compile(string
+ $type,
+ string
+ $table,
+ bool
+ $reset )
+
+ $type
+ —
+ string$table
+ —
+ string$reset
+ —
+ objectprotected function _having(mixed
+ $key,
+ [array
+ $val = ,
+ [string
+ $conj = 'AND']] )
+
+ $key
+ —
+ mixed$val
+ —
+ array$conj
+ —
+ stringprotected function _like(string
+ $field,
+ mixed
+ $val,
+ string
+ $pos,
+ [string
+ $like = 'LIKE',
+ [string
+ $conj = 'AND']] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ string$like
+ —
+ string$conj
+ —
+ stringprotected function _mixed_set(array&
+ $var,
+ mixed
+ $key,
+ [mixed
+ $val = NULL,
+ [int
+ $val_type = self::BOTH]] )
+
+ $var
+ —
+ array$key
+ —
+ mixed$val
+ —
+ mixed$val_type
+ —
+ intprotected function _run(string
+ $type,
+ string
+ $table,
+ [string
+ $sql = NULL,
+ [array|null
+ $vals = NULL]] )
+
+ $type
+ —
+ string$table
+ —
+ string$sql
+ —
+ string$vals
+ —
+ objectprotected function _select(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ booleanprotected function _where(mixed
+ $key,
+ [array
+ $val = ] )
+
+ $key
+ —
+ mixed$val
+ —
+ arrayprotected function _where_in(mixed
+ $key,
+ [array
+ $val = ,
+ [string
+ $in = 'IN',
+ [string
+ $conj = 'AND']]] )
+
+ $key
+ —
+ mixed$val
+ —
+ array$in
+ —
+ string$conj
+ —
+ stringprotected function _where_string(mixed
+ $key,
+ [array
+ $val = ,
+ [string
+ $defaultConj = 'AND']] )
+
+ $key
+ —
+ mixed$val
+ —
+ array$defaultConj
+ —
+ string+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize classes to autoload by namespace+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Docblock fixes and more dependency injection+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Test improvements+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add insert_batch methods to Firebird and SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move abstract classes and interfaces to their own respective folders+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs, composer and README+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename interfaces from iFoo to Foo_Interface+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add abstract class for sql classes to have base limit method+
public function limit(string
+ $sql,
+ int
+ $limit,
+ [boolean
+ $offset = FALSE] )
+
+ $sql
+ —
+ string$limit
+ —
+ int$offset
+ —
+ boolean
+
+ SQL_Interface
+
+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize classes to autoload by namespace+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove Table Builder classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove __call method from util classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reduce complexity of create_table method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix a few spelling mistakes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some duplication+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Docblock updates+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Flesh out the table builder a bit, and add some missing driver methods to SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix a few code quality issues+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Cut down on some duplication, and increase test coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename db_util to abstract_util, mark create_table method as deprecated+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add insert_batch methods to Firebird and SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
public function __construct(Driver_Interface
+ $conn )
+
+ $conn
+ —
+ Query\Driver_Interfacepublic function backup_data()
+
+ public function backup_structure()
+
+ public function create_table(string
+ $name,
+ array
+ $fields,
+ [array
+ $constraints = ,
+ [boolean
+ $if_not_exists = TRUE]] )
+
+ $name
+ —
+ string$fields
+ —
+ array$constraints
+ —
+ array$if_not_exists
+ —
+ booleanpublic function delete_table(string
+ $name )
+
+ $name
+ —
+ stringpublic function get_driver()
+
+ + Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize classes to autoload by namespace+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some useless code, extract an exception into its own class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove php 5.4 style array+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add pdo_firebird driver+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix Firebird tests and speed up tests by using one database connection for each query builder datbase test+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize classes to autoload by namespace+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some useless code, extract an exception into its own class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Attempting some Quercus compatibility, test-suite runs with simpletest as well as PHPUnit+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Allow camelCase method calls, update interfaces with missing methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Docblock fixes and more dependency injection+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some typos and docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename db_util to abstract_util, mark create_table method as deprecated+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add insert_batch methods to Firebird and SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+A little cleanup of parser and connection code+
public function __clone()
+
+
+ DomainException
+
+ private function __construct()
+
+ public function __sleep()
+
+
+ DomainException
+
+ public function __wakeup()
+
+
+ DomainException
+
+ public function connect(stdClass
+ $params )
+
+ $params
+ —
+ \stdClassprivate function create_dsn(string
+ $dbtype,
+ stdClass
+ $params )
+
+ $dbtype
+ —
+ string$params
+ —
+ \stdClasspublic function get_connection([string
+ $name = ''] )
+
+ $name
+ —
+ string
+ InvalidArgumentException
+
+ public function get_instance()
+
+ public function parse_params(stdClass
+ $params )
+
+ $params
+ —
+ \stdClass
+ BadDBDriverException
+
+ PDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.
++ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Some scrutinizer fixes+
+ Author: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) / + Commiter: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) +
+Scrutinizer Auto-Fixes + +This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix Firebird tests and speed up tests by using one database connection for each query builder datbase test+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some variable setting logic duplication+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Split Query Builder class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+De-duplicate truncate method of drivers+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Allow camelCase method calls, update interfaces with missing methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some typos and docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Flesh out the table builder a bit, and add some missing driver methods to SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Deduplicate error methods in Firebird_Result class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update drivers with missing method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename db_util to abstract_util, mark create_table method as deprecated+
public function __construct(string
+ $dbpath,
+ [string
+ $user = 'SYSDBA',
+ [string
+ $pass = 'masterkey',
+ [array
+ $options = ]]] )
+
+ $dbpath
+ —
+ string$user
+ —
+ string$pass
+ —
+ string$options
+ —
+ array
+ PDOException
+
+ public function __destruct()
+
+ public function beginTransaction()
+
+
+
+ Driver_Interface
+
+
+ PDO
+
+ public function commit()
+
+
+
+ Driver_Interface
+
+
+ PDO
+
+ public function errorCode()
+
+
+
+ Driver_Interface
+
+
+ PDO
+
+ public function errorInfo()
+
+
+
+ Driver_Interface
+
+
+ PDO
+
+ public function exec(string
+ $sql )
+
+ $sql
+ —
+ string
+
+ Driver_Interface
+
+
+ PDO
+
+ public function getAttribute(int
+ $attribute )
+
+ $attribute
+ —
+ int
+
+ Driver_Interface
+
+
+ PDO
+
+ public function get_service()
+
+ public function inTransaction()
+
+
+ PDO
+
+ public function insert_batch(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ array
+
+ Driver_Interface
+
+
+ Abstract_Driver
+
+ public function lastInsertId([string
+ $name = NULL] )
+
+ $name
+ —
+ string
+ PDO
+
+ public function prepare(string
+ $query,
+ [array
+ $options = ] )
+
+ $query
+ —
+ string$options
+ —
+ array
+ PDOException
+
+
+ PDO
+
+ public function prepare_execute(string
+ $sql,
+ array
+ $args )
+
+ $sql
+ —
+ string$args
+ —
+ array
+
+ Driver_Interface
+
+
+ Abstract_Driver
+
+ public function prepare_query(string
+ $sql,
+ array
+ $params )
+
+ $sql
+ —
+ string$params
+ —
+ array
+
+ Driver_Interface
+
+
+ Abstract_Driver
+
+ public function query([string
+ $sql = ''] )
+
+ $sql
+ —
+ string
+ PDOException
+
+
+ PDO
+
+ public function quote(string
+ $str,
+ [int
+ $param_type = PDO::PARAM_STR] )
+
+ $str
+ —
+ string$param_type
+ —
+ int
+ PDO
+
+ public function rollBack()
+
+
+ PDO
+
+ public function setAttribute(int
+ $attribute,
+ mixed
+ $value )
+
+ $attribute
+ —
+ int$value
+ —
+ mixed
+
+ Driver_Interface
+
+
+ PDO
+
+ + Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Some scrutinizer fixes+
+ Author: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) / + Commiter: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) +
+Scrutinizer Auto-Fixes + +This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix Firebird tests and speed up tests by using one database connection for each query builder datbase test+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some more docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Docblock fixes and more dependency injection+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Deduplicate error methods in Firebird_Result class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update drivers with missing method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improvements for scrutinizer+
+ Author: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) / + Commiter: Scrutinizer (auto-fixer@scrutinizer-ci.com) +
+Scrutinizer Auto-Fixes + +This patch was automatically generated as part of the following inspection: +https://scrutinizer-ci.com/g/timw4mail/Query/inspections/89ed2aa4-7aae-45bb-9289-ebb27a60ef13 + +Enabled analysis tools: + - PHP Analyzer+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Better test coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some docblocks, and update test files to 2014+
public function __construct(resource
+ $link,
+ [Driver|null
+ $db = NULL] )
+
+ $link
+ —
+ resource$db
+ —
+ objectpublic function bindColumn(mixed
+ $column,
+ mixed&
+ $param,
+ [int
+ $type = NULL,
+ [mixed
+ $maxlen = NULL,
+ [array
+ $driverdata = NULL]]] )
+
+ $column
+ —
+ mixed$param
+ —
+ mixed$type
+ —
+ int$maxlen
+ —
+ mixed$driverdata
+ —
+ array
+ PDOStatement
+
+ public function bindParam(mixed
+ $parameter,
+ mixed&
+ $variable,
+ [int
+ $data_type = NULL,
+ [mixed
+ $maxlen = NULL,
+ [array
+ $driverdata = NULL]]] )
+
+ $parameter
+ —
+ mixed$variable
+ —
+ mixed$data_type
+ —
+ int$maxlen
+ —
+ mixed$driverdata
+ —
+ array
+ PDOStatement
+
+ public function bindValue(mixed
+ $parameter,
+ mixed
+ $variable,
+ [int
+ $data_type = NULL] )
+
+ $parameter
+ —
+ mixed$variable
+ —
+ mixed$data_type
+ —
+ int
+ PDOStatement
+
+ public function errorCode()
+
+
+ PDOStatement
+
+ public function errorInfo()
+
+
+ PDOStatement
+
+ public function execute([array
+ $args = NULL] )
+
+ $args
+ —
+ array
+ PDOStatement
+
+ public function fetch([int
+ $fetch_style = PDO::FETCH_ASSOC,
+ [mixed
+ $cursor_orientation = PDO::FETCH_ORI_NEXT,
+ [mixed
+ $cursor_offset = NULL]]] )
+
+ $fetch_style
+ —
+ int$cursor_orientation
+ —
+ mixed$cursor_offset
+ —
+ mixed
+ PDOStatement
+
+ public function fetchAll([int
+ $fetch_style = PDO::FETCH_ASSOC,
+ [mixed
+ $statement = NULL,
+ [mixed
+ $ctor_args = NULL]]] )
+
+ $fetch_style
+ —
+ int$statement
+ —
+ mixed$ctor_args
+ —
+ mixed
+ PDOStatement
+
+ public function fetchColumn([integer
+ $column_num = 0] )
+
+ $column_num
+ —
+ integer
+ PDOStatement
+
+ public function fetchObject([string
+ $class_name = 'stdClass',
+ [array
+ $ctor_args = ]] )
+
+ $class_name
+ —
+ string$ctor_args
+ —
+ array
+ PDOStatement
+
+ public function rowCount()
+
+
+ PDOStatement
+
+ + Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improve some tests and docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Docblock fixes and more dependency injection+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add update and delete rules to foreign key methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update foreign key driver methods to return the same kind of information+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Flesh out the table builder a bit, and add some missing driver methods to SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update drivers with missing method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add method to retrieve foreign keys for a table to driver classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add abstract class for sql classes to have base limit method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+More firebird coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add `explain` method to query builder+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Changed invalid methods to return NULL instead of FALSE, added insert_batch+
public function column_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function db_list()
+
+
+
+ SQL_Interface
+
+
public function explain(string
+ $sql )
+
+ $sql
+ —
+ string
+
+ SQL_Interface
+
+
public function fk_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function function_list()
+
+
+
+ SQL_Interface
+
+
public function index_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function limit(string
+ $sql,
+ int
+ $limit,
+ [boolean
+ $offset = FALSE] )
+
+ $sql
+ —
+ string$limit
+ —
+ int$offset
+ —
+ boolean
+
+ SQL_Interface
+
+
+ Abstract_SQL
+
+ public function procedure_list()
+
+
+
+ SQL_Interface
+
+
public function random()
+
+
+
+ SQL_Interface
+
+
public function sequence_list()
+
+
+
+ SQL_Interface
+
+
public function system_table_list()
+
+
+
+ SQL_Interface
+
+
public function table_list()
+
+
+
+ SQL_Interface
+
+
public function trigger_list()
+
+
+
+ SQL_Interface
+
+
public function type_list()
+
+
+
+ SQL_Interface
+
+
public function view_list()
+
+
+
+ SQL_Interface
+
+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix Firebird tests and speed up tests by using one database connection for each query builder datbase test+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove __call method from util classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix a few spelling mistakes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some duplication+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Docblock fixes and more dependency injection+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Flesh out the table builder a bit, and add some missing driver methods to SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Deduplicate error methods in Firebird_Result class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix a few code quality issues+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update drivers with missing method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Cut down on some duplication, and increase test coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename db_util to abstract_util, mark create_table method as deprecated+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
public function backup_data([array
+ $exclude = ,
+ [boolean
+ $system_tables = FALSE]] )
+
+ $exclude
+ —
+ array$system_tables
+ —
+ boolean
+ Abstract_Util
+
+ public function backup_structure()
+
+
+ Abstract_Util
+
+ public function create_table(string
+ $name,
+ array
+ $fields,
+ [array
+ $constraints = ,
+ [boolean
+ $if_not_exists = FALSE]] )
+
+ $name
+ —
+ string$fields
+ —
+ array$constraints
+ —
+ array$if_not_exists
+ —
+ boolean
+ Abstract_Util
+
+ public function delete_table(string
+ $name )
+
+ $name
+ —
+ string
+ Abstract_Util
+
+ + Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+De-duplicate truncate method of drivers+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix tests, by fixing some issues with auto-prefixing table names+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add interface for pdo drivers to enforce the same interface on the Firebird driver+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix dsn issue in tests+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improve code coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add `explain` method to query builder+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Update year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Add interfaces+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Make mysql/postgres drivers compatible with Quercus+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Add list_types abstract method to db_sql class+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Misc tweaks+
public function __construct(string
+ $dsn,
+ [string
+ $username = null,
+ [string
+ $password = null,
+ [array
+ $options = ]]] )
+
+ $dsn
+ —
+ string$username
+ —
+ string$password
+ —
+ string$options
+ —
+ array+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add update and delete rules to foreign key methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update foreign key driver methods to return the same kind of information+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Test improvements+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update drivers with missing method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add method to retrieve foreign keys for a table to driver classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Micro-optimization for MySQL order by rand+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add abstract class for sql classes to have base limit method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Better test coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add `explain` method to query builder+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Changed invalid methods to return NULL instead of FALSE, added insert_batch+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Update year+
public function column_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function db_list()
+
+
+
+ SQL_Interface
+
+
public function explain(string
+ $sql )
+
+ $sql
+ —
+ string
+
+ SQL_Interface
+
+
public function fk_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function function_list()
+
+
+
+ SQL_Interface
+
+
public function index_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function limit(string
+ $sql,
+ int
+ $limit,
+ [boolean
+ $offset = FALSE] )
+
+ $sql
+ —
+ string$limit
+ —
+ int$offset
+ —
+ boolean
+
+ SQL_Interface
+
+
+ Abstract_SQL
+
+ public function procedure_list()
+
+
+
+ SQL_Interface
+
+
public function random()
+
+
+
+ SQL_Interface
+
+
public function sequence_list()
+
+
+
+ SQL_Interface
+
+
public function system_table_list()
+
+
+
+ SQL_Interface
+
+
public function table_list([string
+ $database = ''] )
+
+ $database
+ —
+ string
+
+ SQL_Interface
+
+
public function trigger_list()
+
+
+
+ SQL_Interface
+
+
public function type_list()
+
+
+
+ SQL_Interface
+
+
public function view_list()
+
+
+
+ SQL_Interface
+
+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove __call method from util classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Test improvements+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Cut down on some duplication, and increase test coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename db_util to abstract_util, mark create_table method as deprecated+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+improve query builder and connection manager, skip coverage of some soon-to-be-removed methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove pointless constructor over-riding+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix more code quality issues+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+More appeasement of scrutinizer-ci+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some code quality issues+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some dead code, update docs+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some docblocks, and update test files to 2014+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
public function backup_data([array
+ $exclude = ] )
+
+ $exclude
+ —
+ array
+ Abstract_Util
+
+ public function backup_structure()
+
+
+ Abstract_Util
+
+ + Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+De-duplicate truncate method of drivers+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add update and delete rules to foreign key methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add interface for pdo drivers to enforce the same interface on the Firebird driver+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Minor query formatting changes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix dsn issue in tests+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improve code coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Update year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Add interfaces+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Make mysql/postgres drivers compatible with Quercus+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Add list_types abstract method to db_sql class+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Misc tweaks+
public function __construct(string
+ $dsn,
+ [string
+ $username = null,
+ [string
+ $password = null,
+ [array
+ $options = ]]] )
+
+ $dsn
+ —
+ string$username
+ —
+ string$password
+ —
+ string$options
+ —
+ arraypublic function get_fks(string
+ $table )
+
+ $table
+ —
+ string
+
+ Driver_Interface
+
+
+ Abstract_Driver
+
+ public function get_schemas()
+
+
+ Abstract_Driver
+
+ + Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add pdo_firebird driver+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix naming error in pg driver+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add update and delete rules to foreign key methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update foreign key driver methods to return the same kind of information+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update drivers with missing method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add method to retrieve foreign keys for a table to driver classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add abstract class for sql classes to have base limit method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add `explain` method to query builder+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Changed invalid methods to return NULL instead of FALSE, added insert_batch+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Update year+
public function column_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function db_list()
+
+
+
+ SQL_Interface
+
+
public function explain(string
+ $sql )
+
+ $sql
+ —
+ string
+
+ SQL_Interface
+
+
public function fk_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function function_list()
+
+
+
+ SQL_Interface
+
+
public function index_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function procedure_list()
+
+
+
+ SQL_Interface
+
+
public function random()
+
+
+
+ SQL_Interface
+
+
public function sequence_list()
+
+
+
+ SQL_Interface
+
+
public function system_table_list()
+
+
+
+ SQL_Interface
+
+
public function table_list()
+
+
+
+ SQL_Interface
+
+
public function trigger_list()
+
+
+
+ SQL_Interface
+
+
public function type_list()
+
+
+
+ SQL_Interface
+
+
public function view_list()
+
+
+
+ SQL_Interface
+
+
Line | +Task | +
---|---|
33 | +Implement Backup function | +
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove __call method from util classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename db_util to abstract_util, mark create_table method as deprecated+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove redundant method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improvements for scrutinizer+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove pointless constructor over-riding+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update some docblocks for __called methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some docblocks, and update test files to 2014+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Update year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Add list_types abstract method to db_sql class+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Add package docblock options+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Added class reference in docs folder, improved comment consistency in classes+
public function backup_data([array
+ $exclude = ] )
+
+ $exclude
+ —
+ array
+ Abstract_Util
+
+ public function backup_structure()
+
+
+ Abstract_Util
+
+ Line | +Task | +
---|---|
33 | +Implement Backup function | +
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add pdo_firebird driver+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improve some tests and docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+De-duplicate truncate method of drivers+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add update and delete rules to foreign key methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update foreign key driver methods to return the same kind of information+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Flesh out the table builder a bit, and add some missing driver methods to SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Cut down on some duplication, and increase test coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename db_util to abstract_util, mark create_table method as deprecated+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add insert_batch methods to Firebird and SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add interface for pdo drivers to enforce the same interface on the Firebird driver+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some code quality issues+
+ Author: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) / + Commiter: Scrutinizer (auto-fixer@scrutinizer-ci.com) +
+Scrutinizer Auto-Fixes + +This patch was automatically generated as part of the following inspection: +https://scrutinizer-ci.com/g/timw4mail/Query/inspections/89ed2aa4-7aae-45bb-9289-ebb27a60ef13 + +Enabled analysis tools: + - PHP Analyzer+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove a few undocumented database-specific methods+
public function __construct(string
+ $dsn,
+ [string
+ $user = NULL,
+ [string
+ $pass = NULL,
+ [array
+ $driver_options = ]]] )
+
+ $dsn
+ —
+ string$user
+ —
+ string$pass
+ —
+ string$driver_options
+ —
+ arraypublic function get_fks(string
+ $table )
+
+ $table
+ —
+ string
+
+ Driver_Interface
+
+
+ Abstract_Driver
+
+ public function get_tables()
+
+
+
+ Driver_Interface
+
+
+ Abstract_Driver
+
+ public function insert_batch(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ array
+
+ Driver_Interface
+
+
+ Abstract_Driver
+
+ + Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) / + Commiter: Scrutinizer (auto-fixer@scrutinizer-ci.com) +
+Scrutinizer Auto-Fixes + +This patch was automatically generated as part of the following inspection: +https://scrutinizer-ci.com/g/timw4mail/Query/inspections/d131279f-a838-49e5-bbfb-20c256a06153 + +Enabled analysis tools: + - PHP Analyzer+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some more docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Flesh out the table builder a bit, and add some missing driver methods to SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix sql test errors+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update drivers with missing method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add method to retrieve foreign keys for a table to driver classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add abstract class for sql classes to have base limit method+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Make sqlite limit statement more different than mysql limit statement+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add interface for pdo drivers to enforce the same interface on the Firebird driver+
+ Author: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) / + Commiter: Scrutinizer (auto-fixer@scrutinizer-ci.com) +
+Scrutinizer Auto-Fixes + +This patch was automatically generated as part of the following inspection: +https://scrutinizer-ci.com/g/timw4mail/Query/inspections/89ed2aa4-7aae-45bb-9289-ebb27a60ef13 + +Enabled analysis tools: + - PHP Analyzer+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add `explain` method to query builder+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
public function column_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function db_list()
+
+
+
+ SQL_Interface
+
+
public function explain(string
+ $sql )
+
+ $sql
+ —
+ string
+
+ SQL_Interface
+
+
public function fk_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function function_list()
+
+
+
+ SQL_Interface
+
+
public function index_list(string
+ $table )
+
+ $table
+ —
+ string
+
+ SQL_Interface
+
+
public function procedure_list()
+
+
+
+ SQL_Interface
+
+
public function random()
+
+
+
+ SQL_Interface
+
+
public function sequence_list()
+
+
+
+ SQL_Interface
+
+
public function system_table_list()
+
+
+
+ SQL_Interface
+
+
public function table_list()
+
+
+
+ SQL_Interface
+
+
public function trigger_list()
+
+
+
+ SQL_Interface
+
+
public function type_list()
+
+
+
+ SQL_Interface
+
+
public function view_list()
+
+
+
+ SQL_Interface
+
+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move SQL and Util classes to their own namespaces+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove __call method from util classes+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix sqlite tests+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Cut down on some duplication, and increase test coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Rename db_util to abstract_util, mark create_table method as deprecated+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+improve query builder and connection manager, skip coverage of some soon-to-be-removed methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove pointless constructor over-riding+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update some docblocks for __called methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+No more skipped tests, and minor update to query formatting+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some docblocks, and update test files to 2014+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize sqlite tests and improve coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Update year+
public function backup_data([array
+ $excluded = ] )
+
+ $excluded
+ —
+ array
+ Abstract_Util
+
+ public function backup_structure()
+
+
+ Abstract_Util
+
+ Name | +Value | +
---|---|
KEY | +0 | +
VALUE | +1 | +
BOTH | +2 | +
+ Author: Timothy J Warren (tim@timshomepage.net) / + Commiter: Timothy J Warren (tim@timshomepage.net) +
+Set up jenkins build+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some issues with multiple array items in where statements+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize classes to autoload by namespace+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix small docblock discrepency+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add an additional type check to limit+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Attempting some Quercus compatibility, test-suite runs with simpletest as well as PHPUnit+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improve some tests and docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+method shortening+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Remove some variable setting logic duplication+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Split Query Builder class+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Allow camelCase method calls, update interfaces with missing methods+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Docblock fixes and more dependency injection+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some typos and docblocks+
public function __call(string
+ $name,
+ array
+ $params )
+
+ $name
+ —
+ string$params
+ —
+ array
+ BadMethodCallException
+
+ public function __construct(Driver_Interface
+ $db,
+ Query_Parser
+ $parser )
+
+ $db
+ —
+ Query\Driver_Interface$parser
+ —
+ Query\Query_Parserpublic function __destruct()
+
+ public function count_all(string
+ $table )
+
+ $table
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function count_all_results([string
+ $table = ''] )
+
+ $table
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function delete(string
+ $table,
+ [string
+ $where = ''] )
+
+ $table
+ —
+ string$where
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function distinct()
+
+
+
+ Query_Builder_Interface
+
+
public function explain()
+
+
+
+ Query_Builder_Interface
+
+
public function from(string
+ $tblname )
+
+ $tblname
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function get([string
+ $table = '',
+ [boolean
+ $limit = FALSE,
+ [boolean
+ $offset = FALSE]]] )
+
+ $table
+ —
+ string$limit
+ —
+ boolean$offset
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function get_compiled_delete([string
+ $table = "",
+ [boolean
+ $reset = TRUE]] )
+
+ $table
+ —
+ string$reset
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function get_compiled_insert(string
+ $table,
+ [boolean
+ $reset = TRUE] )
+
+ $table
+ —
+ string$reset
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function get_compiled_select([string
+ $table = '',
+ [boolean
+ $reset = TRUE]] )
+
+ $table
+ —
+ string$reset
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function get_compiled_update([string
+ $table = '',
+ [boolean
+ $reset = TRUE]] )
+
+ $table
+ —
+ string$reset
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function get_where(string
+ $table,
+ [array
+ $where = ,
+ [boolean
+ $limit = FALSE,
+ [boolean
+ $offset = FALSE]]] )
+
+ $table
+ —
+ string$where
+ —
+ array$limit
+ —
+ boolean$offset
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function group_by(mixed
+ $field )
+
+ $field
+ —
+ mixed
+
+ Query_Builder_Interface
+
+
public function group_end()
+
+
+
+ Query_Builder_Interface
+
+
public function group_start()
+
+
+
+ Query_Builder_Interface
+
+
public function having(mixed
+ $key,
+ [array
+ $val = ] )
+
+ $key
+ —
+ mixed$val
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function insert(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function insert_batch(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function join(string
+ $table,
+ string
+ $condition,
+ [string
+ $type = ''] )
+
+ $table
+ —
+ string$condition
+ —
+ string$type
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function like(string
+ $field,
+ mixed
+ $val,
+ [string
+ $pos = 'both'] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function limit(int
+ $limit,
+ [boolean
+ $offset = FALSE] )
+
+ $limit
+ —
+ int$offset
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function not_like(string
+ $field,
+ mixed
+ $val,
+ [string
+ $pos = 'both'] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function or_group_start()
+
+
+
+ Query_Builder_Interface
+
+
public function or_having(mixed
+ $key,
+ [array
+ $val = ] )
+
+ $key
+ —
+ mixed$val
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function or_like(string
+ $field,
+ mixed
+ $val,
+ [string
+ $pos = 'both'] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function or_not_group_start()
+
+
+
+ Query_Builder_Interface
+
+
public function or_not_like(string
+ $field,
+ mixed
+ $val,
+ [string
+ $pos = 'both'] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function or_where(string
+ $key,
+ [array
+ $val = ] )
+
+ $key
+ —
+ string$val
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function or_where_in(string
+ $field,
+ [array
+ $val = ] )
+
+ $field
+ —
+ string$val
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function or_where_not_in(string
+ $field,
+ [array
+ $val = ] )
+
+ $field
+ —
+ string$val
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function order_by(string
+ $field,
+ [string
+ $type = ""] )
+
+ $field
+ —
+ string$type
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function reset_query()
+
+
+
+ Query_Builder_Interface
+
+
public function select(string
+ $fields )
+
+ $fields
+ —
+ string
+
+ Query_Builder_Interface
+
+
public function select_avg(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function select_max(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function select_min(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function select_sum(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ boolean
+
+ Query_Builder_Interface
+
+
public function set(mixed
+ $key,
+ [mixed
+ $val = NULL] )
+
+ $key
+ —
+ mixed$val
+ —
+ mixed
+
+ Query_Builder_Interface
+
+
public function update(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function where(mixed
+ $key,
+ [array
+ $val = ,
+ [mixed
+ $escape = NULL]] )
+
+ $key
+ —
+ mixed$val
+ —
+ array$escape
+ —
+ mixed
+
+ Query_Builder_Interface
+
+
public function where_in(mixed
+ $field,
+ [array
+ $val = ] )
+
+ $field
+ —
+ mixed$val
+ —
+ array
+
+ Query_Builder_Interface
+
+
public function where_not_in(string
+ $field,
+ [array
+ $val = ] )
+
+ $field
+ —
+ string$val
+ —
+ array
+
+ Query_Builder_Interface
+
+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Re-add some missing tests, and update README+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Move library into src folder, fix simpletest test runner+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize drivers into a more modern layout+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Reorganize classes to autoload by namespace+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some more docblocks+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Docblock fixes and more dependency injection+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Add insert_batch methods to Firebird and SQLite+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+A little cleanup of parser and connection code+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Namespaces!+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update docs, composer and README+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Fix some docblocks, and update test files to 2014+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Improve code coverage+
+ Author: Timothy J. Warren (tim@timshomepage.net) / + Commiter: Timothy J. Warren (tim@timshomepage.net) +
+Update copyright for the new year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Update year+
+ Author: Timothy Warren (tim@timshomepage.net) / + Commiter: Timothy Warren (tim@timshomepage.net) +
+Parsed join conditions fixes #2+
public function __construct(Driver_Interface
+ $db )
+
+ $db
+ —
+ Query\Driver\Driver_Interfacepublic function compile_join(string
+ $condition )
+
+ $condition
+ —
+ stringprotected function filter_array(array
+ $array )
+
+ $array
+ —
+ arraypublic function parse_join(string
+ $sql )
+
+ $sql
+ —
+ string- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
- package - | -
- Query - |
-
---|
- package - | -
- Query - |
-
---|
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
- subpackage - | -- | -
---|---|
- todo - | -- | -
- subpackage - | -- | -
---|---|
- todo - | -- | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Abstract_Driver | -Base Database class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Abstract_Driver | -Base Database class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Abstract_Query_Builder | -Abstract Class for internal implementation methods of the Query Builder | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Abstract_Query_Builder | -Abstract Class for internal implementation methods of the Query Builder | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Abstract_SQL | -parent for database manipulation subclasses | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Abstract_SQL | -parent for database manipulation subclasses | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Abstract_Util | -Abstract class defining database / table creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Abstract_Util | -Abstract class defining database / table creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -BadDBDriverException | -Generic exception for bad drivers | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -BadDBDriverException | -Generic exception for bad drivers | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Connection_Manager | -Connection manager class to manage connections for the -Query method | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Connection_Manager | -Connection manager class to manage connections for the -Query method | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - -Driver_Interface | -PDO Interface to implement for database drivers | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - -Driver_Interface | -PDO Interface to implement for database drivers | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -Firebird Database class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -Firebird Database class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Result | -Firebird result class to emulate PDOStatement Class - only implements -data-fetching methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Result | -Firebird result class to emulate PDOStatement Class - only implements -data-fetching methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -Firebird Specific SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -Firebird Specific SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -Firebird-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -Firebird-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -MySQL specific class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -MySQL specific class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -MySQL specifc SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -MySQL specifc SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -MySQL-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -MySQL-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -Firebird specific class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -Firebird specific class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -Firebird Specific SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -Firebird Specific SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -Firebird-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -Firebird-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -PostgreSQL specifc class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -PostgreSQL specifc class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -PostgreSQL specifc SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -PostgreSQL specifc SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -Posgres-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -Posgres-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -SQLite specific class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Driver | -SQLite specific class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -SQLite Specific SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -SQL | -SQLite Specific SQL | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -SQLite-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Util | -SQLite-specific backup, import and creation methods | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Query_Builder | -Convenience class for creating sql queries - also the class that -instantiates the specific db driver | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Query_Builder | -Convenience class for creating sql queries - also the class that -instantiates the specific db driver | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - -Query_Builder_Interface | -Interface defining the Query Builder class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - -Query_Builder_Interface | -Interface defining the Query Builder class | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Query_Parser | -Utility Class to parse sql clauses for properly escaping identifiers | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - - -Query_Parser | -Utility Class to parse sql clauses for properly escaping identifiers | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - -SQL_Interface | -parent for database manipulation subclasses | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Query
-Free Query Builder / Database Abstraction Layer
- - -SQL_Interface | -parent for database manipulation subclasses | -
- author - | -
- Timothy J. Warren - |
-
---|---|
- copyright - | -
- Copyright (c) 2012 - 2014 - |
-
- license - | -- - | -
Name | +Description | +
---|---|
+ Traversable + | ++ No description available + | +
Name | +Description | +
---|---|
+ Driver_Interface + | +PDO Interface to implement for database drivers | +
+ Query_Builder_Interface + | +Interface defining the Query Builder class | +
+ SQL_Interface + | +parent for database manipulation subclasses | +
public function __construct(string
+ $dsn,
+ [string
+ $username = NULL,
+ [string
+ $password = NULL,
+ [array
+ $driver_options = ]]] )
+
+ $dsn
+ —
+ string$username
+ —
+ string$password
+ —
+ string$driver_options
+ —
+ arraypublic function affected_rows()
+
+ public function beginTransaction()
+
+ public function commit()
+
+ public function driver_query(string|array|null
+ $query,
+ [boolean
+ $filtered_index = TRUE] )
+
+ $query
+ —
+ object$filtered_index
+ —
+ booleanpublic function errorCode()
+
+ public function errorInfo()
+
+ public function exec(string
+ $statement )
+
+ $statement
+ —
+ stringpublic function getAttribute(int
+ $attribute )
+
+ $attribute
+ —
+ intpublic function get_columns(string
+ $table )
+
+ $table
+ —
+ stringpublic function get_dbs()
+
+ public function get_fks(string
+ $table )
+
+ $table
+ —
+ stringpublic function get_functions()
+
+ public function get_indexes(string
+ $table )
+
+ $table
+ —
+ stringpublic function get_procedures()
+
+ public function get_sequences()
+
+ public function get_sql()
+
+ public function get_system_tables()
+
+ public function get_tables()
+
+ public function get_triggers()
+
+ public function get_types()
+
+ public function get_util()
+
+ public function get_views()
+
+ public function insert_batch(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ arraypublic function num_rows()
+
+ public function prefix_table(string
+ $table )
+
+ $table
+ —
+ stringpublic function prepare_execute(string
+ $sql,
+ array
+ $params )
+
+ $sql
+ —
+ string$params
+ —
+ arraypublic function prepare_query(string
+ $sql,
+ array
+ $data )
+
+ $sql
+ —
+ string$data
+ —
+ array
+ InvalidArgumentException
+
+ public function quote_ident(string|array
+ $ident )
+
+ $ident
+ —
+ objectpublic function quote_table(string|array
+ $table )
+
+ $table
+ —
+ objectpublic function rollback()
+
+ public function setAttribute(int
+ $attribute,
+ mixed
+ $value )
+
+ $attribute
+ —
+ int$value
+ —
+ mixedpublic function count_all(string
+ $table )
+
+ $table
+ —
+ stringpublic function count_all_results([string
+ $table = ''] )
+
+ $table
+ —
+ stringpublic function delete(string
+ $table,
+ [string
+ $where = ''] )
+
+ $table
+ —
+ string$where
+ —
+ stringpublic function distinct()
+
+ public function explain()
+
+ public function from(string
+ $tblname )
+
+ $tblname
+ —
+ stringpublic function get([string
+ $table = '',
+ [boolean
+ $limit = FALSE,
+ [boolean
+ $offset = FALSE]]] )
+
+ $table
+ —
+ string$limit
+ —
+ boolean$offset
+ —
+ booleanpublic function get_compiled_delete([string
+ $table = "",
+ [boolean
+ $reset = TRUE]] )
+
+ $table
+ —
+ string$reset
+ —
+ booleanpublic function get_compiled_insert(string
+ $table,
+ [boolean
+ $reset = TRUE] )
+
+ $table
+ —
+ string$reset
+ —
+ booleanpublic function get_compiled_select([string
+ $table = '',
+ [boolean
+ $reset = TRUE]] )
+
+ $table
+ —
+ string$reset
+ —
+ booleanpublic function get_compiled_update([string
+ $table = '',
+ [boolean
+ $reset = TRUE]] )
+
+ $table
+ —
+ string$reset
+ —
+ booleanpublic function get_where(string
+ $table,
+ [array
+ $where = ,
+ [boolean
+ $limit = FALSE,
+ [boolean
+ $offset = FALSE]]] )
+
+ $table
+ —
+ string$where
+ —
+ array$limit
+ —
+ boolean$offset
+ —
+ booleanpublic function group_by(mixed
+ $field )
+
+ $field
+ —
+ mixedpublic function group_end()
+
+ public function group_start()
+
+ public function having(mixed
+ $key,
+ [array
+ $val = ] )
+
+ $key
+ —
+ mixed$val
+ —
+ arraypublic function insert(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ arraypublic function insert_batch(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ arraypublic function join(string
+ $table,
+ string
+ $condition,
+ [string
+ $type = ''] )
+
+ $table
+ —
+ string$condition
+ —
+ string$type
+ —
+ stringpublic function like(string
+ $field,
+ mixed
+ $val,
+ [string
+ $pos = 'both'] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ stringpublic function limit(int
+ $limit,
+ [boolean
+ $offset = FALSE] )
+
+ $limit
+ —
+ int$offset
+ —
+ booleanpublic function not_like(string
+ $field,
+ mixed
+ $val,
+ [string
+ $pos = 'both'] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ stringpublic function or_group_start()
+
+ public function or_having(mixed
+ $key,
+ [array
+ $val = ] )
+
+ $key
+ —
+ mixed$val
+ —
+ arraypublic function or_like(string
+ $field,
+ mixed
+ $val,
+ [string
+ $pos = 'both'] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ stringpublic function or_not_group_start()
+
+ public function or_not_like(string
+ $field,
+ mixed
+ $val,
+ [string
+ $pos = 'both'] )
+
+ $field
+ —
+ string$val
+ —
+ mixed$pos
+ —
+ stringpublic function or_where(string
+ $key,
+ [array
+ $val = ] )
+
+ $key
+ —
+ string$val
+ —
+ arraypublic function or_where_in(string
+ $field,
+ [array
+ $val = ] )
+
+ $field
+ —
+ string$val
+ —
+ arraypublic function or_where_not_in(string
+ $field,
+ [array
+ $val = ] )
+
+ $field
+ —
+ string$val
+ —
+ arraypublic function order_by(string
+ $field,
+ [string
+ $type = ""] )
+
+ $field
+ —
+ string$type
+ —
+ stringpublic function reset_query()
+
+ public function select(string
+ $fields )
+
+ $fields
+ —
+ stringpublic function select_avg(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ booleanpublic function select_max(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ booleanpublic function select_min(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ booleanpublic function select_sum(string
+ $field,
+ [boolean
+ $as = FALSE] )
+
+ $field
+ —
+ string$as
+ —
+ booleanpublic function set(mixed
+ $key,
+ [mixed
+ $val = NULL] )
+
+ $key
+ —
+ mixed$val
+ —
+ mixedpublic function update(string
+ $table,
+ [array
+ $data = ] )
+
+ $table
+ —
+ string$data
+ —
+ arraypublic function where(mixed
+ $key,
+ [array
+ $val = ,
+ [bool
+ $escape = NULL]] )
+
+ $key
+ —
+ mixed$val
+ —
+ array$escape
+ —
+ objectpublic function where_in(mixed
+ $field,
+ [array
+ $val = ] )
+
+ $field
+ —
+ mixed$val
+ —
+ arraypublic function where_not_in(string
+ $field,
+ [array
+ $val = ] )
+
+ $field
+ —
+ string$val
+ —
+ arraypublic function column_list(string
+ $table )
+
+ $table
+ —
+ stringpublic function db_list()
+
+ public function explain(string
+ $sql )
+
+ $sql
+ —
+ stringpublic function fk_list(string
+ $table )
+
+ $table
+ —
+ stringpublic function function_list()
+
+ public function index_list(string
+ $table )
+
+ $table
+ —
+ stringpublic function limit(string
+ $sql,
+ int
+ $limit,
+ [boolean
+ $offset = FALSE] )
+
+ $sql
+ —
+ string$limit
+ —
+ int$offset
+ —
+ booleanpublic function procedure_list()
+
+ public function random()
+
+ public function sequence_list()
+
+ public function system_table_list()
+
+ public function table_list()
+
+ public function trigger_list()
+
+ public function type_list()
+
+ public function view_list()
+
+ t |