From b4118ce591ee74fdd71d609ac40355e830d56765 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 17 Jul 2015 16:01:41 -0400 Subject: [PATCH] Update docs --- Query/Abstract_Driver.php | 4 +- Query/Connection_Manager.php | 57 +- Query/Drivers/Firebird/Result.php | 2 +- Query/Query_Builder.php | 6 +- Query/Query_Parser.php | 2 +- common.php | 1 + docs/classes/Query.Abstract_Driver.html | 1879 ++++++++++++ .../classes/Query.Abstract_Query_Builder.html | 128 +- docs/classes/Query.Abstract_SQL.html | 514 ++++ docs/classes/Query.Abstract_Util.html | 813 +++++ docs/classes/Query.BadDBDriverException.html | 124 +- docs/classes/Query.Connection_Manager.html | 124 +- docs/classes/Query.Driver_Interface.html | 1686 +++++++++++ .../Query.Drivers.Firebird.Driver.html | 2676 +++++++++++++++++ .../Query.Drivers.Firebird.Result.html | 1160 +++++++ docs/classes/Query.Drivers.Firebird.SQL.html | 1026 +++++++ docs/classes/Query.Drivers.Firebird.Util.html | 832 +++++ docs/classes/Query.Drivers.Mysql.Driver.html | 1954 ++++++++++++ docs/classes/Query.Drivers.Mysql.SQL.html | 1034 +++++++ docs/classes/Query.Drivers.Mysql.Util.html | 832 +++++ .../Query.Drivers.Pdo_firebird.Driver.html | 1954 ++++++++++++ .../Query.Drivers.Pdo_firebird.SQL.html | 1056 +++++++ .../Query.Drivers.Pdo_firebird.Util.html | 834 +++++ docs/classes/Query.Drivers.Pgsql.Driver.html | 1954 ++++++++++++ docs/classes/Query.Drivers.Pgsql.SQL.html | 1026 +++++++ docs/classes/Query.Drivers.Pgsql.Util.html | 832 +++++ docs/classes/Query.Drivers.Sqlite.Driver.html | 1954 ++++++++++++ docs/classes/Query.Drivers.Sqlite.SQL.html | 1026 +++++++ docs/classes/Query.Drivers.Sqlite.Util.html | 904 ++++++ docs/classes/Query.Query_Builder.html | 132 +- .../Query.Query_Builder_Interface.html | 124 +- docs/classes/Query.Query_Parser.html | 130 +- docs/classes/Query.SQL_Interface.html | 1001 ++++++ docs/files/Query.Abstract_Driver.php.html | 427 +++ .../Query.Abstract_Query_Builder.php.html | 124 +- docs/files/Query.Abstract_SQL.php.html | 427 +++ docs/files/Query.Abstract_Util.php.html | 427 +++ .../files/Query.BadDBDriverException.php.html | 124 +- docs/files/Query.Connection_Manager.php.html | 124 +- docs/files/Query.Driver_Interface.php.html | 427 +++ .../Query.Drivers.Firebird.Driver.php.html | 427 +++ .../Query.Drivers.Firebird.Result.php.html | 428 +++ .../files/Query.Drivers.Firebird.SQL.php.html | 427 +++ .../Query.Drivers.Firebird.Util.php.html | 427 +++ .../files/Query.Drivers.Mysql.Driver.php.html | 427 +++ docs/files/Query.Drivers.Mysql.SQL.php.html | 427 +++ docs/files/Query.Drivers.Mysql.Util.php.html | 427 +++ ...Query.Drivers.Pdo_firebird.Driver.php.html | 427 +++ .../Query.Drivers.Pdo_firebird.SQL.php.html | 427 +++ .../Query.Drivers.Pdo_firebird.Util.php.html | 427 +++ .../files/Query.Drivers.Pgsql.Driver.php.html | 427 +++ docs/files/Query.Drivers.Pgsql.SQL.php.html | 427 +++ docs/files/Query.Drivers.Pgsql.Util.php.html | 427 +++ .../Query.Drivers.Sqlite.Driver.php.html | 427 +++ docs/files/Query.Drivers.Sqlite.SQL.php.html | 427 +++ docs/files/Query.Drivers.Sqlite.Util.php.html | 427 +++ docs/files/Query.Query_Builder.php.html | 124 +- .../Query.Query_Builder_Interface.php.html | 124 +- docs/files/Query.Query_Parser.php.html | 124 +- docs/files/Query.SQL_Interface.php.html | 427 +++ docs/files/Query/Abstract_Driver.php.txt | 630 ++++ .../Query/Abstract_Query_Builder.php.txt | 1 - docs/files/Query/Abstract_SQL.php.txt | 47 + docs/files/Query/Abstract_Util.php.txt | 139 + docs/files/Query/Connection_Manager.php.txt | 69 +- docs/files/Query/Driver_Interface.php.txt | 275 ++ .../Query/Drivers/Firebird/Driver.php.txt | 400 +++ .../Query/Drivers/Firebird/Result.php.txt | 299 ++ docs/files/Query/Drivers/Firebird/SQL.php.txt | 319 ++ .../files/Query/Drivers/Firebird/Util.php.txt | 134 + docs/files/Query/Drivers/Mysql/Driver.php.txt | 56 + docs/files/Query/Drivers/Mysql/SQL.php.txt | 234 ++ docs/files/Query/Drivers/Mysql/Util.php.txt | 122 + .../Query/Drivers/Pdo_firebird/Driver.php.txt | 90 + .../Query/Drivers/Pdo_firebird/SQL.php.txt | 25 + .../Query/Drivers/Pdo_firebird/Util.php.txt | 38 + docs/files/Query/Drivers/Pgsql/Driver.php.txt | 89 + docs/files/Query/Drivers/Pgsql/SQL.php.txt | 304 ++ docs/files/Query/Drivers/Pgsql/Util.php.txt | 100 + .../files/Query/Drivers/Sqlite/Driver.php.txt | 143 + docs/files/Query/Drivers/Sqlite/SQL.php.txt | 206 ++ docs/files/Query/Drivers/Sqlite/Util.php.txt | 122 + docs/files/Query/Query_Builder.php.txt | 7 +- docs/files/Query/Query_Parser.php.txt | 6 +- docs/files/Query/SQL_Interface.php.txt | 141 + docs/files/autoload.php.html | 124 +- docs/files/autoload.php.txt | 9 +- docs/files/common.php.html | 132 +- docs/files/common.php.txt | 1 + docs/graphs/class.html | 6 +- docs/graphs/classes.svg | 555 ++-- docs/namespaces/Query.Drivers.Firebird.html | 356 +++ docs/namespaces/Query.Drivers.Mysql.html | 351 +++ .../Query.Drivers.Pdo_firebird.html | 351 +++ docs/namespaces/Query.Drivers.Pgsql.html | 351 +++ docs/namespaces/Query.Drivers.Sqlite.html | 351 +++ docs/namespaces/Query.Drivers.html | 352 +++ docs/namespaces/Query.html | 146 +- docs/namespaces/default.html | 132 +- docs/reports/deprecated.html | 6 +- docs/reports/errors.html | 14 +- docs/reports/markers.html | 18 +- 102 files changed, 43828 insertions(+), 916 deletions(-) create mode 100644 docs/classes/Query.Abstract_Driver.html create mode 100644 docs/classes/Query.Abstract_SQL.html create mode 100644 docs/classes/Query.Abstract_Util.html create mode 100644 docs/classes/Query.Driver_Interface.html create mode 100644 docs/classes/Query.Drivers.Firebird.Driver.html create mode 100644 docs/classes/Query.Drivers.Firebird.Result.html create mode 100644 docs/classes/Query.Drivers.Firebird.SQL.html create mode 100644 docs/classes/Query.Drivers.Firebird.Util.html create mode 100644 docs/classes/Query.Drivers.Mysql.Driver.html create mode 100644 docs/classes/Query.Drivers.Mysql.SQL.html create mode 100644 docs/classes/Query.Drivers.Mysql.Util.html create mode 100644 docs/classes/Query.Drivers.Pdo_firebird.Driver.html create mode 100644 docs/classes/Query.Drivers.Pdo_firebird.SQL.html create mode 100644 docs/classes/Query.Drivers.Pdo_firebird.Util.html create mode 100644 docs/classes/Query.Drivers.Pgsql.Driver.html create mode 100644 docs/classes/Query.Drivers.Pgsql.SQL.html create mode 100644 docs/classes/Query.Drivers.Pgsql.Util.html create mode 100644 docs/classes/Query.Drivers.Sqlite.Driver.html create mode 100644 docs/classes/Query.Drivers.Sqlite.SQL.html create mode 100644 docs/classes/Query.Drivers.Sqlite.Util.html create mode 100644 docs/classes/Query.SQL_Interface.html create mode 100644 docs/files/Query.Abstract_Driver.php.html create mode 100644 docs/files/Query.Abstract_SQL.php.html create mode 100644 docs/files/Query.Abstract_Util.php.html create mode 100644 docs/files/Query.Driver_Interface.php.html create mode 100644 docs/files/Query.Drivers.Firebird.Driver.php.html create mode 100644 docs/files/Query.Drivers.Firebird.Result.php.html create mode 100644 docs/files/Query.Drivers.Firebird.SQL.php.html create mode 100644 docs/files/Query.Drivers.Firebird.Util.php.html create mode 100644 docs/files/Query.Drivers.Mysql.Driver.php.html create mode 100644 docs/files/Query.Drivers.Mysql.SQL.php.html create mode 100644 docs/files/Query.Drivers.Mysql.Util.php.html create mode 100644 docs/files/Query.Drivers.Pdo_firebird.Driver.php.html create mode 100644 docs/files/Query.Drivers.Pdo_firebird.SQL.php.html create mode 100644 docs/files/Query.Drivers.Pdo_firebird.Util.php.html create mode 100644 docs/files/Query.Drivers.Pgsql.Driver.php.html create mode 100644 docs/files/Query.Drivers.Pgsql.SQL.php.html create mode 100644 docs/files/Query.Drivers.Pgsql.Util.php.html create mode 100644 docs/files/Query.Drivers.Sqlite.Driver.php.html create mode 100644 docs/files/Query.Drivers.Sqlite.SQL.php.html create mode 100644 docs/files/Query.Drivers.Sqlite.Util.php.html create mode 100644 docs/files/Query.SQL_Interface.php.html create mode 100644 docs/files/Query/Abstract_Driver.php.txt create mode 100644 docs/files/Query/Abstract_SQL.php.txt create mode 100644 docs/files/Query/Abstract_Util.php.txt create mode 100644 docs/files/Query/Driver_Interface.php.txt create mode 100644 docs/files/Query/Drivers/Firebird/Driver.php.txt create mode 100644 docs/files/Query/Drivers/Firebird/Result.php.txt create mode 100644 docs/files/Query/Drivers/Firebird/SQL.php.txt create mode 100644 docs/files/Query/Drivers/Firebird/Util.php.txt create mode 100644 docs/files/Query/Drivers/Mysql/Driver.php.txt create mode 100644 docs/files/Query/Drivers/Mysql/SQL.php.txt create mode 100644 docs/files/Query/Drivers/Mysql/Util.php.txt create mode 100644 docs/files/Query/Drivers/Pdo_firebird/Driver.php.txt create mode 100644 docs/files/Query/Drivers/Pdo_firebird/SQL.php.txt create mode 100644 docs/files/Query/Drivers/Pdo_firebird/Util.php.txt create mode 100644 docs/files/Query/Drivers/Pgsql/Driver.php.txt create mode 100644 docs/files/Query/Drivers/Pgsql/SQL.php.txt create mode 100644 docs/files/Query/Drivers/Pgsql/Util.php.txt create mode 100644 docs/files/Query/Drivers/Sqlite/Driver.php.txt create mode 100644 docs/files/Query/Drivers/Sqlite/SQL.php.txt create mode 100644 docs/files/Query/Drivers/Sqlite/Util.php.txt create mode 100644 docs/files/Query/SQL_Interface.php.txt create mode 100644 docs/namespaces/Query.Drivers.Firebird.html create mode 100644 docs/namespaces/Query.Drivers.Mysql.html create mode 100644 docs/namespaces/Query.Drivers.Pdo_firebird.html create mode 100644 docs/namespaces/Query.Drivers.Pgsql.html create mode 100644 docs/namespaces/Query.Drivers.Sqlite.html create mode 100644 docs/namespaces/Query.Drivers.html diff --git a/Query/Abstract_Driver.php b/Query/Abstract_Driver.php index 4be2106..0057380 100644 --- a/Query/Abstract_Driver.php +++ b/Query/Abstract_Driver.php @@ -136,7 +136,7 @@ abstract class Abstract_Driver extends \PDO implements Driver_Interface { /** * Get the SQL class for the current driver * - * @return SQL\SQL_Interface + * @return SQL_Interface */ public function get_sql() { @@ -148,7 +148,7 @@ abstract class Abstract_Driver extends \PDO implements Driver_Interface { /** * Get the Util class for the current driver * - * @return Util\Abstract_Util + * @return Abstract_Util */ public function get_util() { diff --git a/Query/Connection_Manager.php b/Query/Connection_Manager.php index 134c78d..f1f280d 100644 --- a/Query/Connection_Manager.php +++ b/Query/Connection_Manager.php @@ -157,7 +157,7 @@ final class Connection_Manager { /** * Parses params into a dsn and option array * - * @param \stdClass $set_params + * @param \stdClass $params * @return array * @throws BadDBDriverException */ @@ -186,6 +186,10 @@ final class Connection_Manager { { $dsn = "{$params->host}:{$params->file}"; } + else if(strtolower($dbtype === 'sqlite')) + { + $dsn = $params->file; + } else { $dsn = $this->create_dsn($dbtype, $params); @@ -206,39 +210,32 @@ final class Connection_Manager { */ private function create_dsn($dbtype, \stdClass $params) { - if ($dbtype === 'sqlite') + if (strtolower($dbtype) === 'pdo_firebird') $dbtype = 'firebird'; + + $dsn = strtolower($dbtype) . ':'; + + if ( ! empty($params->database)) { - $dsn = $params->file; + $dsn .= "dbname={$params->database}"; } - else + + $skip = array( + 'name' => 'name', + 'pass' => 'pass', + 'user' => 'user', + 'file' => 'file', + 'type' => 'type', + 'prefix' => 'prefix', + 'options' => 'options', + 'database' => 'database', + 'alias' => 'alias' + ); + + foreach($params as $key => $val) { - if (strtolower($dbtype) === 'pdo_firebird') $dbtype = 'firebird'; - - $dsn = strtolower($dbtype) . ':'; - - if ( ! empty($params->database)) + if (( ! array_key_exists($key, $skip)) && ! empty($val)) { - $dsn .= "dbname={$params->database}"; - } - - $skip = array( - 'name' => 'name', - 'pass' => 'pass', - 'user' => 'user', - 'file' => 'file', - 'type' => 'type', - 'prefix' => 'prefix', - 'options' => 'options', - 'database' => 'database', - 'alias' => 'alias' - ); - - foreach($params as $key => $val) - { - if (( ! array_key_exists($key, $skip)) && ! empty($val)) - { - $dsn .= ";{$key}={$val}"; - } + $dsn .= ";{$key}={$val}"; } } diff --git a/Query/Drivers/Firebird/Result.php b/Query/Drivers/Firebird/Result.php index 89f14f2..5ba7ea9 100644 --- a/Query/Drivers/Firebird/Result.php +++ b/Query/Drivers/Firebird/Result.php @@ -57,7 +57,7 @@ class Result extends \PDOStatement { * the query * * @param resource $link - * @param \Query\Driver\Firebird|null $db + * @param Driver|null $db * @return void */ public function __construct($link, Driver $db = NULL) diff --git a/Query/Query_Builder.php b/Query/Query_Builder.php index e850f00..6c06cd1 100644 --- a/Query/Query_Builder.php +++ b/Query/Query_Builder.php @@ -163,13 +163,13 @@ class Query_Builder extends Abstract_Query_Builder implements Query_Builder_Inte /** * Alias to driver util class - * @var \Query\Driver\Util\Abstract_Util + * @var Abstract_Util */ public $util; /** * Alias to driver sql class - * @var \Query\Driver\SQL\SQL_Interface + * @var SQL_Interface */ public $sql; @@ -211,7 +211,7 @@ class Query_Builder extends Abstract_Query_Builder implements Query_Builder_Inte /** * Constructor * - * @param \Query\Driver\Driver_Interface $db + * @param Driver_Interface $db * @param Query_Parser $parser */ public function __construct(Driver_Interface $db, Query_Parser $parser) diff --git a/Query/Query_Parser.php b/Query/Query_Parser.php index fa66afc..69894d0 100644 --- a/Query/Query_Parser.php +++ b/Query/Query_Parser.php @@ -26,7 +26,7 @@ class Query_Parser { /** * DB Driver * - * @var \Query\Driver\Driver_Interface + * @var Driver_Interface */ private $db; diff --git a/common.php b/common.php index 5e3e163..d446354 100644 --- a/common.php +++ b/common.php @@ -26,6 +26,7 @@ if ( ! function_exists('do_include')) * Bulk directory loading workaround for use * with array_map and glob * + * @codeCoverageIgnore * @param string $path * @return void */ diff --git a/docs/classes/Query.Abstract_Driver.html b/docs/classes/Query.Abstract_Driver.html new file mode 100644 index 0000000..f7d9aff --- /dev/null +++ b/docs/classes/Query.Abstract_Driver.html @@ -0,0 +1,1879 @@ + + + + + + Query + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + + +

\QueryAbstract_Driver

+

Base Database class

+

Extends PDO to simplify cross-database issues

+ +
+

Summary

+
+
+ Methods +
+
+ Properties +
+
+ Constants +
+
+
+
+ __construct()
+ __call()
+ get_sql()
+ get_util()
+ prepare_query()
+ prepare_execute()
+ affected_rows()
+ prefix_table()
+ quote_table()
+ quote_ident()
+ get_schemas()
+ get_tables()
+ get_dbs()
+ get_views()
+ get_sequences()
+ get_functions()
+ get_procedures()
+ get_triggers()
+ get_system_tables()
+ get_columns()
+ get_fks()
+ get_indexes()
+ get_types()
+ driver_query()
+ num_rows()
+ insert_batch()
+ _quote()
+ truncate()
+
+
+ $util
+ $last_query
+ $table_prefix
+
+
+ No constants found +
+
+
+
+ _load_sub_classes()
+ _prefix()
+
+
+ $statement
+ $escape_char
+ $sql
+ $has_truncate
+
+
+ N/A +
+
+
+
+ No private methods found +
+
+ No private properties found +
+
+ N/A +
+
+
+
+ +
+ + + +
+
+

Properties

+
+ +
+ +
+
+ +
+

$util

+
$util : \Query\Abstract_Util
+

Reference to util class

+ + +

Type

+ \Query\Abstract_Util +
+
+ +
+ +
+
+ +
+

$last_query

+
$last_query : string
+

Last query executed

+ + +

Type

+ string +
+
+ +
+ +
+
+ +
+

$table_prefix

+
$table_prefix : string
+

Prefix to apply to table names

+ + +

Type

+ string +
+
+ +
+ +
+
+ +
+

$statement

+
$statement : \PDOStatement
+

Reference to the last executed query

+ + +

Type

+ \PDOStatement +
+
+ +
+ +
+
+ +
+

$escape_char

+
$escape_char : string
+

Character to escape identifiers

+ + +

Type

+ string +
+
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+

$has_truncate

+
$has_truncate : bool
+

Whether the driver supports 'TRUNCATE'

+ + +

Type

+ bool +
+
+ +
+ + + +
+

Methods

+ +
+ +
+
+ +
+

__construct()

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

PDO constructor wrapper

+ + +

Parameters

+ + + + + + + + + + + + + + + + + + + + + +
string$dsn
string$username
string$password
array$driver_options
+ + +
+
+ +
+ +
+
+ +
+

__call()

+ +
__call(string $name, array $args) : mixed
+

Allow invoke to work on table object

+ + +

Parameters

+ + + + + + + + + + + +
string$name
array$args
+ + +

Returns

+ mixed +
+
+ +
+ +
+
+ +
+

get_sql()

+ +
get_sql() : \Query\SQL_Interface
+

Get the SQL class for the current driver

+ + + + +

Returns

+ \Query\SQL_Interface +
+
+ +
+ +
+
+ +
+

get_util()

+ +
get_util() : \Query\Abstract_Util
+

Get the Util class for the current driver

+ + + + +

Returns

+ \Query\Abstract_Util +
+
+ +
+ +
+
+ +
+

prepare_query()

+ +
prepare_query(string $sql, array $data) : \PDOStatement
+

Simplifies prepared statements for database queries

+ + +

Parameters

+ + + + + + + + + + + +
string$sql
array$data
+ +

Throws

+
+
\InvalidArgumentException
+
+
+ +

Returns

+ \PDOStatement + —

| FALSE

+
+
+ +
+ +
+
+ +
+

prepare_execute()

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

Create and execute a prepared statement with the provided parameters

+ + +

Parameters

+ + + + + + + + + + + +
string$sql
array$params
+ + +

Returns

+ \PDOStatement +
+
+ +
+ +
+
+ +
+

affected_rows()

+ +
affected_rows() : int
+

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

+ + + + +

Returns

+ int +
+
+ +
+ +
+
+ +
+

prefix_table()

+ +
prefix_table(string $table) : string
+

Prefixes a table if it is not already prefixed

+ + +

Parameters

+ + + + + + +
string$table
+ + +

Returns

+ string +
+
+ +
+ +
+
+ +
+

quote_table()

+ +
quote_table(string $table) : string
+

Quote database table name, and set prefix

+ + +

Parameters

+ + + + + + +
string$table
+ + +

Returns

+ string +
+
+ +
+ +
+
+ +
+

quote_ident()

+ +
quote_ident(mixed $ident) : string
+

Surrounds the string with the databases identifier escape characters

+ + +

Parameters

+ + + + + + +
mixed$ident
+ + +

Returns

+ string +
+
+ +
+ +
+
+ +
+

get_schemas()

+ +
get_schemas() : array
+

Return schemas for databases that list them

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_tables()

+ +
get_tables() : array
+

Return list of tables for the current database

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_dbs()

+ +
get_dbs() : array
+

Return list of dbs for the current connection, if possible

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_views()

+ +
get_views() : array
+

Return list of views for the current database

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_sequences()

+ +
get_sequences() : array
+

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

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_functions()

+ +
get_functions() : array
+

Return list of functions for the current database

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_procedures()

+ +
get_procedures() : array
+

Return list of stored procedures for the current database

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_triggers()

+ +
get_triggers() : array
+

Return list of triggers for the current database

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_system_tables()

+ +
get_system_tables() : array
+

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

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_columns()

+ +
get_columns(string $table) : array
+

Retrieve column information for the current database table

+ + +

Parameters

+ + + + + + +
string$table
+ + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_fks()

+ +
get_fks(string $table) : array
+

Retrieve foreign keys for the table

+ + +

Parameters

+ + + + + + +
string$table
+ + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_indexes()

+ +
get_indexes(string $table) : array
+

Retrieve indexes for the table

+ + +

Parameters

+ + + + + + +
string$table
+ + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

get_types()

+ +
get_types() : array
+

Retrieve list of data types for the database

+ + + + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

driver_query()

+ +
driver_query(string|array|null $query, bool $filtered_index) : array
+

Method to simplify retrieving db results for meta-data queries

+ + +

Parameters

+ + + + + + + + + + + +
string|array|null$query
bool$filtered_index
+ + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

num_rows()

+ +
num_rows() : int
+

Return the number of rows returned for a SELECT query

+ + + + +

Returns

+ int +
+
+ +
+ +
+
+ +
+

insert_batch()

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

Create sql for batch insert

+ + +

Parameters

+ + + + + + + + + + + +
string$table
array$data
+ + +

Returns

+ array +
+
+ +
+ +
+
+ +
+

_quote()

+ +
_quote(mixed $str) : mixed
+

Helper method for quote_ident

+ + +

Parameters

+ + + + + + +
mixed$str
+ + +

Returns

+ mixed +
+
+ +
+ +
+
+ +
+

truncate()

+ +
truncate(string $table) : \PDOStatement
+

Empty the passed table

+ + +

Parameters

+ + + + + + +
string$table
+ + +

Returns

+ \PDOStatement +
+
+ +
+ +
+
+ +
+

_load_sub_classes()

+ +
_load_sub_classes() : void
+

Loads the subclasses for the driver

+ + + + +
+
+ +
+ +
+
+ +
+

_prefix()

+ +
_prefix(string $str) : string
+

Sets the table prefix on the passed string

+ + +

Parameters

+ + + + + + +
string$str
+ + +

Returns

+ string +
+
+ +
+ +
+
+ + + + +
+ + + diff --git a/docs/classes/Query.Abstract_Query_Builder.html b/docs/classes/Query.Abstract_Query_Builder.html index 38c4d64..8c77754 100644 --- a/docs/classes/Query.Abstract_Query_Builder.html +++ b/docs/classes/Query.Abstract_Query_Builder.html @@ -114,12 +114,12 @@ @@ -139,46 +139,45 @@
- + \
-
+
- + Query
-
+
- - Driver + + Drivers
-
+
- - Util + + Firebird
-
+ @@ -188,20 +187,77 @@
+ +
+
+
+ + Pgsql +
+
+
+ + + +
+
+
+
+ +
+
+
+ + Sqlite +
+
+
+ + + +
+
+
+
+ +
+
+
+ + Pdo_firebird +
+
+
+ + +
@@ -210,14 +266,7 @@ +
@@ -226,11 +275,16 @@
@@ -536,12 +590,12 @@