From aeab1a31ecb25282d57d0c6b14a9550b074076ee Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 29 Jul 2015 16:45:55 -0400 Subject: [PATCH] Update docs --- docs/classes/Query.Abstract_Driver.html | 112 +- .../classes/Query.Abstract_Query_Builder.html | 112 +- docs/classes/Query.Abstract_SQL.html | 112 +- docs/classes/Query.Abstract_Util.html | 112 +- docs/classes/Query.BadDBDriverException.html | 112 +- docs/classes/Query.Connection_Manager.html | 112 +- .../classes/Query.Driver.Abstract_Driver.html | 1825 ------------ .../Query.Driver.Driver_Interface.html | 1632 ---------- docs/classes/Query.Driver.Firebird.html | 2622 ----------------- .../classes/Query.Driver.Firebird_Result.html | 1106 ------- docs/classes/Query.Driver.MySQL.html | 1900 ------------ docs/classes/Query.Driver.PgSQL.html | 1900 ------------ .../Query.Driver.SQL.Abstract_SQL.html | 460 --- .../Query.Driver.SQL.Firebird_SQL.html | 972 ------ docs/classes/Query.Driver.SQL.MySQL_SQL.html | 980 ------ docs/classes/Query.Driver.SQL.PgSQL_SQL.html | 972 ------ .../Query.Driver.SQL.SQL_Interface.html | 947 ------ docs/classes/Query.Driver.SQL.SQLite_SQL.html | 972 ------ docs/classes/Query.Driver.SQLite.html | 1900 ------------ .../Query.Driver.Util.Abstract_Util.html | 759 ----- .../Query.Driver.Util.Firebird_Util.html | 778 ----- .../classes/Query.Driver.Util.MySQL_Util.html | 778 ----- .../classes/Query.Driver.Util.PgSQL_Util.html | 778 ----- .../Query.Driver.Util.SQLite_Util.html | 850 ------ docs/classes/Query.Driver_Interface.html | 112 +- .../Query.Drivers.Firebird.Driver.html | 112 +- .../Query.Drivers.Firebird.Result.html | 112 +- docs/classes/Query.Drivers.Firebird.SQL.html | 112 +- docs/classes/Query.Drivers.Firebird.Util.html | 112 +- docs/classes/Query.Drivers.Mysql.Driver.html | 112 +- docs/classes/Query.Drivers.Mysql.SQL.html | 112 +- docs/classes/Query.Drivers.Mysql.Util.html | 112 +- .../Query.Drivers.Pdo_firebird.Driver.html | 112 +- .../Query.Drivers.Pdo_firebird.SQL.html | 112 +- .../Query.Drivers.Pdo_firebird.Util.html | 112 +- docs/classes/Query.Drivers.Pgsql.Driver.html | 112 +- docs/classes/Query.Drivers.Pgsql.SQL.html | 112 +- docs/classes/Query.Drivers.Pgsql.Util.html | 112 +- docs/classes/Query.Drivers.Sqlite.Driver.html | 112 +- docs/classes/Query.Drivers.Sqlite.SQL.html | 112 +- docs/classes/Query.Drivers.Sqlite.Util.html | 112 +- docs/classes/Query.Query_Builder.html | 112 +- .../Query.Query_Builder_Interface.html | 112 +- docs/classes/Query.Query_Parser.html | 112 +- docs/classes/Query.SQL_Interface.html | 112 +- .../Query.Driver.Abstract_Driver.php.html | 373 --- .../Query.Driver.Driver_Interface.php.html | 373 --- .../Query.Driver.SQL.Abstract_SQL.php.html | 373 --- .../Query.Driver.SQL.SQL_Interface.php.html | 373 --- .../Query.Driver.Util.Abstract_Util.php.html | 373 --- .../Query/Driver/Abstract_Driver.php.txt | 630 ---- .../Query/Driver/Driver_Interface.php.txt | 275 -- .../Query/Driver/SQL/Abstract_SQL.php.txt | 47 - .../Query/Driver/SQL/SQL_Interface.php.txt | 141 - .../Query/Driver/Util/Abstract_Util.php.txt | 140 - docs/files/autoload.php.html | 108 +- docs/files/autoload.php.txt | 21 +- docs/files/common.php.html | 857 ------ docs/files/common.php.txt | 228 -- .../drivers.firebird.firebird_driver.php.html | 373 --- .../drivers.firebird.firebird_result.php.html | 374 --- .../drivers.firebird.firebird_sql.php.html | 373 --- .../drivers.firebird.firebird_util.php.html | 373 --- .../files/drivers.mysql.mysql_driver.php.html | 373 --- docs/files/drivers.mysql.mysql_sql.php.html | 373 --- docs/files/drivers.mysql.mysql_util.php.html | 373 --- .../files/drivers.pgsql.pgsql_driver.php.html | 373 --- docs/files/drivers.pgsql.pgsql_sql.php.html | 373 --- docs/files/drivers.pgsql.pgsql_util.php.html | 373 --- .../drivers.sqlite.sqlite_driver.php.html | 373 --- docs/files/drivers.sqlite.sqlite_sql.php.html | 373 --- .../files/drivers.sqlite.sqlite_util.php.html | 373 --- .../drivers/firebird/firebird_driver.php.txt | 401 --- .../drivers/firebird/firebird_result.php.txt | 299 -- .../drivers/firebird/firebird_sql.php.txt | 319 -- .../drivers/firebird/firebird_util.php.txt | 134 - docs/files/drivers/mysql/mysql_driver.php.txt | 56 - docs/files/drivers/mysql/mysql_sql.php.txt | 234 -- docs/files/drivers/mysql/mysql_util.php.txt | 122 - docs/files/drivers/pgsql/pgsql_driver.php.txt | 89 - docs/files/drivers/pgsql/pgsql_sql.php.txt | 304 -- docs/files/drivers/pgsql/pgsql_util.php.txt | 100 - .../drivers/sqlite/sqlite_driver.php.txt | 143 - docs/files/drivers/sqlite/sqlite_sql.php.txt | 206 -- docs/files/drivers/sqlite/sqlite_util.php.txt | 122 - ...tml => src.Query.Abstract_Driver.php.html} | 112 +- ...src.Query.Abstract_Query_Builder.php.html} | 112 +- ...p.html => src.Query.Abstract_SQL.php.html} | 112 +- ....html => src.Query.Abstract_Util.php.html} | 112 +- ...> src.Query.BadDBDriverException.php.html} | 112 +- ... => src.Query.Connection_Manager.php.html} | 112 +- ...ml => src.Query.Driver_Interface.php.html} | 112 +- ...rc.Query.Drivers.Firebird.Driver.php.html} | 112 +- ...rc.Query.Drivers.Firebird.Result.php.html} | 112 +- ...> src.Query.Drivers.Firebird.SQL.php.html} | 114 +- ... src.Query.Drivers.Firebird.Util.php.html} | 114 +- ...> src.Query.Drivers.Mysql.Driver.php.html} | 112 +- ...l => src.Query.Drivers.Mysql.SQL.php.html} | 112 +- ... => src.Query.Drivers.Mysql.Util.php.html} | 112 +- ...uery.Drivers.Pdo_firebird.Driver.php.html} | 112 +- ...c.Query.Drivers.Pdo_firebird.SQL.php.html} | 114 +- ....Query.Drivers.Pdo_firebird.Util.php.html} | 114 +- ...> src.Query.Drivers.Pgsql.Driver.php.html} | 112 +- ...l => src.Query.Drivers.Pgsql.SQL.php.html} | 112 +- ... => src.Query.Drivers.Pgsql.Util.php.html} | 112 +- ... src.Query.Drivers.Sqlite.Driver.php.html} | 112 +- ... => src.Query.Drivers.Sqlite.SQL.php.html} | 112 +- ...=> src.Query.Drivers.Sqlite.Util.php.html} | 112 +- ....html => src.Query.Query_Builder.php.html} | 112 +- ...rc.Query.Query_Builder_Interface.php.html} | 112 +- ...p.html => src.Query.Query_Parser.php.html} | 112 +- ....html => src.Query.SQL_Interface.php.html} | 112 +- .../{ => src}/Query/Abstract_Driver.php.txt | 0 .../Query/Abstract_Query_Builder.php.txt | 0 .../{ => src}/Query/Abstract_SQL.php.txt | 0 .../{ => src}/Query/Abstract_Util.php.txt | 0 .../Query/BadDBDriverException.php.txt | 0 .../Query/Connection_Manager.php.txt | 6 +- .../{ => src}/Query/Driver_Interface.php.txt | 0 .../Query/Drivers/Firebird/Driver.php.txt | 0 .../Query/Drivers/Firebird/Result.php.txt | 0 .../Query/Drivers/Firebird/SQL.php.txt | 0 .../Query/Drivers/Firebird/Util.php.txt | 0 .../Query/Drivers/Mysql/Driver.php.txt | 0 .../{ => src}/Query/Drivers/Mysql/SQL.php.txt | 0 .../Query/Drivers/Mysql/Util.php.txt | 0 .../Query/Drivers/Pdo_firebird/Driver.php.txt | 0 .../Query/Drivers/Pdo_firebird/SQL.php.txt | 0 .../Query/Drivers/Pdo_firebird/Util.php.txt | 0 .../Query/Drivers/Pgsql/Driver.php.txt | 0 .../{ => src}/Query/Drivers/Pgsql/SQL.php.txt | 0 .../Query/Drivers/Pgsql/Util.php.txt | 0 .../Query/Drivers/Sqlite/Driver.php.txt | 0 .../Query/Drivers/Sqlite/SQL.php.txt | 0 .../Query/Drivers/Sqlite/Util.php.txt | 0 .../{ => src}/Query/Query_Builder.php.txt | 0 .../Query/Query_Builder_Interface.php.txt | 0 .../{ => src}/Query/Query_Parser.php.txt | 0 .../{ => src}/Query/SQL_Interface.php.txt | 0 docs/graphs/class.html | 6 +- docs/graphs/classes.svg | 344 +-- docs/namespaces/Query.Driver.SQL.html | 312 -- docs/namespaces/Query.Driver.Util.html | 305 -- docs/namespaces/Query.Driver.html | 324 -- docs/namespaces/Query.Drivers.Firebird.html | 120 +- docs/namespaces/Query.Drivers.Mysql.html | 116 +- .../Query.Drivers.Pdo_firebird.html | 116 +- docs/namespaces/Query.Drivers.Pgsql.html | 108 +- docs/namespaces/Query.Drivers.Sqlite.html | 108 +- docs/namespaces/Query.Drivers.html | 118 +- docs/namespaces/Query.html | 142 +- docs/namespaces/default.html | 547 +--- docs/reports/deprecated.html | 6 +- docs/reports/errors.html | 10 +- docs/reports/markers.html | 18 +- 155 files changed, 3747 insertions(+), 38837 deletions(-) delete mode 100644 docs/classes/Query.Driver.Abstract_Driver.html delete mode 100644 docs/classes/Query.Driver.Driver_Interface.html delete mode 100644 docs/classes/Query.Driver.Firebird.html delete mode 100644 docs/classes/Query.Driver.Firebird_Result.html delete mode 100644 docs/classes/Query.Driver.MySQL.html delete mode 100644 docs/classes/Query.Driver.PgSQL.html delete mode 100644 docs/classes/Query.Driver.SQL.Abstract_SQL.html delete mode 100644 docs/classes/Query.Driver.SQL.Firebird_SQL.html delete mode 100644 docs/classes/Query.Driver.SQL.MySQL_SQL.html delete mode 100644 docs/classes/Query.Driver.SQL.PgSQL_SQL.html delete mode 100644 docs/classes/Query.Driver.SQL.SQL_Interface.html delete mode 100644 docs/classes/Query.Driver.SQL.SQLite_SQL.html delete mode 100644 docs/classes/Query.Driver.SQLite.html delete mode 100644 docs/classes/Query.Driver.Util.Abstract_Util.html delete mode 100644 docs/classes/Query.Driver.Util.Firebird_Util.html delete mode 100644 docs/classes/Query.Driver.Util.MySQL_Util.html delete mode 100644 docs/classes/Query.Driver.Util.PgSQL_Util.html delete mode 100644 docs/classes/Query.Driver.Util.SQLite_Util.html delete mode 100644 docs/files/Query.Driver.Abstract_Driver.php.html delete mode 100644 docs/files/Query.Driver.Driver_Interface.php.html delete mode 100644 docs/files/Query.Driver.SQL.Abstract_SQL.php.html delete mode 100644 docs/files/Query.Driver.SQL.SQL_Interface.php.html delete mode 100644 docs/files/Query.Driver.Util.Abstract_Util.php.html delete mode 100644 docs/files/Query/Driver/Abstract_Driver.php.txt delete mode 100644 docs/files/Query/Driver/Driver_Interface.php.txt delete mode 100644 docs/files/Query/Driver/SQL/Abstract_SQL.php.txt delete mode 100644 docs/files/Query/Driver/SQL/SQL_Interface.php.txt delete mode 100644 docs/files/Query/Driver/Util/Abstract_Util.php.txt delete mode 100644 docs/files/common.php.html delete mode 100644 docs/files/common.php.txt delete mode 100644 docs/files/drivers.firebird.firebird_driver.php.html delete mode 100644 docs/files/drivers.firebird.firebird_result.php.html delete mode 100644 docs/files/drivers.firebird.firebird_sql.php.html delete mode 100644 docs/files/drivers.firebird.firebird_util.php.html delete mode 100644 docs/files/drivers.mysql.mysql_driver.php.html delete mode 100644 docs/files/drivers.mysql.mysql_sql.php.html delete mode 100644 docs/files/drivers.mysql.mysql_util.php.html delete mode 100644 docs/files/drivers.pgsql.pgsql_driver.php.html delete mode 100644 docs/files/drivers.pgsql.pgsql_sql.php.html delete mode 100644 docs/files/drivers.pgsql.pgsql_util.php.html delete mode 100644 docs/files/drivers.sqlite.sqlite_driver.php.html delete mode 100644 docs/files/drivers.sqlite.sqlite_sql.php.html delete mode 100644 docs/files/drivers.sqlite.sqlite_util.php.html delete mode 100644 docs/files/drivers/firebird/firebird_driver.php.txt delete mode 100644 docs/files/drivers/firebird/firebird_result.php.txt delete mode 100644 docs/files/drivers/firebird/firebird_sql.php.txt delete mode 100644 docs/files/drivers/firebird/firebird_util.php.txt delete mode 100644 docs/files/drivers/mysql/mysql_driver.php.txt delete mode 100644 docs/files/drivers/mysql/mysql_sql.php.txt delete mode 100644 docs/files/drivers/mysql/mysql_util.php.txt delete mode 100644 docs/files/drivers/pgsql/pgsql_driver.php.txt delete mode 100644 docs/files/drivers/pgsql/pgsql_sql.php.txt delete mode 100644 docs/files/drivers/pgsql/pgsql_util.php.txt delete mode 100644 docs/files/drivers/sqlite/sqlite_driver.php.txt delete mode 100644 docs/files/drivers/sqlite/sqlite_sql.php.txt delete mode 100644 docs/files/drivers/sqlite/sqlite_util.php.txt rename docs/files/{Query.Abstract_Driver.php.html => src.Query.Abstract_Driver.php.html} (91%) rename docs/files/{Query.Abstract_Query_Builder.php.html => src.Query.Abstract_Query_Builder.php.html} (91%) rename docs/files/{Query.Abstract_SQL.php.html => src.Query.Abstract_SQL.php.html} (91%) rename docs/files/{Query.Abstract_Util.php.html => src.Query.Abstract_Util.php.html} (91%) rename docs/files/{Query.BadDBDriverException.php.html => src.Query.BadDBDriverException.php.html} (91%) rename docs/files/{Query.Connection_Manager.php.html => src.Query.Connection_Manager.php.html} (91%) rename docs/files/{Query.Driver_Interface.php.html => src.Query.Driver_Interface.php.html} (91%) rename docs/files/{Query.Drivers.Firebird.Driver.php.html => src.Query.Drivers.Firebird.Driver.php.html} (91%) rename docs/files/{Query.Drivers.Firebird.Result.php.html => src.Query.Drivers.Firebird.Result.php.html} (91%) rename docs/files/{Query.Drivers.Pdo_firebird.SQL.php.html => src.Query.Drivers.Firebird.SQL.php.html} (91%) rename docs/files/{Query.Drivers.Pdo_firebird.Util.php.html => src.Query.Drivers.Firebird.Util.php.html} (91%) rename docs/files/{Query.Drivers.Mysql.Driver.php.html => src.Query.Drivers.Mysql.Driver.php.html} (91%) rename docs/files/{Query.Drivers.Mysql.SQL.php.html => src.Query.Drivers.Mysql.SQL.php.html} (91%) rename docs/files/{Query.Drivers.Mysql.Util.php.html => src.Query.Drivers.Mysql.Util.php.html} (91%) rename docs/files/{Query.Drivers.Pdo_firebird.Driver.php.html => src.Query.Drivers.Pdo_firebird.Driver.php.html} (91%) rename docs/files/{Query.Drivers.Firebird.SQL.php.html => src.Query.Drivers.Pdo_firebird.SQL.php.html} (91%) rename docs/files/{Query.Drivers.Firebird.Util.php.html => src.Query.Drivers.Pdo_firebird.Util.php.html} (91%) rename docs/files/{Query.Drivers.Pgsql.Driver.php.html => src.Query.Drivers.Pgsql.Driver.php.html} (91%) rename docs/files/{Query.Drivers.Pgsql.SQL.php.html => src.Query.Drivers.Pgsql.SQL.php.html} (91%) rename docs/files/{Query.Drivers.Pgsql.Util.php.html => src.Query.Drivers.Pgsql.Util.php.html} (91%) rename docs/files/{Query.Drivers.Sqlite.Driver.php.html => src.Query.Drivers.Sqlite.Driver.php.html} (91%) rename docs/files/{Query.Drivers.Sqlite.SQL.php.html => src.Query.Drivers.Sqlite.SQL.php.html} (91%) rename docs/files/{Query.Drivers.Sqlite.Util.php.html => src.Query.Drivers.Sqlite.Util.php.html} (91%) rename docs/files/{Query.Query_Builder.php.html => src.Query.Query_Builder.php.html} (91%) rename docs/files/{Query.Query_Builder_Interface.php.html => src.Query.Query_Builder_Interface.php.html} (91%) rename docs/files/{Query.Query_Parser.php.html => src.Query.Query_Parser.php.html} (91%) rename docs/files/{Query.SQL_Interface.php.html => src.Query.SQL_Interface.php.html} (91%) rename docs/files/{ => src}/Query/Abstract_Driver.php.txt (100%) rename docs/files/{ => src}/Query/Abstract_Query_Builder.php.txt (100%) rename docs/files/{ => src}/Query/Abstract_SQL.php.txt (100%) rename docs/files/{ => src}/Query/Abstract_Util.php.txt (100%) rename docs/files/{ => src}/Query/BadDBDriverException.php.txt (100%) rename docs/files/{ => src}/Query/Connection_Manager.php.txt (97%) rename docs/files/{ => src}/Query/Driver_Interface.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Firebird/Driver.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Firebird/Result.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Firebird/SQL.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Firebird/Util.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Mysql/Driver.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Mysql/SQL.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Mysql/Util.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Pdo_firebird/Driver.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Pdo_firebird/SQL.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Pdo_firebird/Util.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Pgsql/Driver.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Pgsql/SQL.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Pgsql/Util.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Sqlite/Driver.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Sqlite/SQL.php.txt (100%) rename docs/files/{ => src}/Query/Drivers/Sqlite/Util.php.txt (100%) rename docs/files/{ => src}/Query/Query_Builder.php.txt (100%) rename docs/files/{ => src}/Query/Query_Builder_Interface.php.txt (100%) rename docs/files/{ => src}/Query/Query_Parser.php.txt (100%) rename docs/files/{ => src}/Query/SQL_Interface.php.txt (100%) delete mode 100644 docs/namespaces/Query.Driver.SQL.html delete mode 100644 docs/namespaces/Query.Driver.Util.html delete mode 100644 docs/namespaces/Query.Driver.html diff --git a/docs/classes/Query.Abstract_Driver.html b/docs/classes/Query.Abstract_Driver.html index 98257f7..d9897de 100644 --- a/docs/classes/Query.Abstract_Driver.html +++ b/docs/classes/Query.Abstract_Driver.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -401,7 +401,7 @@
File
-
Query/Abstract_Driver.php
+
src/Query/Abstract_Driver.php
Package
\Query\Drivers\Drivers
Class hierarchy
@@ -1827,7 +1827,7 @@ the connection/database

Abstract_Driver.php

@@ -1868,7 +1868,7 @@ the connection/database


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Abstract_Query_Builder.html b/docs/classes/Query.Abstract_Query_Builder.html index 6ff9f28..51f5c9d 100644 --- a/docs/classes/Query.Abstract_Query_Builder.html +++ b/docs/classes/Query.Abstract_Query_Builder.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1886,7 +1886,7 @@ array(


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Abstract_SQL.html b/docs/classes/Query.Abstract_SQL.html index bf60c5a..4380ddc 100644 --- a/docs/classes/Query.Abstract_SQL.html +++ b/docs/classes/Query.Abstract_SQL.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -503,7 +503,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Abstract_Util.html b/docs/classes/Query.Abstract_Util.html index ce1229a..9b0f712 100644 --- a/docs/classes/Query.Abstract_Util.html +++ b/docs/classes/Query.Abstract_Util.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -802,7 +802,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.BadDBDriverException.html b/docs/classes/Query.BadDBDriverException.html index a28f10f..dcecac4 100644 --- a/docs/classes/Query.BadDBDriverException.html +++ b/docs/classes/Query.BadDBDriverException.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -447,7 +447,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Connection_Manager.html b/docs/classes/Query.Connection_Manager.html index 01abb89..f96415c 100644 --- a/docs/classes/Query.Connection_Manager.html +++ b/docs/classes/Query.Connection_Manager.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -376,7 +376,7 @@ Query method

File
-
Query/Connection_Manager.php
+
src/Query/Connection_Manager.php
Package
\Query\Core\Core
Class hierarchy
@@ -830,7 +830,7 @@ Query method

Connection_Manager.php

@@ -871,7 +871,7 @@ Query method


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Driver.Abstract_Driver.html b/docs/classes/Query.Driver.Abstract_Driver.html deleted file mode 100644 index 452d90a..0000000 --- a/docs/classes/Query.Driver.Abstract_Driver.html +++ /dev/null @@ -1,1825 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\DriverAbstract_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()
-
-
- $sql
- $util
- $last_query
- $table_prefix
-
-
- No constants found -
-
-
-
- _load_sub_classes()
- _prefix()
-
-
- $statement
- $escape_char
- $has_truncate
-
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- - -
- -
- -
-
- - -
- -
- -
-
- -
-

$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\Driver\SQL\SQL_Interface
-

Get the SQL class for the current driver

- - - - -

Returns

- \Query\Driver\SQL\SQL_Interface -
-
- -
- -
-
- -
-

get_util()

- -
get_util() : \Query\Driver\Util\Abstract_Util
-

Get the Util class for the current driver

- - - - -

Returns

- \Query\Driver\Util\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.Driver.Driver_Interface.html b/docs/classes/Query.Driver.Driver_Interface.html deleted file mode 100644 index 14ce3ce..0000000 --- a/docs/classes/Query.Driver.Driver_Interface.html +++ /dev/null @@ -1,1632 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\DriverDriver_Interface

-

PDO Interface to implement for database drivers

- - -
-

Summary

-
-
- Methods -
-
- Constants -
-
-
-
- __construct()
- prepare_query()
- beginTransaction()
- commit()
- errorCode()
- errorInfo()
- exec()
- getAttribute()
- rollback()
- setAttribute()
- get_columns()
- get_types()
- get_indexes()
- get_fks()
- get_tables()
- get_system_tables()
- get_dbs()
- get_views()
- get_sequences()
- get_functions()
- get_procedures()
- get_triggers()
- quote_ident()
- quote_table()
- prepare_execute()
- get_sql()
- get_util()
- driver_query()
- affected_rows()
- num_rows()
- prefix_table()
- insert_batch()
-
-
- No constants found -
-
-
-
- No protected methods found -
-
- N/A -
-
-
-
- No private methods found -
-
- N/A -
-
-
-
- -
- - -
-
-

Methods

-
- -
- -
-
- -
-

__construct()

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

Constructor/Connection method

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$dsn
string$username
string$password
array$driver_options
- - -
-
- -
- -
-
- -
-

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

-
-
- -
- -
-
- -
-

beginTransaction()

- -
beginTransaction() : bool
-

Begin a transaction

- - - - -

Returns

- bool -
-
- -
- -
-
- -
-

commit()

- -
commit() : bool
-

Commit a transaction

- - - - -

Returns

- bool -
-
- -
- -
-
- -
-

errorCode()

- -
errorCode() : mixed
-

Return the current error code

- - - - -

Returns

- mixed -
-
- -
- -
-
- -
-

errorInfo()

- -
errorInfo() : array
-

Return information about the current error

- - - - -

Returns

- array -
-
- -
- -
-
- -
-

exec()

- -
exec(string $statement) : int
-

Execute an SQL statement and return the number of affected rows

- - -

Parameters

- - - - - - -
string$statement
- - -

Returns

- int -
-
- -
- -
-
- -
-

getAttribute()

- -
getAttribute(int $attribute) : mixed
-

Get a connection attribute for the current db driver

- - -

Parameters

- - - - - - -
int$attribute
- - -

Returns

- mixed -
-
- -
- -
-
- -
-

rollback()

- -
rollback() : bool
-

Rollback a transaction

- - - - -

Returns

- bool -
-
- -
- -
-
- -
-

setAttribute()

- -
setAttribute(int $attribute, mixed $value) : bool
-

Set a connection attribute

- - -

Parameters

- - - - - - - - - - - -
int$attribute
mixed$value
- - -

Returns

- bool -
-
- -
- -
-
- -
-

get_columns()

- -
get_columns(string $table) : array
-

Retrieve column information for the current database table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- array -
-
- -
- -
-
- -
-

get_types()

- -
get_types() : array
-

Retrieve list of data types for the database

- - - - -

Returns

- array -
-
- -
- -
-
- -
-

get_indexes()

- -
get_indexes(string $table) : array
-

Retrieve indexes for the 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_tables()

- -
get_tables() : array
-

Return list of tables 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_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 -
-
- -
- -
-
- -
-

quote_ident()

- -
quote_ident(mixed $ident) : string
-

Surrounds the string with the databases identifier escape characters

- - -

Parameters

- - - - - - -
mixed$ident
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_table()

- -
quote_table(string $table) : string
-

Quote database table name, and set prefix

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

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 -
-
- -
- -
-
- -
-

get_sql()

- -
get_sql() : \Query\Driver\SQL\SQL_Interface
-

Get the SQL class for the current driver

- - - - -

Returns

- \Query\Driver\SQL\SQL_Interface -
-
- -
- -
-
- -
-

get_util()

- -
get_util() : \Query\Driver\Util\Abstract_Util
-

Get the Util class for the current driver

- - - - -

Returns

- \Query\Driver\Util\Abstract_Util -
-
- -
- -
-
- -
-

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 -
-
- -
- -
-
- -
-

affected_rows()

- -
affected_rows() : int
-

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

- - - - -

Returns

- int -
-
- -
- -
-
- -
-

num_rows()

- -
num_rows() : int
-

Return the number of rows returned for a SELECT query

- - - - -

Returns

- int -
-
- -
- -
-
- -
-

prefix_table()

- -
prefix_table(string $table) : string
-

Prefixes a table if it is not already prefixed

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

insert_batch()

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

Create sql for batch insert

- - -

Parameters

- - - - - - - - - - - -
string$table
array$data
- - -

Returns

- array -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.Firebird.html b/docs/classes/Query.Driver.Firebird.html deleted file mode 100644 index e8cc93c..0000000 --- a/docs/classes/Query.Driver.Firebird.html +++ /dev/null @@ -1,2622 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\DriverFirebird

-

Firebird Database class

-

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

- -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- __construct()
- __destruct()
- get_service()
- exec()
- getAttribute()
- inTransaction()
- lastInsertId()
- query()
- prepare()
- beginTransaction()
- commit()
- rollBack()
- setAttribute()
- prepare_execute()
- quote()
- errorInfo()
- errorCode()
- prepare_query()
- insert_batch()
- __call()
- get_sql()
- get_util()
- 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()
- _quote()
- truncate()
-
-
- $sql
- $util
- $last_query
- $table_prefix
-
-
- No constants found -
-
-
-
- _load_sub_classes()
- _prefix()
-
-
- $statement
- $statement_link
- $trans
- $conn
- $service
- $has_truncate
- $escape_char
-
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- - -
- -
- -
-
- - -
- -
- -
-
- -
-

$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 -
-
- -
- -
-
- -
-

$statement_link

-
$statement_link : resource
-

Reference to the resource returned by -the last query executed

- - -

Type

- resource -
-
- -
- -
-
- -
-

$trans

-
$trans : resource
-

Reference to the current transaction

- - -

Type

- resource -
-
- -
- -
-
- -
-

$conn

-
$conn : resource
-

Reference to the connection resource

- - -

Type

- resource -
-
- -
- -
-
- -
-

$service

-
$service : resource
-

Reference to the service resource

- - -

Type

- resource -
-
- -
- -
-
- -
-

$has_truncate

-
$has_truncate : bool
-

Whether the driver supports 'TRUNCATE'

- - -

Type

- bool -
-
- -
- -
-
- -
-

$escape_char

-
$escape_char : string
-

Character to escape identifiers

- - -

Type

- string -
-
- -
- - - -
-

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
- - -
-
- -
- -
-
- -
-

__destruct()

- -
__destruct()
-

Cleanup some loose ends

- - - - -
-
- -
- -
-
- -
-

get_service()

- -
get_service() : resource
-

Return service handle

- - - - -

Returns

- resource -
-
- -
- -
-
- -
-

exec()

- -
exec(string $sql) : int
-

Execute an sql statement and return number of affected rows

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- int -
-
- -
- -
-
- -
-

getAttribute()

- -
getAttribute(int $attribute) : mixed
-

Implement for compatibility with PDO

- - -

Parameters

- - - - - - -
int$attribute
- - -

Returns

- mixed -
-
- -
- -
-
- -
-

inTransaction()

- -
inTransaction() : bool
-

Return whether the current statement is in a transaction

- - - - -

Returns

- bool -
-
- -
- -
-
- -
-

lastInsertId()

- -
lastInsertId(string $name) : mixed
-

Returns the last value of the specified generator

- - -

Parameters

- - - - - - -
string$name
- - -

Returns

- mixed -
-
- -
- -
-
- -
-

query()

- -
query(string $sql) : \Query\Driver\Firebird_Result
-

Wrapper public function to better match PDO

- - -

Parameters

- - - - - - -
string$sql
- -

Throws

-
-
\Query\Driver\PDOException
-
-
- -

Returns

- \Query\Driver\Firebird_Result -
-
- -
- -
-
- -
-

prepare()

- -
prepare(string $query, array $options) : \Query\Driver\Firebird_Result
-

Emulate PDO prepare

- - -

Parameters

- - - - - - - - - - - -
string$query
array$options
- -

Throws

-
-
\PDOException
-
-
- -

Returns

- \Query\Driver\Firebird_Result -
-
- -
- -
-
- -
-

beginTransaction()

- -
beginTransaction() : boolean|null
-

Start a database transaction

- - - - -

Returns

- boolean|null -
-
- -
- -
-
- -
-

commit()

- -
commit() : bool
-

Commit a database transaction

- - - - -

Returns

- bool -
-
- -
- -
-
- -
-

rollBack()

- -
rollBack() : bool
-

Rollback a transaction

- - - - -

Returns

- bool -
-
- -
- -
-
- -
-

setAttribute()

- -
setAttribute(int $attribute, mixed $value) : bool
-

Set a connection attribute

- - -

Parameters

- - - - - - - - - - - -
int$attribute
mixed$value
- - -

Returns

- bool -
-
- -
- -
-
- -
-

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 -
-
- -
- -
-
- -
-

quote()

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

Method to emulate PDO->quote

- - -

Parameters

- - - - - - - - - - - -
string$str
int$param_type
- - -

Returns

- string -
-
- -
- -
-
- -
-

errorInfo()

- -
errorInfo() : array
-

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

- - - - -

Returns

- array -
-
- -
- -
-
- -
-

errorCode()

- -
errorCode() : array
-

Method to emulate PDO->errorCode

- - - - -

Returns

- array -
-
- -
- -
-
- -
-

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

-
-
- -
- -
-
- -
-

insert_batch()

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

Create sql for batch insert

- - -

Parameters

- - - - - - - - - - - -
string$table
array$data
- - -

Returns

- array -
-
- -
- -
-
- -
-

__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\Driver\SQL\SQL_Interface
-

Get the SQL class for the current driver

- - - - -

Returns

- \Query\Driver\SQL\SQL_Interface -
-
- -
- -
-
- -
-

get_util()

- -
get_util() : \Query\Driver\Util\Abstract_Util
-

Get the Util class for the current driver

- - - - -

Returns

- \Query\Driver\Util\Abstract_Util -
-
- -
- -
-
- -
-

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 -
-
- -
- -
-
- -
-

_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.Driver.Firebird_Result.html b/docs/classes/Query.Driver.Firebird_Result.html deleted file mode 100644 index bc707a8..0000000 --- a/docs/classes/Query.Driver.Firebird_Result.html +++ /dev/null @@ -1,1106 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\DriverFirebird_Result

-

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

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- __construct()
- bindColumn()
- bindParam()
- bindValue()
- execute()
- fetch()
- fetchAll()
- fetchColumn()
- fetchObject()
- rowCount()
- errorCode()
- errorInfo()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- $statement
- $row
- $result
- $db
-
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$statement

-
$statement : resource
-

Reference to fbird resource

- - -

Type

- resource -
-
- -
- -
-
- -
-

$row

-
$row : int
-

Current row in result array

- - -

Type

- int -
-
- -
- -
-
- -
-

$result

-
$result
-

Data pulled from query

- - -
-
- -
- -
-
- -
-

$db

-
$db : \Query\Driver\Firebird
-

Reference to the db drive to de-duplicate error functions

- - -

Type

- \Query\Driver\Firebird -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

__construct()

- -
__construct(resource $link, \Query\Driver\Firebird|null $db) : void
-

Create the object by passing the resource for -the query

- - -

Parameters

- - - - - - - - - - - -
resource$link
\Query\Driver\Firebird|null$db
- - -
-
- -
- -
-
- -
-

bindColumn()

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

Invalidate method for data consistency

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
mixed$column
mixed$param
int$type
mixed$maxlen
array$driverdata
- - -

Returns

- NULL -
-
- -
- -
-
- -
-

bindParam()

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

Invalidate method for data consistency

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
mixed$parameter
mixed$variable
int$data_type
mixed$maxlen
array$driverdata
- - -

Returns

- NULL -
-
- -
- -
-
- -
-

bindValue()

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

Invalidate method for data consistency

- - -

Parameters

- - - - - - - - - - - - - - - - -
mixed$parameter
mixed$variable
int$data_type
- - -

Returns

- NULL -
-
- -
- -
-
- -
-

execute()

- -
execute(array $args) : \Query\Driver\Firebird_Result
-

Run a prepared statement query

- - -

Parameters

- - - - - - -
array$args
- - -

Returns

- \Query\Driver\Firebird_Result -
-
- -
- -
-
- -
-

fetch()

- -
fetch(int $fetch_style, mixed $cursor_orientation, mixed $cursor_offset) : mixed
-

Emulate PDO fetch public function

- - -

Parameters

- - - - - - - - - - - - - - - - -
int$fetch_style
mixed$cursor_orientation
mixed$cursor_offset
- - -

Returns

- mixed -
-
- -
- -
-
- -
-

fetchAll()

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

Emulate PDO fetchAll public function

- - -

Parameters

- - - - - - - - - - - - - - - - -
int$fetch_style
mixed$statement
mixed$ctor_args
- - -

Returns

- mixed -
-
- -
- -
-
- -
-

fetchColumn()

- -
fetchColumn(int $column_num) : mixed
-

Emulate PDOStatement::fetchColumn

- - -

Parameters

- - - - - - -
int$column_num
- - -

Returns

- mixed -
-
- -
- -
-
- -
-

fetchObject()

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

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

- - -

Parameters

- - - - - - - - - - - -
string$class_name
array$ctor_args
- - -

Returns

- \Query\Driver\stdClass -
-
- -
- -
-
- -
-

rowCount()

- -
rowCount() : int
-

Return the number of rows affected by the previous query

- - - - -

Returns

- int -
-
- -
- -
-
- -
-

errorCode()

- -
errorCode() : string
-

Method to emulate PDOStatement->errorCode

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

errorInfo()

- -
errorInfo() : array
-

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

- - - - -

Returns

- array -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.MySQL.html b/docs/classes/Query.Driver.MySQL.html deleted file mode 100644 index e8fe503..0000000 --- a/docs/classes/Query.Driver.MySQL.html +++ /dev/null @@ -1,1900 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\DriverMySQL

-

MySQL specific 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()
-
-
- $sql
- $util
- $last_query
- $table_prefix
-
-
- No constants found -
-
-
-
- _load_sub_classes()
- _prefix()
-
-
- $escape_char
- $statement
- $has_truncate
-
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- - -
- -
- -
-
- - -
- -
- -
-
- -
-

$last_query

-
$last_query : string
-

Last query executed

- - -

Type

- string -
-
- -
- -
-
- -
-

$table_prefix

-
$table_prefix : string
-

Prefix to apply to table names

- - -

Type

- string -
-
- -
- -
-
- -
-

$escape_char

-
$escape_char : string
-

Character to escape identifiers

- - -

Type

- string -
-
- -
- -
-
- -
-

$statement

-
$statement : \PDOStatement
-

Reference to the last executed query

- - -

Type

- \PDOStatement -
-
- -
- -
-
- -
-

$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\Driver\SQL\SQL_Interface
-

Get the SQL class for the current driver

- - - - -

Returns

- \Query\Driver\SQL\SQL_Interface -
-
- -
- -
-
- -
-

get_util()

- -
get_util() : \Query\Driver\Util\Abstract_Util
-

Get the Util class for the current driver

- - - - -

Returns

- \Query\Driver\Util\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.Driver.PgSQL.html b/docs/classes/Query.Driver.PgSQL.html deleted file mode 100644 index 32113b6..0000000 --- a/docs/classes/Query.Driver.PgSQL.html +++ /dev/null @@ -1,1900 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\DriverPgSQL

-

PostgreSQL specifc class

-

Extends PDO to simplify cross-database issues

- -
-

Summary

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

Properties

-
- -
- -
-
- - -
- -
- -
-
- - -
- -
- -
-
- -
-

$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
- - -
-
- -
- -
-
- -
-

get_schemas()

- -
get_schemas() : array
-

Return schemas for databases that list them

- - - - -

Returns

- array -
-
- -
- -
-
- -
-

get_fks()

- -
get_fks(string $table) : array
-

Retrieve foreign keys for the table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- array -
-
- -
- -
-
- -
-

__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\Driver\SQL\SQL_Interface
-

Get the SQL class for the current driver

- - - - -

Returns

- \Query\Driver\SQL\SQL_Interface -
-
- -
- -
-
- -
-

get_util()

- -
get_util() : \Query\Driver\Util\Abstract_Util
-

Get the Util class for the current driver

- - - - -

Returns

- \Query\Driver\Util\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_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_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.Driver.SQL.Abstract_SQL.html b/docs/classes/Query.Driver.SQL.Abstract_SQL.html deleted file mode 100644 index 603b7db..0000000 --- a/docs/classes/Query.Driver.SQL.Abstract_SQL.html +++ /dev/null @@ -1,460 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\SQLAbstract_SQL

-

parent for database manipulation subclasses

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- limit()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - - -
-

Methods

- -
- -
-
- -
-

limit()

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

Limit clause

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$sql
int$limit
int|bool$offset
- - -

Returns

- string -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.SQL.Firebird_SQL.html b/docs/classes/Query.Driver.SQL.Firebird_SQL.html deleted file mode 100644 index 5f31ee3..0000000 --- a/docs/classes/Query.Driver.SQL.Firebird_SQL.html +++ /dev/null @@ -1,972 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\SQLFirebird_SQL

-

Firebird Specific SQL

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- limit()
- explain()
- random()
- db_list()
- table_list()
- system_table_list()
- view_list()
- trigger_list()
- function_list()
- procedure_list()
- sequence_list()
- column_list()
- type_list()
- fk_list()
- index_list()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - - -
-

Methods

- -
- -
-
- -
-

limit()

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

Limit clause

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$sql
int$limit
int|bool$offset
- - -

Returns

- string -
-
- -
- -
-
- -
-

explain()

- -
explain(string $sql) : string
-

Get the query plan for the sql query

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

random()

- -
random() : string
-

Random ordering keyword

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

db_list()

- -
db_list() : NULL
-

Returns sql to list other databases

- - - - -

Returns

- NULL -
-
- -
- -
-
- -
-

table_list()

- -
table_list() : string
-

Returns sql to list tables

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

system_table_list()

- -
system_table_list() : string
-

Returns sql to list system tables

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

view_list()

- -
view_list() : string
-

Returns sql to list views

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

trigger_list()

- -
trigger_list() : string
-

Returns sql to list triggers

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

function_list()

- -
function_list() : string
-

Return sql to list functions

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

procedure_list()

- -
procedure_list() : string
-

Return sql to list stored procedures

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

sequence_list()

- -
sequence_list() : string
-

Return sql to list sequences

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

column_list()

- -
column_list(string $table) : string
-

Return sql to list columns of the specified table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

type_list()

- -
type_list() : string
-

SQL to show list of field types

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

fk_list()

- -
fk_list(string $table) : string
-

Get the list of foreign keys for the current -table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

index_list()

- -
index_list(string $table) : array
-

Get the list of indexes for the current table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- array -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.SQL.MySQL_SQL.html b/docs/classes/Query.Driver.SQL.MySQL_SQL.html deleted file mode 100644 index afd104f..0000000 --- a/docs/classes/Query.Driver.SQL.MySQL_SQL.html +++ /dev/null @@ -1,980 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\SQLMySQL_SQL

-

MySQL specifc SQL

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- limit()
- explain()
- random()
- db_list()
- table_list()
- system_table_list()
- view_list()
- trigger_list()
- function_list()
- procedure_list()
- sequence_list()
- type_list()
- column_list()
- fk_list()
- index_list()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - - -
-

Methods

- -
- -
-
- -
-

limit()

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

Limit clause

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$sql
int$limit
int|bool$offset
- - -

Returns

- string -
-
- -
- -
-
- -
-

explain()

- -
explain(string $sql) : string
-

Get the query plan for the sql query

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

random()

- -
random() : string
-

Random ordering keyword

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

db_list()

- -
db_list() : string
-

Returns sql to list other databases

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

table_list()

- -
table_list(string $database) : string
-

Returns sql to list tables

- - -

Parameters

- - - - - - -
string$database
- - -

Returns

- string -
-
- -
- -
-
- -
-

system_table_list()

- -
system_table_list() : string
-

Overridden in MySQL class

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

view_list()

- -
view_list() : string
-

Returns sql to list views

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

trigger_list()

- -
trigger_list() : string
-

Returns sql to list triggers

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

function_list()

- -
function_list() : string
-

Return sql to list functions

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

procedure_list()

- -
procedure_list() : string
-

Return sql to list stored procedures

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

sequence_list()

- -
sequence_list() : NULL
-

Return sql to list sequences

- - - - -

Returns

- NULL -
-
- -
- -
-
- -
-

type_list()

- -
type_list() : string
-

SQL to show list of field types

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

column_list()

- -
column_list(string $table) : string
-

SQL to show infromation about columns in a table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

fk_list()

- -
fk_list(string $table) : string
-

Get the list of foreign keys for the current -table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

index_list()

- -
index_list(string $table) : array
-

Get the list of indexes for the current table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- array -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.SQL.PgSQL_SQL.html b/docs/classes/Query.Driver.SQL.PgSQL_SQL.html deleted file mode 100644 index cff04e6..0000000 --- a/docs/classes/Query.Driver.SQL.PgSQL_SQL.html +++ /dev/null @@ -1,972 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\SQLPgSQL_SQL

-

PostgreSQL specifc SQL

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- explain()
- random()
- db_list()
- table_list()
- system_table_list()
- view_list()
- trigger_list()
- function_list()
- procedure_list()
- sequence_list()
- column_list()
- type_list()
- fk_list()
- index_list()
- limit()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - - -
-

Methods

- -
- -
-
- -
-

explain()

- -
explain(string $sql) : string
-

Get the query plan for the sql query

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

random()

- -
random() : string
-

Random ordering keyword

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

db_list()

- -
db_list() : string
-

Returns sql to list other databases

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

table_list()

- -
table_list() : string
-

Returns sql to list tables

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

system_table_list()

- -
system_table_list() : string
-

Returns sql to list system tables

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

view_list()

- -
view_list() : string
-

Returns sql to list views

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

trigger_list()

- -
trigger_list() : string
-

Returns sql to list triggers

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

function_list()

- -
function_list() : NULL
-

Return sql to list functions

- - - - -

Returns

- NULL -
-
- -
- -
-
- -
-

procedure_list()

- -
procedure_list() : string
-

Return sql to list stored procedures

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

sequence_list()

- -
sequence_list() : string
-

Return sql to list sequences

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

column_list()

- -
column_list(string $table) : string
-

Return sql to list columns of the specified table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

type_list()

- -
type_list() : string
-

SQL to show list of field types

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

fk_list()

- -
fk_list(string $table) : string
-

Get the list of foreign keys for the current -table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

index_list()

- -
index_list(string $table) : array
-

Get the list of indexes for the current table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- array -
-
- -
- -
-
- -
-

limit()

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

Limit clause

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$sql
int$limit
int|bool$offset
- - -

Returns

- string -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.SQL.SQL_Interface.html b/docs/classes/Query.Driver.SQL.SQL_Interface.html deleted file mode 100644 index cb83fc2..0000000 --- a/docs/classes/Query.Driver.SQL.SQL_Interface.html +++ /dev/null @@ -1,947 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\SQLSQL_Interface

-

parent for database manipulation subclasses

- - -
-

Summary

-
-
- Methods -
-
- Constants -
-
-
-
- limit()
- explain()
- random()
- db_list()
- table_list()
- system_table_list()
- view_list()
- trigger_list()
- function_list()
- procedure_list()
- sequence_list()
- type_list()
- column_list()
- fk_list()
- index_list()
-
-
- No constants found -
-
-
-
- No protected methods found -
-
- N/A -
-
-
-
- No private methods found -
-
- N/A -
-
-
-
- -
- - -
-
-

Methods

-
- -
- -
-
- -
-

limit()

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

Get database specific sql for limit clause

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$sql
int$limit
int|bool$offset
- - -

Returns

- string -
-
- -
- -
-
- -
-

explain()

- -
explain(string $sql) : string
-

Modify the query to get the query plan

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

random()

- -
random() : string
-

Get the sql for random ordering

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

db_list()

- -
db_list() : string
-

Returns sql to list other databases

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

table_list()

- -
table_list() : string
-

Returns sql to list tables

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

system_table_list()

- -
system_table_list() : string
-

Returns sql to list system tables

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

view_list()

- -
view_list() : string
-

Returns sql to list views

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

trigger_list()

- -
trigger_list() : string
-

Returns sql to list triggers

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

function_list()

- -
function_list() : NULL
-

Return sql to list functions

- - - - -

Returns

- NULL -
-
- -
- -
-
- -
-

procedure_list()

- -
procedure_list() : string
-

Return sql to list stored procedures

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

sequence_list()

- -
sequence_list() : string
-

Return sql to list sequences

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

type_list()

- -
type_list() : string|array
-

Return sql to list database field types

- - - - -

Returns

- string|array -
-
- -
- -
-
- -
-

column_list()

- -
column_list(string $table) : string
-

Get information about the columns in the -specified table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

fk_list()

- -
fk_list(string $table) : array
-

Get the list of foreign keys for the current -table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- array -
-
- -
- -
-
- -
-

index_list()

- -
index_list(string $table) : array
-

Get the list of indexes for the current table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- array -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.SQL.SQLite_SQL.html b/docs/classes/Query.Driver.SQL.SQLite_SQL.html deleted file mode 100644 index b2e27dc..0000000 --- a/docs/classes/Query.Driver.SQL.SQLite_SQL.html +++ /dev/null @@ -1,972 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\SQLSQLite_SQL

-

SQLite Specific SQL

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- explain()
- random()
- db_list()
- table_list()
- system_table_list()
- view_list()
- trigger_list()
- function_list()
- procedure_list()
- sequence_list()
- type_list()
- column_list()
- fk_list()
- index_list()
- limit()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - - -
-

Methods

- -
- -
-
- -
-

explain()

- -
explain(string $sql) : string
-

Get the query plan for the sql query

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

random()

- -
random() : string
-

Random ordering keyword

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

db_list()

- -
db_list() : string
-

Returns sql to list other databases

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

table_list()

- -
table_list() : string
-

Returns sql to list tables

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

system_table_list()

- -
system_table_list() : string[]
-

List the system tables

- - - - -

Returns

- string[] -
-
- -
- -
-
- -
-

view_list()

- -
view_list() : string
-

Returns sql to list views

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

trigger_list()

- -
trigger_list() : string
-

Returns sql to list triggers

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

function_list()

- -
function_list() : NULL
-

Return sql to list functions

- - - - -

Returns

- NULL -
-
- -
- -
-
- -
-

procedure_list()

- -
procedure_list() : NULL
-

Return sql to list stored procedures

- - - - -

Returns

- NULL -
-
- -
- -
-
- -
-

sequence_list()

- -
sequence_list() : NULL
-

Return sql to list sequences

- - - - -

Returns

- NULL -
-
- -
- -
-
- -
-

type_list()

- -
type_list() : string[]
-

SQL to show list of field types

- - - - -

Returns

- string[] -
-
- -
- -
-
- -
-

column_list()

- -
column_list(string $table) : string
-

SQL to show infromation about columns in a table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

fk_list()

- -
fk_list(string $table) : string
-

Get the list of foreign keys for the current -table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

index_list()

- -
index_list(string $table) : string
-

Get the list of indexes for the current table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- string -
-
- -
- -
-
- -
-

limit()

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

Limit clause

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$sql
int$limit
int|bool$offset
- - -

Returns

- string -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.SQLite.html b/docs/classes/Query.Driver.SQLite.html deleted file mode 100644 index 9534aea..0000000 --- a/docs/classes/Query.Driver.SQLite.html +++ /dev/null @@ -1,1900 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\DriverSQLite

-

SQLite specific class

-

Extends PDO to simplify cross-database issues

- -
-

Summary

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

Properties

-
- -
- -
-
- - -
- -
- -
-
- - -
- -
- -
-
- -
-

$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 -
-
- -
- -
-
- -
-

$has_truncate

-
$has_truncate : bool
-

Whether the driver supports 'TRUNCATE'

- - -

Type

- bool -
-
- -
- -
-
- -
-

$escape_char

-
$escape_char : string
-

Character to escape identifiers

- - -

Type

- string -
-
- -
- - - -
-

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
- - -
-
- -
- -
-
- -
-

get_tables()

- -
get_tables() : array
-

Return list of tables for the current database

- - - - -

Returns

- array -
-
- -
- -
-
- -
-

get_fks()

- -
get_fks(string $table) : array
-

Retrieve foreign keys for the table

- - -

Parameters

- - - - - - -
string$table
- - -

Returns

- array -
-
- -
- -
-
- -
-

insert_batch()

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

Create sql for batch insert

- - -

Parameters

- - - - - - - - - - - -
string$table
array$data
- - -

Returns

- array -
-
- -
- -
-
- -
-

__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\Driver\SQL\SQL_Interface
-

Get the SQL class for the current driver

- - - - -

Returns

- \Query\Driver\SQL\SQL_Interface -
-
- -
- -
-
- -
-

get_util()

- -
get_util() : \Query\Driver\Util\Abstract_Util
-

Get the Util class for the current driver

- - - - -

Returns

- \Query\Driver\Util\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_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_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 -
-
- -
- -
-
- -
-

_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.Driver.Util.Abstract_Util.html b/docs/classes/Query.Driver.Util.Abstract_Util.html deleted file mode 100644 index eaea6a3..0000000 --- a/docs/classes/Query.Driver.Util.Abstract_Util.html +++ /dev/null @@ -1,759 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\UtilAbstract_Util

-

Abstract class defining database / table creation methods

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- __construct()
- get_driver()
- create_table()
- delete_table()
- backup_structure()
- backup_data()
- quote_ident()
- quote_table()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- $conn
-
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$conn

-
$conn
-

Reference to the current connection object

- - -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

__construct()

- -
__construct(\Query\Driver\Driver_Interface $conn)
-

Save a reference to the connection object for later use

- - -

Parameters

- - - - - - -
\Query\Driver\Driver_Interface$conn
- - -
-
- -
- -
-
- -
-

get_driver()

- -
get_driver() : \Query\Driver\Driver_Interface
-

Get the driver object for the current connection

- - - - -

Returns

- \Query\Driver\Driver_Interface -
-
- -
- -
-
- -
-

create_table()

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

Convenience public function to generate sql for creating a db table

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$name
array$fields
array$constraints
bool$if_not_exists
- - -

Returns

- string -
-
- -
- -
-
- -
-

delete_table()

- -
delete_table(string $name) : string
-

Drop the selected table

- - -

Parameters

- - - - - - -
string$name
- - -

Returns

- string -
-
- -
- -
-
- -
-

backup_structure()

- -
backup_structure() : string
-

Return an SQL file with the database table structure

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

backup_data()

- -
backup_data() : string
-

Return an SQL file with the database data as insert statements

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

quote_ident()

- -
quote_ident(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_table()

- -
quote_table(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.Util.Firebird_Util.html b/docs/classes/Query.Driver.Util.Firebird_Util.html deleted file mode 100644 index 6edb81a..0000000 --- a/docs/classes/Query.Driver.Util.Firebird_Util.html +++ /dev/null @@ -1,778 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\UtilFirebird_Util

-

Firebird-specific backup, import and creation methods

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- create_table()
- delete_table()
- backup_structure()
- backup_data()
- __construct()
- get_driver()
- quote_ident()
- quote_table()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- $conn
-
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$conn

-
$conn
-

Reference to the current connection object

- - -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

create_table()

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

Convenience public function to generate sql for creating a db table

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$name
array$fields
array$constraints
bool$if_not_exists
- - -

Returns

- string -
-
- -
- -
-
- -
-

delete_table()

- -
delete_table(string $name) : string
-

Drop the selected table

- - -

Parameters

- - - - - - -
string$name
- - -

Returns

- string -
-
- -
- -
-
- -
-

backup_structure()

- -
backup_structure() : string
-

Return an SQL file with the database table structure

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

backup_data()

- -
backup_data() : string
-

Return an SQL file with the database data as insert statements

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\Query\Driver\Driver_Interface $conn)
-

Save a reference to the connection object for later use

- - -

Parameters

- - - - - - -
\Query\Driver\Driver_Interface$conn
- - -
-
- -
- -
-
- -
-

get_driver()

- -
get_driver() : \Query\Driver\Driver_Interface
-

Get the driver object for the current connection

- - - - -

Returns

- \Query\Driver\Driver_Interface -
-
- -
- -
-
- -
-

quote_ident()

- -
quote_ident(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_table()

- -
quote_table(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.Util.MySQL_Util.html b/docs/classes/Query.Driver.Util.MySQL_Util.html deleted file mode 100644 index 53d6ca3..0000000 --- a/docs/classes/Query.Driver.Util.MySQL_Util.html +++ /dev/null @@ -1,778 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\UtilMySQL_Util

-

MySQL-specific backup, import and creation methods

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- backup_structure()
- backup_data()
- __construct()
- get_driver()
- create_table()
- delete_table()
- quote_ident()
- quote_table()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- $conn
-
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$conn

-
$conn
-

Reference to the current connection object

- - -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

backup_structure()

- -
backup_structure() : string
-

Return an SQL file with the database table structure

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

backup_data()

- -
backup_data() : string
-

Return an SQL file with the database data as insert statements

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\Query\Driver\Driver_Interface $conn)
-

Save a reference to the connection object for later use

- - -

Parameters

- - - - - - -
\Query\Driver\Driver_Interface$conn
- - -
-
- -
- -
-
- -
-

get_driver()

- -
get_driver() : \Query\Driver\Driver_Interface
-

Get the driver object for the current connection

- - - - -

Returns

- \Query\Driver\Driver_Interface -
-
- -
- -
-
- -
-

create_table()

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

Convenience public function to generate sql for creating a db table

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$name
array$fields
array$constraints
bool$if_not_exists
- - -

Returns

- string -
-
- -
- -
-
- -
-

delete_table()

- -
delete_table(string $name) : string
-

Drop the selected table

- - -

Parameters

- - - - - - -
string$name
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_ident()

- -
quote_ident(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_table()

- -
quote_table(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.Util.PgSQL_Util.html b/docs/classes/Query.Driver.Util.PgSQL_Util.html deleted file mode 100644 index aa4a397..0000000 --- a/docs/classes/Query.Driver.Util.PgSQL_Util.html +++ /dev/null @@ -1,778 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\UtilPgSQL_Util

-

Posgres-specific backup, import and creation methods

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- backup_structure()
- backup_data()
- __construct()
- get_driver()
- create_table()
- delete_table()
- quote_ident()
- quote_table()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- $conn
-
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$conn

-
$conn
-

Reference to the current connection object

- - -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

backup_structure()

- -
backup_structure() : string
-

Return an SQL file with the database table structure

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

backup_data()

- -
backup_data() : string
-

Return an SQL file with the database data as insert statements

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\Query\Driver\Driver_Interface $conn)
-

Save a reference to the connection object for later use

- - -

Parameters

- - - - - - -
\Query\Driver\Driver_Interface$conn
- - -
-
- -
- -
-
- -
-

get_driver()

- -
get_driver() : \Query\Driver\Driver_Interface
-

Get the driver object for the current connection

- - - - -

Returns

- \Query\Driver\Driver_Interface -
-
- -
- -
-
- -
-

create_table()

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

Convenience public function to generate sql for creating a db table

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$name
array$fields
array$constraints
bool$if_not_exists
- - -

Returns

- string -
-
- -
- -
-
- -
-

delete_table()

- -
delete_table(string $name) : string
-

Drop the selected table

- - -

Parameters

- - - - - - -
string$name
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_ident()

- -
quote_ident(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_table()

- -
quote_table(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver.Util.SQLite_Util.html b/docs/classes/Query.Driver.Util.SQLite_Util.html deleted file mode 100644 index 70671f0..0000000 --- a/docs/classes/Query.Driver.Util.SQLite_Util.html +++ /dev/null @@ -1,850 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\Query\Driver\UtilSQLite_Util

-

SQLite-specific backup, import and creation methods

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- backup_data()
- backup_structure()
- __construct()
- get_driver()
- create_table()
- delete_table()
- query()
- quote()
- quote_ident()
- quote_table()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- $conn
-
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$conn

-
$conn
-

Reference to the current connection object

- - -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

backup_data()

- -
backup_data() : string
-

Return an SQL file with the database data as insert statements

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

backup_structure()

- -
backup_structure() : string
-

Return an SQL file with the database table structure

- - - - -

Returns

- string -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\Query\Driver\Driver_Interface $conn)
-

Save a reference to the connection object for later use

- - -

Parameters

- - - - - - -
\Query\Driver\Driver_Interface$conn
- - -
-
- -
- -
-
- -
-

get_driver()

- -
get_driver() : \Query\Driver\Driver_Interface
-

Get the driver object for the current connection

- - - - -

Returns

- \Query\Driver\Driver_Interface -
-
- -
- -
-
- -
-

create_table()

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

Convenience public function to generate sql for creating a db table

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$name
array$fields
array$constraints
bool$if_not_exists
- - -

Returns

- string -
-
- -
- -
-
- -
-

delete_table()

- -
delete_table(string $name) : string
-

Drop the selected table

- - -

Parameters

- - - - - - -
string$name
- - -

Returns

- string -
-
- -
- -
-
- -
-

query()

- -
query(string $sql) : mixed
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- mixed -
-
- -
- -
-
- -
-

quote()

- -
quote(string $str) : string
-

- - -

Parameters

- - - - - - -
string$str
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_ident()

- -
quote_ident(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- -
-

quote_table()

- -
quote_table(string $sql) : string
-

- - -

Parameters

- - - - - - -
string$sql
- - -

Returns

- string -
-
- -
- -
-
- - - - -
- - - diff --git a/docs/classes/Query.Driver_Interface.html b/docs/classes/Query.Driver_Interface.html index d8f62fa..ae2bee5 100644 --- a/docs/classes/Query.Driver_Interface.html +++ b/docs/classes/Query.Driver_Interface.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1675,7 +1675,7 @@ the connection/database


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Firebird.Driver.html b/docs/classes/Query.Drivers.Firebird.Driver.html index eb61dcb..b0256a2 100644 --- a/docs/classes/Query.Drivers.Firebird.Driver.html +++ b/docs/classes/Query.Drivers.Firebird.Driver.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -2665,7 +2665,7 @@ the connection/database


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Firebird.Result.html b/docs/classes/Query.Drivers.Firebird.Result.html index c3cfbd4..9cf123a 100644 --- a/docs/classes/Query.Drivers.Firebird.Result.html +++ b/docs/classes/Query.Drivers.Firebird.Result.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -382,7 +382,7 @@ data-fetching methods

File
-
Query/Drivers/Firebird/Result.php
+
src/Query/Drivers/Firebird/Result.php
Package
\Query\Drivers\Drivers
Class hierarchy
@@ -1108,7 +1108,7 @@ the query

Result.php

@@ -1149,7 +1149,7 @@ the query


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Firebird.SQL.html b/docs/classes/Query.Drivers.Firebird.SQL.html index 9f9712f..ff64d4a 100644 --- a/docs/classes/Query.Drivers.Firebird.SQL.html +++ b/docs/classes/Query.Drivers.Firebird.SQL.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1015,7 +1015,7 @@ table


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Firebird.Util.html b/docs/classes/Query.Drivers.Firebird.Util.html index 6bdb86d..ce0927d 100644 --- a/docs/classes/Query.Drivers.Firebird.Util.html +++ b/docs/classes/Query.Drivers.Firebird.Util.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -821,7 +821,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Mysql.Driver.html b/docs/classes/Query.Drivers.Mysql.Driver.html index a8096c2..72cf2ac 100644 --- a/docs/classes/Query.Drivers.Mysql.Driver.html +++ b/docs/classes/Query.Drivers.Mysql.Driver.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1943,7 +1943,7 @@ the connection/database


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Mysql.SQL.html b/docs/classes/Query.Drivers.Mysql.SQL.html index ef96fd8..33d0c0c 100644 --- a/docs/classes/Query.Drivers.Mysql.SQL.html +++ b/docs/classes/Query.Drivers.Mysql.SQL.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1023,7 +1023,7 @@ table


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Mysql.Util.html b/docs/classes/Query.Drivers.Mysql.Util.html index 5e7b2b0..50c413a 100644 --- a/docs/classes/Query.Drivers.Mysql.Util.html +++ b/docs/classes/Query.Drivers.Mysql.Util.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -821,7 +821,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Pdo_firebird.Driver.html b/docs/classes/Query.Drivers.Pdo_firebird.Driver.html index 025891c..37ba761 100644 --- a/docs/classes/Query.Drivers.Pdo_firebird.Driver.html +++ b/docs/classes/Query.Drivers.Pdo_firebird.Driver.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1943,7 +1943,7 @@ the connection/database


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Pdo_firebird.SQL.html b/docs/classes/Query.Drivers.Pdo_firebird.SQL.html index b6de6c8..a84ccfb 100644 --- a/docs/classes/Query.Drivers.Pdo_firebird.SQL.html +++ b/docs/classes/Query.Drivers.Pdo_firebird.SQL.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -1045,7 +1045,7 @@ table


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Pdo_firebird.Util.html b/docs/classes/Query.Drivers.Pdo_firebird.Util.html index e0ab28c..10b322e 100644 --- a/docs/classes/Query.Drivers.Pdo_firebird.Util.html +++ b/docs/classes/Query.Drivers.Pdo_firebird.Util.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -823,7 +823,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Pgsql.Driver.html b/docs/classes/Query.Drivers.Pgsql.Driver.html index 611a063..1885bf5 100644 --- a/docs/classes/Query.Drivers.Pgsql.Driver.html +++ b/docs/classes/Query.Drivers.Pgsql.Driver.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1943,7 +1943,7 @@ the connection/database


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Pgsql.SQL.html b/docs/classes/Query.Drivers.Pgsql.SQL.html index 09bdc97..7406a48 100644 --- a/docs/classes/Query.Drivers.Pgsql.SQL.html +++ b/docs/classes/Query.Drivers.Pgsql.SQL.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1023,7 +1023,7 @@ table


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Pgsql.Util.html b/docs/classes/Query.Drivers.Pgsql.Util.html index 726d72f..a29c329 100644 --- a/docs/classes/Query.Drivers.Pgsql.Util.html +++ b/docs/classes/Query.Drivers.Pgsql.Util.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -821,7 +821,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Sqlite.Driver.html b/docs/classes/Query.Drivers.Sqlite.Driver.html index c751f11..9597cad 100644 --- a/docs/classes/Query.Drivers.Sqlite.Driver.html +++ b/docs/classes/Query.Drivers.Sqlite.Driver.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1943,7 +1943,7 @@ the connection/database


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Sqlite.SQL.html b/docs/classes/Query.Drivers.Sqlite.SQL.html index d9b2290..0e05701 100644 --- a/docs/classes/Query.Drivers.Sqlite.SQL.html +++ b/docs/classes/Query.Drivers.Sqlite.SQL.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -1015,7 +1015,7 @@ table


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Drivers.Sqlite.Util.html b/docs/classes/Query.Drivers.Sqlite.Util.html index 8bf8a03..e231b06 100644 --- a/docs/classes/Query.Drivers.Sqlite.Util.html +++ b/docs/classes/Query.Drivers.Sqlite.Util.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -893,7 +893,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Query_Builder.html b/docs/classes/Query.Query_Builder.html index 6f4da5e..c1ca25c 100644 --- a/docs/classes/Query.Query_Builder.html +++ b/docs/classes/Query.Query_Builder.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -446,7 +446,7 @@ instantiates the specific db driver

File
-
Query/Query_Builder.php
+
src/Query/Query_Builder.php
Package
\Query\Query_Builder\Query_Builder
Class hierarchy
@@ -4013,7 +4013,7 @@ in place of the get() method

Query_Builder.php

@@ -4054,7 +4054,7 @@ in place of the get() method


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Query_Builder_Interface.html b/docs/classes/Query.Query_Builder_Interface.html index af15c97..c755f0f 100644 --- a/docs/classes/Query.Query_Builder_Interface.html +++ b/docs/classes/Query.Query_Builder_Interface.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -395,7 +395,7 @@
File
-
Query/Query_Builder_Interface.php
+
src/Query/Query_Builder_Interface.php
Package
\Query\Query_Builder\Query_Builder
@@ -2294,7 +2294,7 @@ in place of the get() method

Query_Builder_Interface.php

@@ -2335,7 +2335,7 @@ in place of the get() method


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.Query_Parser.html b/docs/classes/Query.Query_Parser.html index e981240..ac03ddd 100644 --- a/docs/classes/Query.Query_Parser.html +++ b/docs/classes/Query.Query_Parser.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -370,7 +370,7 @@
File
-
Query/Query_Parser.php
+
src/Query/Query_Parser.php
Package
\Query\Query_Builder\Query_Builder
Class hierarchy
@@ -673,7 +673,7 @@

Query_Parser.php

@@ -714,7 +714,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/classes/Query.SQL_Interface.html b/docs/classes/Query.SQL_Interface.html index 2cec401..d5d4b37 100644 --- a/docs/classes/Query.SQL_Interface.html +++ b/docs/classes/Query.SQL_Interface.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
@@ -990,7 +990,7 @@ table


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Driver.Abstract_Driver.php.html b/docs/files/Query.Driver.Abstract_Driver.php.html deleted file mode 100644 index ce7b2b7..0000000 --- a/docs/files/Query.Driver.Abstract_Driver.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

Query/DriverAbstract_Driver.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
Abstract_DriverBase Database class
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/Query.Driver.Driver_Interface.php.html b/docs/files/Query.Driver.Driver_Interface.php.html deleted file mode 100644 index 9aa0e40..0000000 --- a/docs/files/Query.Driver.Driver_Interface.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

Query/DriverDriver_Interface.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - -

Interfaces

- - - - - -
Driver_InterfacePDO Interface to implement for database drivers
- -
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/Query.Driver.SQL.Abstract_SQL.php.html b/docs/files/Query.Driver.SQL.Abstract_SQL.php.html deleted file mode 100644 index 0e17124..0000000 --- a/docs/files/Query.Driver.SQL.Abstract_SQL.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

Query/Driver/SQLAbstract_SQL.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
Abstract_SQLparent for database manipulation subclasses
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/Query.Driver.SQL.SQL_Interface.php.html b/docs/files/Query.Driver.SQL.SQL_Interface.php.html deleted file mode 100644 index 36390f8..0000000 --- a/docs/files/Query.Driver.SQL.SQL_Interface.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

Query/Driver/SQLSQL_Interface.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - -

Interfaces

- - - - - -
SQL_Interfaceparent for database manipulation subclasses
- -
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/Query.Driver.Util.Abstract_Util.php.html b/docs/files/Query.Driver.Util.Abstract_Util.php.html deleted file mode 100644 index 0170450..0000000 --- a/docs/files/Query.Driver.Util.Abstract_Util.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

Query/Driver/UtilAbstract_Util.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
Abstract_UtilAbstract class defining database / table creation methods
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/Query/Driver/Abstract_Driver.php.txt b/docs/files/Query/Driver/Abstract_Driver.php.txt deleted file mode 100644 index ffe2ac2..0000000 --- a/docs/files/Query/Driver/Abstract_Driver.php.txt +++ /dev/null @@ -1,630 +0,0 @@ -_load_sub_classes(); - } - - // -------------------------------------------------------------------------- - - /** - * Loads the subclasses for the driver - * - * @return void - */ - protected function _load_sub_classes() - { - // Load the sql and util class for the driver - $this_class = get_class($this); - $ns_array = explode("\\", $this_class); - $base_class = array_pop($ns_array); - $namespace = implode('\\', $ns_array); - $sql_class = "{$namespace}\\SQL\\{$base_class}_SQL"; - $util_class = "{$namespace}\\Util\\{$base_class}_Util"; - - $this->sql = new $sql_class(); - $this->util = new $util_class($this); - } - - // -------------------------------------------------------------------------- - - /** - * Allow invoke to work on table object - * - * @codeCoverageIgnore - * @param string $name - * @param array $args - * @return mixed - */ - public function __call($name, $args = array()) - { - if ( - isset($this->$name) - && is_object($this->$name) - && method_exists($this->$name, '__invoke') - ) - { - return call_user_func_array(array($this->$name, '__invoke'), $args); - } - } - - // -------------------------------------------------------------------------- - // ! Concrete functions that can be overridden in child classes - // -------------------------------------------------------------------------- - - /** - * Get the SQL class for the current driver - * - * @return SQL\SQL_Interface - */ - public function get_sql() - { - return $this->sql; - } - - // -------------------------------------------------------------------------- - - /** - * Get the Util class for the current driver - * - * @return Util\Abstract_Util - */ - public function get_util() - { - return $this->util; - } - - // -------------------------------------------------------------------------- - - /** - * Simplifies prepared statements for database queries - * - * @param string $sql - * @param array $data - * @return \PDOStatement | FALSE - * @throws \InvalidArgumentException - */ - public function prepare_query($sql, $data) - { - // Prepare the sql, save the statement for easy access later - $this->statement = $this->prepare($sql); - - if( ! (is_array($data) || is_object($data))) - { - throw new \InvalidArgumentException("Invalid data argument"); - } - - // Bind the parameters - foreach($data as $k => $value) - { - // Parameters are 1-based, the data is 0-based - // So, if the key is numeric, add 1 - if(is_numeric($k)) $k++; - $this->statement->bindValue($k, $value); - } - - return $this->statement; - } - - // ------------------------------------------------------------------------- - - /** - * Create and execute a prepared statement with the provided parameters - * - * @param string $sql - * @param array $params - * @return \PDOStatement - */ - public function prepare_execute($sql, $params) - { - $this->statement = $this->prepare_query($sql, $params); - $this->statement->execute(); - - return $this->statement; - } - - // ------------------------------------------------------------------------- - - /** - * Returns number of rows affected by an INSERT, UPDATE, DELETE type query - * - * @return int - */ - public function affected_rows() - { - // Return number of rows affected - return $this->statement->rowCount(); - } - - // -------------------------------------------------------------------------- - - /** - * Prefixes a table if it is not already prefixed - * @param string $table - * @return string - */ - public function prefix_table($table) - { - // Add the prefix to the table name - // before quoting it - if ( ! empty($this->table_prefix)) - { - // Split identifier by period, will split into: - // database.schema.table OR - // schema.table OR - // database.table OR - // table - $idents = explode('.', $table); - $segments = count($idents); - - // Quote the last item, and add the database prefix - $idents[$segments - 1] = $this->_prefix(end($idents)); - - // Rejoin - $table = implode('.', $idents); - } - - return $table; - } - - // -------------------------------------------------------------------------- - - /** - * Quote database table name, and set prefix - * - * @param string $table - * @return string - */ - public function quote_table($table) - { - $table = $this->prefix_table($table); - - // Finally, quote the table - return $this->quote_ident($table); - } - - // -------------------------------------------------------------------------- - - /** - * Surrounds the string with the databases identifier escape characters - * - * @param mixed $ident - * @return string - */ - public function quote_ident($ident) - { - if (is_array($ident)) - { - return array_map(array($this, __METHOD__), $ident); - } - - // Handle comma-separated identifiers - if (strpos($ident, ',') !== FALSE) - { - $parts = array_map('mb_trim', explode(',', $ident)); - $parts = array_map(array($this, __METHOD__), $parts); - $ident = implode(',', $parts); - } - - // Split each identifier by the period - $hiers = explode('.', $ident); - $hiers = array_map('mb_trim', $hiers); - - // Re-compile the string - $raw = implode('.', array_map(array($this, '_quote'), $hiers)); - - // Fix functions - $funcs = array(); - preg_match_all("#{$this->escape_char}([a-zA-Z0-9_]+(\((.*?)\))){$this->escape_char}#iu", $raw, $funcs, PREG_SET_ORDER); - foreach($funcs as $f) - { - // Unquote the function - $raw = str_replace($f[0], $f[1], $raw); - - // Quote the inside identifiers - $raw = str_replace($f[3], $this->quote_ident($f[3]), $raw); - } - - return $raw; - - } - - // ------------------------------------------------------------------------- - - /** - * Return schemas for databases that list them - * - * @return array - */ - public function get_schemas() - { - return NULL; - } - - // ------------------------------------------------------------------------- - - /** - * Return list of tables for the current database - * - * @return array - */ - public function get_tables() - { - $tables = $this->driver_query('table_list'); - natsort($tables); - return $tables; - } - - // ------------------------------------------------------------------------- - - /** - * Return list of dbs for the current connection, if possible - * - * @return array - */ - public function get_dbs() - { - return $this->driver_query('db_list'); - } - - // ------------------------------------------------------------------------- - - /** - * Return list of views for the current database - * - * @return array - */ - public function get_views() - { - $views = $this->driver_query('view_list'); - sort($views); - return $views; - } - - // ------------------------------------------------------------------------- - - /** - * Return list of sequences for the current database, if they exist - * - * @return array - */ - public function get_sequences() - { - return $this->driver_query('sequence_list'); - } - - // ------------------------------------------------------------------------- - - /** - * Return list of functions for the current database - * - * @return array - */ - public function get_functions() - { - return $this->driver_query('function_list', FALSE); - } - - // ------------------------------------------------------------------------- - - /** - * Return list of stored procedures for the current database - * - * @return array - */ - public function get_procedures() - { - return $this->driver_query('procedure_list', FALSE); - } - - // ------------------------------------------------------------------------- - - /** - * Return list of triggers for the current database - * - * @return array - */ - public function get_triggers() - { - return $this->driver_query('trigger_list', FALSE); - } - - // ------------------------------------------------------------------------- - - /** - * Retrieves an array of non-user-created tables for - * the connection/database - * - * @return array - */ - public function get_system_tables() - { - return $this->driver_query('system_table_list'); - } - - // -------------------------------------------------------------------------- - - /** - * Retrieve column information for the current database table - * - * @param string $table - * @return array - */ - public function get_columns($table) - { - return $this->driver_query($this->get_sql()->column_list($this->prefix_table($table)), FALSE); - } - - // -------------------------------------------------------------------------- - - /** - * Retrieve foreign keys for the table - * - * @param string $table - * @return array - */ - public function get_fks($table) - { - return $this->driver_query($this->get_sql()->fk_list($table), FALSE); - } - - // -------------------------------------------------------------------------- - - /** - * Retrieve indexes for the table - * - * @param string $table - * @return array - */ - public function get_indexes($table) - { - return $this->driver_query($this->get_sql()->index_list($this->prefix_table($table)), FALSE); - } - - // -------------------------------------------------------------------------- - - /** - * Retrieve list of data types for the database - * - * @return array - */ - public function get_types() - { - return $this->driver_query('type_list', FALSE); - } - - // ------------------------------------------------------------------------- - - /** - * Method to simplify retrieving db results for meta-data queries - * - * @param string|array|null $query - * @param bool $filtered_index - * @return array - */ - public function driver_query($query, $filtered_index=TRUE) - { - // Call the appropriate method, if it exists - if (is_string($query) && method_exists($this->sql, $query)) - { - $query = $this->get_sql()->$query(); - } - - // Return if the values are returned instead of a query, - // or if the query doesn't apply to the driver - if ( ! is_string($query)) return $query; - - // Run the query! - $res = $this->query($query); - - $flag = ($filtered_index) ? \PDO::FETCH_NUM : \PDO::FETCH_ASSOC; - $all = $res->fetchAll($flag); - - return ($filtered_index) ? \db_filter($all, 0) : $all; - } - - // -------------------------------------------------------------------------- - - /** - * Return the number of rows returned for a SELECT query - * - * @see http://us3.php.net/manual/en/pdostatement.rowcount.php#87110 - * @return int - */ - public function num_rows() - { - $regex = '/^SELECT\s+(?:ALL\s+|DISTINCT\s+)?(?:.*?)\s+FROM\s+(.*)$/i'; - $output = array(); - - if (preg_match($regex, $this->last_query, $output) > 0) - { - $stmt = $this->query("SELECT COUNT(*) FROM {$output[1]}"); - return (int) $stmt->fetchColumn(); - } - - return NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Create sql for batch insert - * - * @param string $table - * @param array $data - * @return array - */ - public function insert_batch($table, $data=array()) - { - $first_row = current($data); - if ( ! is_array($first_row)) return NULL; - - // Values for insertion - $vals = array(); - foreach($data as $group) - { - $vals = array_merge($vals, array_values($group)); - } - $table = $this->quote_table($table); - $fields = array_keys($first_row); - - $sql = "INSERT INTO {$table} (" - . implode(',', $this->quote_ident($fields)) - . ") VALUES "; - - // Create the placeholder groups - $params = array_fill(0, count($fields), '?'); - $param_string = "(" . implode(',', $params) . ")"; - $param_list = array_fill(0, count($data), $param_string); - - // Append the placeholder groups to the query - $sql .= implode(',', $param_list); - - return array($sql, $vals); - } - - // -------------------------------------------------------------------------- - - /** - * Helper method for quote_ident - * - * @param mixed $str - * @return mixed - */ - public function _quote($str) - { - // Check that the current value is a string, - // and is not already quoted before quoting - // that value, otherwise, return the original value - return ( - is_string($str) - && strpos($str, $this->escape_char) !== 0 - && strrpos($str, $this->escape_char) !== 0 - ) - ? "{$this->escape_char}{$str}{$this->escape_char}" - : $str; - - } - - // -------------------------------------------------------------------------- - - /** - * Sets the table prefix on the passed string - * - * @param string $str - * @return string - */ - protected function _prefix($str) - { - // Don't prefix an already prefixed table - if (strpos($str, $this->table_prefix) !== FALSE) - { - return $str; - } - - return $this->table_prefix.$str; - } - - // ------------------------------------------------------------------------- - - /** - * Empty the passed table - * - * @param string $table - * @return \PDOStatement - */ - public function truncate($table) - { - $sql = ($this->has_truncate) - ? 'TRUNCATE ' - : 'DELETE FROM '; - - $sql .= $this->quote_table($table); - - $this->statement = $this->query($sql); - return $this->statement; - } - -} -// End of db_pdo.php diff --git a/docs/files/Query/Driver/Driver_Interface.php.txt b/docs/files/Query/Driver/Driver_Interface.php.txt deleted file mode 100644 index 8cb5357..0000000 --- a/docs/files/Query/Driver/Driver_Interface.php.txt +++ /dev/null @@ -1,275 +0,0 @@ -conn = $conn; - } - - // -------------------------------------------------------------------------- - - /** - * Get the driver object for the current connection - * - * @return Driver_Interface - */ - public function get_driver() - { - return $this->conn; - } - - // -------------------------------------------------------------------------- - - /** - * Convenience public function to generate sql for creating a db table - * - * @param string $name - * @param array $fields - * @param array $constraints - * @param bool $if_not_exists - * @return string - */ - public function create_table($name, $fields, array $constraints=array(), $if_not_exists=TRUE) - { - $exists_str = ($if_not_exists) ? ' IF NOT EXISTS ' : ' '; - - // Reorganize into an array indexed with column information - // Eg $column_array[$colname] = array( - // 'type' => ..., - // 'constraint' => ..., - // 'index' => ..., - // ) - $column_array = \array_zipper(array( - 'type' => $fields, - 'constraint' => $constraints - )); - - // Join column definitions together - $columns = array(); - foreach($column_array as $n => $props) - { - $str = $this->get_driver()->quote_ident($n); - $str .= (isset($props['type'])) ? " {$props['type']}" : ""; - $str .= (isset($props['constraint'])) ? " {$props['constraint']}" : ""; - - $columns[] = $str; - } - - // Generate the sql for the creation of the table - $sql = 'CREATE TABLE'.$exists_str.$this->get_driver()->quote_table($name).' ('; - $sql .= implode(', ', $columns); - $sql .= ')'; - - return $sql; - } - - // -------------------------------------------------------------------------- - - /** - * Drop the selected table - * - * @param string $name - * @return string - */ - public function delete_table($name) - { - return 'DROP TABLE IF EXISTS '.$this->get_driver()->quote_table($name); - } - - - // -------------------------------------------------------------------------- - // ! Abstract Methods - // -------------------------------------------------------------------------- - - /** - * Return an SQL file with the database table structure - * - * @abstract - * @return string - */ - abstract public function backup_structure(); - - // -------------------------------------------------------------------------- - - /** - * Return an SQL file with the database data as insert statements - * - * @abstract - * @return string - */ - abstract public function backup_data(); - -} -// End of abstract_util.php diff --git a/docs/files/autoload.php.html b/docs/files/autoload.php.html index 8e65b63..44367fb 100644 --- a/docs/files/autoload.php.html +++ b/docs/files/autoload.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -488,7 +488,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/autoload.php.txt b/docs/files/autoload.php.txt index 9227b42..cd4ca14 100644 --- a/docs/files/autoload.php.txt +++ b/docs/files/autoload.php.txt @@ -25,7 +25,7 @@ namespace Query; * Reference to root path * @subpackage Core */ -if ( ! defined('QBASE_PATH')) define('QBASE_PATH', dirname(__FILE__).'/'); +if ( ! defined('QBASE_PATH')) define('QBASE_PATH', dirname(__FILE__).'/src/'); /** * Path to driver classes @@ -39,24 +39,7 @@ require(QBASE_PATH.'common.php'); // Load Query Classes spl_autoload_register(function ($class) { - /*$class_segments = explode('\\', $class); - $driver_class = strtolower(array_pop($class_segments)); - - // Load DB Driver classes - $driver_path = QDRIVER_PATH . "{$driver_class}"; - if ($class_segments == array('Query', 'Driver') && is_dir($driver_path)) - { - - // Firebird is a special case, since it's not a PDO driver - // @codeCoverageIgnoreStart - if (function_exists('\\fbird_connect') && $driver_class === 'firebird') - { - array_map('\\do_include', glob("{$driver_path}/*.php")); - } - // @codeCoverageIgnoreEnd - }*/ - - // Load other classes + // Load by namespace $path = str_replace('\\', DIRECTORY_SEPARATOR, $class); $file = QBASE_PATH . "{$path}.php"; diff --git a/docs/files/common.php.html b/docs/files/common.php.html deleted file mode 100644 index 7caea59..0000000 --- a/docs/files/common.php.html +++ /dev/null @@ -1,857 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

common.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -
- - -
- - -
-
-

Functions

-
- -
- -
-
- -
-

do_include()

- -
do_include(string $path) : void
-

Bulk directory loading workaround for use -with array_map and glob

- - -

Parameters

- - - - - - -
string$path
- - -
-
- -
- -
-
- -
-

mb_trim()

- -
mb_trim(string $string) : string
-

Multibyte-safe trim function

- - -

Parameters

- - - - - - -
string$string
- - -

Returns

- string -
-
- -
- -
-
- -
-

db_filter()

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

Filter out db rows into one array

- - -

Parameters

- - - - - - - - - - - -
array$array
mixed$index
- - -

Returns

- array -
-
- -
- -
-
- -
-

from_camel_case()

- -
from_camel_case(string $input) : string
-

Create a snake_case string from camelCase

- - -

Parameters

- - - - - - -
string$input
- - -

Returns

- string -
-
- -
- -
-
- -
-

array_zipper()

- -
array_zipper(array $zipper_input) : array
-

Zip a set of arrays together on common keys

-

The $zipper_input array is an array of arrays indexed by their place in the output -array.

- -

Parameters

- - - - - - -
array$zipper_input
- - -

Returns

- array -
-
- -
- -
-
- -
-

array_pluck()

- -
array_pluck(array $array, string $key) : array
-

Get an array out of an multi-dimensional array based on a common -key

- - -

Parameters

- - - - - - - - - - - -
array$array
string$key
- - -

Returns

- array -
-
- -
- -
-
- -
-

regex_in_array()

- -
regex_in_array(array $array, string $pattern) : bool
-

Determine whether a value in the passed array matches the pattern -passed

- - -

Parameters

- - - - - - - - - - - -
array$array
string$pattern
- - -

Returns

- bool -
-
- -
- -
-
- -
-

Query()

- -
Query(string|object|array $params) : \Query\Query_Builder|null
-

Connection function

-

Send an array or object as connection parameters to create a connection. If -the array or object has an 'alias' parameter, passing that string to this -function will return that connection. Passing no parameters returns the last -connection created.

- -

Parameters

- - - - - - -
string|object|array$params
- - -

Returns

- \Query\Query_Builder|null -
-
- -
- - -
-
- - - - -
- - - diff --git a/docs/files/common.php.txt b/docs/files/common.php.txt deleted file mode 100644 index c20ccd8..0000000 --- a/docs/files/common.php.txt +++ /dev/null @@ -1,228 +0,0 @@ - $values) - { - foreach($values as $index => $value) - { - if ( ! isset($output[$index])) - { - $output[$index] = array(); - } - $output[$index][$append_key] = $value; - } - } - - return $output; - } -} - -// -------------------------------------------------------------------------- - -if ( ! function_exists('array_pluck')) -{ - /** - * Get an array out of an multi-dimensional array based on a common - * key - * - * @param array $array - * @param string $key - * @return array - */ - function array_pluck(Array $array, $key) - { - $output = array(); - - // No point iterating over an empty array - if (empty($array)) return $array; - - foreach($array as $inner_array) - { - if (array_key_exists($key, $inner_array)) - { - $output[] = $inner_array[$key]; - } - } - - return $output; - } -} - -// -------------------------------------------------------------------------- - -if ( ! function_exists('regex_in_array')) -{ - /** - * Determine whether a value in the passed array matches the pattern - * passed - * - * @param array $array - * @param string $pattern - * @return bool - */ - function regex_in_array(Array $array, $pattern) - { - if (empty($array)) return FALSE; - - foreach($array as $item) - { - if (is_scalar($item)) - { - if (preg_match($pattern, $item)) return TRUE; - } - } - - return FALSE; - } -} - -// -------------------------------------------------------------------------- - -if ( ! function_exists('Query')) -{ - /** - * Connection function - * - * Send an array or object as connection parameters to create a connection. If - * the array or object has an 'alias' parameter, passing that string to this - * function will return that connection. Passing no parameters returns the last - * connection created. - * - * @param string|object|array $params - * @return Query\Query_Builder|null - */ - function Query($params = '') - { - $cmanager = \Query\Connection_Manager::get_instance(); - - // If you are getting a previously created connection - if (is_scalar($params)) - { - return $cmanager->get_connection($params); - } - elseif ( ! is_scalar($params) && ! is_null($params)) - { - $params_object = (object) $params; - - // Otherwise, return a new connection - return $cmanager->connect($params_object); - } - // @codeCoverageIgnoreStart - } - // @codeCoverageIgnoreEnd -} -// End of common.php diff --git a/docs/files/drivers.firebird.firebird_driver.php.html b/docs/files/drivers.firebird.firebird_driver.php.html deleted file mode 100644 index 81a2da0..0000000 --- a/docs/files/drivers.firebird.firebird_driver.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/firebirdfirebird_driver.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
FirebirdFirebird Database class
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.firebird.firebird_result.php.html b/docs/files/drivers.firebird.firebird_result.php.html deleted file mode 100644 index 41507d6..0000000 --- a/docs/files/drivers.firebird.firebird_result.php.html +++ /dev/null @@ -1,374 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/firebirdfirebird_result.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
Firebird_ResultFirebird result class to emulate PDOStatement Class - only implements -data-fetching methods
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.firebird.firebird_sql.php.html b/docs/files/drivers.firebird.firebird_sql.php.html deleted file mode 100644 index 3f1f61e..0000000 --- a/docs/files/drivers.firebird.firebird_sql.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/firebirdfirebird_sql.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
Firebird_SQLFirebird Specific SQL
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.firebird.firebird_util.php.html b/docs/files/drivers.firebird.firebird_util.php.html deleted file mode 100644 index 65835b3..0000000 --- a/docs/files/drivers.firebird.firebird_util.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/firebirdfirebird_util.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
Firebird_UtilFirebird-specific backup, import and creation methods
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.mysql.mysql_driver.php.html b/docs/files/drivers.mysql.mysql_driver.php.html deleted file mode 100644 index 5d457db..0000000 --- a/docs/files/drivers.mysql.mysql_driver.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/mysqlmysql_driver.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
MySQLMySQL specific class
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.mysql.mysql_sql.php.html b/docs/files/drivers.mysql.mysql_sql.php.html deleted file mode 100644 index 3e11e39..0000000 --- a/docs/files/drivers.mysql.mysql_sql.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/mysqlmysql_sql.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
MySQL_SQLMySQL specifc SQL
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.mysql.mysql_util.php.html b/docs/files/drivers.mysql.mysql_util.php.html deleted file mode 100644 index e9a4773..0000000 --- a/docs/files/drivers.mysql.mysql_util.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/mysqlmysql_util.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
MySQL_UtilMySQL-specific backup, import and creation methods
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.pgsql.pgsql_driver.php.html b/docs/files/drivers.pgsql.pgsql_driver.php.html deleted file mode 100644 index 5f7d937..0000000 --- a/docs/files/drivers.pgsql.pgsql_driver.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/pgsqlpgsql_driver.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
PgSQLPostgreSQL specifc class
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.pgsql.pgsql_sql.php.html b/docs/files/drivers.pgsql.pgsql_sql.php.html deleted file mode 100644 index 91879fc..0000000 --- a/docs/files/drivers.pgsql.pgsql_sql.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/pgsqlpgsql_sql.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
PgSQL_SQLPostgreSQL specifc SQL
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.pgsql.pgsql_util.php.html b/docs/files/drivers.pgsql.pgsql_util.php.html deleted file mode 100644 index ef8b01a..0000000 --- a/docs/files/drivers.pgsql.pgsql_util.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/pgsqlpgsql_util.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
PgSQL_UtilPosgres-specific backup, import and creation methods
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.sqlite.sqlite_driver.php.html b/docs/files/drivers.sqlite.sqlite_driver.php.html deleted file mode 100644 index 08166d5..0000000 --- a/docs/files/drivers.sqlite.sqlite_driver.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/sqlitesqlite_driver.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
SQLiteSQLite specific class
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.sqlite.sqlite_sql.php.html b/docs/files/drivers.sqlite.sqlite_sql.php.html deleted file mode 100644 index 2ab1539..0000000 --- a/docs/files/drivers.sqlite.sqlite_sql.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/sqlitesqlite_sql.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
SQLite_SQLSQLite Specific SQL
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers.sqlite.sqlite_util.php.html b/docs/files/drivers.sqlite.sqlite_util.php.html deleted file mode 100644 index 89b1269..0000000 --- a/docs/files/drivers.sqlite.sqlite_util.php.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

drivers/sqlitesqlite_util.php

-

Query

-

Free Query Builder / Database Abstraction Layer

- - - -

Classes

- - - - - -
SQLite_UtilSQLite-specific backup, import and creation methods
-
- - -
- - - -
-
- - - - -
- - - diff --git a/docs/files/drivers/firebird/firebird_driver.php.txt b/docs/files/drivers/firebird/firebird_driver.php.txt deleted file mode 100644 index efa6ada..0000000 --- a/docs/files/drivers/firebird/firebird_driver.php.txt +++ /dev/null @@ -1,401 +0,0 @@ -conn = $connect_function($dbpath, $user, $pass, 'utf-8', 0); - $this->service = \fbird_service_attach('localhost', $user, $pass); - - // Throw an exception to make this match other pdo classes - if ( ! \is_resource($this->conn)) throw new \PDOException(\fbird_errmsg(), \fbird_errcode(), NULL); - - // Load these classes here because this - // driver does not call the constructor - // of DB_PDO, which defines these - // class variables for the other drivers - $this->_load_sub_classes(); - } - - // -------------------------------------------------------------------------- - - /** - * Cleanup some loose ends - * @codeCoverageIgnore - */ - public function __destruct() - { - \fbird_service_detach($this->service); - } - - // -------------------------------------------------------------------------- - - /** - * Return service handle - * - * @return resource - */ - public function get_service() - { - return $this->service; - } - - - // -------------------------------------------------------------------------- - - /** - * Execute an sql statement and return number of affected rows - * - * @param string $sql - * @return int - */ - public function exec($sql) - { - return NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Implement for compatibility with PDO - * - * @param int $attribute - * @return mixed - */ - public function getAttribute($attribute) - { - return NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Return whether the current statement is in a transaction - * - * @return bool - */ - public function inTransaction() - { - return ! is_null($this->trans); - } - - // -------------------------------------------------------------------------- - - /** - * Returns the last value of the specified generator - * - * @param string $name - * @return mixed - */ - public function lastInsertId($name = NULL) - { - return \fbird_gen_id($name, 0, $this->conn); - } - - // -------------------------------------------------------------------------- - - /** - * Wrapper public function to better match PDO - * - * @param string $sql - * @return Firebird_Result - * @throws PDOException - */ - public function query($sql = '') - { - - if (empty($sql)) throw new \PDOException("Query method requires an sql query!", 0, NULL); - - $this->statement_link = (isset($this->trans)) - ? \fbird_query($this->trans, $sql) - : \fbird_query($this->conn, $sql); - - // Throw the error as a exception - $err_string = \fbird_errmsg() . "Last query:" . $this->last_query; - if ($this->statement_link === FALSE) throw new \PDOException($err_string, \fbird_errcode(), NULL); - - $this->statement = new FireBird_Result($this->statement_link, $this); - - return $this->statement; - } - - // -------------------------------------------------------------------------- - - /** - * Emulate PDO prepare - * - * @param string $query - * @param array $options - * @return Firebird_Result - * @throws \PDOException - */ - public function prepare($query, $options=array()) - { - $this->statement_link = \fbird_prepare($this->conn, $query); - - // Throw the error as an exception - if ($this->statement_link === FALSE) throw new \PDOException(\fbird_errmsg(), \fbird_errcode(), NULL); - - $this->statement = new FireBird_Result($this->statement_link, $this); - - return $this->statement; - } - - // -------------------------------------------------------------------------- - - /** - * Start a database transaction - * - * @return boolean|null - */ - public function beginTransaction() - { - return (($this->trans = \fbird_trans($this->conn)) !== NULL) ? TRUE : NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Commit a database transaction - * - * @return bool - */ - public function commit() - { - $res = \fbird_commit($this->trans); - $this->trans = NULL; - return $res; - } - - // -------------------------------------------------------------------------- - - /** - * Rollback a transaction - * - * @return bool - */ - public function rollBack() - { - $res = \fbird_rollback($this->trans); - $this->trans = NULL; - return $res; - } - - // -------------------------------------------------------------------------- - - /** - * Set a connection attribute - * @param int $attribute - * @param mixed $value - * @return bool - */ - public function setAttribute($attribute, $value) - { - return FALSE; - } - - // -------------------------------------------------------------------------- - - /** - * Prepare and execute a query - * - * @param string $sql - * @param array $args - * @return Firebird_Result - */ - public function prepare_execute($sql, $args) - { - $query = $this->prepare($sql); - - // Set the statement in the class variable for easy later access - $this->statement_link =& $query; - - return $query->execute($args); - } - - // -------------------------------------------------------------------------- - - /** - * Method to emulate PDO->quote - * - * @param string $str - * @param int $param_type - * @return string - */ - public function quote($str, $param_type = \PDO::PARAM_STR) - { - if(is_numeric($str)) - { - return $str; - } - - return "'".str_replace("'", "''", $str)."'"; - } - - // -------------------------------------------------------------------------- - - /** - * Method to emulate PDO->errorInfo / PDOStatement->errorInfo - * - * @return array - */ - public function errorInfo() - { - $code = \fbird_errcode(); - $msg = \fbird_errmsg(); - - return array(0, $code, $msg); - } - - // -------------------------------------------------------------------------- - - /** - * Method to emulate PDO->errorCode - * - * @return array - */ - public function errorCode() - { - return \fbird_errcode(); - } - - // -------------------------------------------------------------------------- - - /** - * Bind a prepared query with arguments for executing - * - * @param string $sql - * @param array $params - * @return NULL - */ - public function prepare_query($sql, $params) - { - // You can't bind query statements before execution with - // the firebird database - return NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Create sql for batch insert - * - * @param string $table - * @param array $data - * @return array - */ - public function insert_batch($table, $data=array()) - { - // Each member of the data array needs to be an array - if ( ! is_array(current($data))) return NULL; - - // Start the block of sql statements - $sql = "EXECUTE BLOCK AS BEGIN\n"; - - $table = $this->quote_table($table); - $fields = \array_keys(\current($data)); - - $insert_template = "INSERT INTO {$table} (" - . implode(',', $this->quote_ident($fields)) - . ") VALUES ("; - - foreach($data as $item) - { - // Quote string values - $vals = array_map(array($this, 'quote'), $item); - - // Add the values in the sql - $sql .= $insert_template . implode(', ', $vals) . ");\n"; - } - - // End the block of SQL statements - $sql .= "END"; - - // Return a null array value so the query is run as it is, - // not as a prepared statement, because a prepared statement - // doesn't work for this type of query in Firebird. - return array($sql, NULL); - } -} -// End of firebird_driver.php diff --git a/docs/files/drivers/firebird/firebird_result.php.txt b/docs/files/drivers/firebird/firebird_result.php.txt deleted file mode 100644 index 2886800..0000000 --- a/docs/files/drivers/firebird/firebird_result.php.txt +++ /dev/null @@ -1,299 +0,0 @@ -db = $db; - $this->statement = $link; - $this->setFetchMode(\PDO::FETCH_ASSOC); - $this->row = -1; - $this->result = array(); - - // Create the result array, so that we can get row counts - // Check the resource type, because prepared statements are "interbase query" - // but we only want "interbase result" types when attempting to fetch data - if (\is_resource($link) && \get_resource_type($link) === "interbase result") - { - while($row = \fbird_fetch_assoc($link, \IBASE_FETCH_BLOBS)) - { - $this->result[] = $row; - } - - // Free the result resource - \fbird_free_result($link); - } - } - - // -------------------------------------------------------------------------- - - /** - * Invalidate method for data consistency - * - * @param mixed $column - * @param mixed $param - * @param int $type - * @param mixed $maxlen - * @param array $driverdata - * @return NULL - */ - public function bindColumn($column, &$param, $type=NULL, $maxlen=NULL, $driverdata=NULL) - { - return NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Invalidate method for data consistency - * - * @param mixed $parameter - * @param mixed $variable - * @param int $data_type - * @param mixed $maxlen - * @param array $driverdata - * @return NULL - */ - public function bindParam($parameter, &$variable, $data_type=NULL, $maxlen=NULL, $driverdata=NULL) - { - return NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Invalidate method for data consistency - * - * @param mixed $parameter - * @param mixed $variable - * @param int $data_type - * @return NULL - */ - public function bindValue($parameter, $variable, $data_type=NULL) - { - return NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Run a prepared statement query - * - * @param array $args - * @return Firebird_Result - */ - public function execute($args = NULL) - { - //Add the prepared statement as the first parameter - \array_unshift($args, $this->statement); - - // Let php do all the hard stuff in converting - // the array of arguments into a list of arguments - // Then pass the resource to the constructor - $this->__construct(\call_user_func_array('fbird_execute', $args)); - - return $this; - } - - // -------------------------------------------------------------------------- - - /** - * Emulate PDO fetch public function - * - * @param int $fetch_style - * @param mixed $cursor_orientation - * @param mixed $cursor_offset - * @return mixed - */ - public function fetch($fetch_style=\PDO::FETCH_ASSOC, $cursor_orientation = \PDO::FETCH_ORI_NEXT, $cursor_offset=NULL) - { - // If there is no result, continue - if (empty($this->result)) - { - return NULL; - } - - // Keep track of the current row being fetched - ++$this->row; - - // return NULL if the next row doesn't exist - if ( ! isset($this->result[$this->row])) - { - return NULL; - } - - switch($fetch_style) - { - case \PDO::FETCH_OBJ: - $row = (object) $this->result[$this->row]; - break; - - case \PDO::FETCH_NUM: - $row = \array_values($this->result[$this->row]); - break; - - default: - $row = $this->result[$this->row]; - break; - } - - return $row; - } - - // -------------------------------------------------------------------------- - - /** - * Emulate PDO fetchAll public function - * - * @param int $fetch_style - * @param mixed $statement - * @param mixed $ctor_args - * @return mixed - */ - public function fetchAll($fetch_style=\PDO::FETCH_ASSOC, $statement=NULL, $ctor_args=NULL) - { - $all = array(); - - while($row = $this->fetch($fetch_style, $statement)) - { - $all[] = $row; - } - - $this->result = $all; - - return $all; - } - - // -------------------------------------------------------------------------- - - /** - * Emulate PDOStatement::fetchColumn - * - * @param int $column_num - * @return mixed - */ - public function fetchColumn($column_num=0) - { - $row = $this->fetch(\PDO::FETCH_NUM); - return $row[$column_num]; - } - - // -------------------------------------------------------------------------- - - /** - * Emulate PDOStatement::fetchObject, but only for the default use - * - * @param string $class_name - * @param array $ctor_args - * @return stdClass - */ - public function fetchObject($class_name='stdClass', $ctor_args=array()) - { - return $this->fetch(\PDO::FETCH_OBJ); - } - - // -------------------------------------------------------------------------- - - /** - * Return the number of rows affected by the previous query - * - * @return int - */ - public function rowCount() - { - $rows = \fbird_affected_rows(); - - // Get the number of rows for the select query if you can - if ($rows === 0 && \is_resource($this->statement) && \get_resource_type($this->statement) === "interbase result") - { - // @codeCoverageIgnoreStart - $rows = \count($this->result); - } - // @codeCoverageIgnoreEnd - - return $rows; - } - - // -------------------------------------------------------------------------- - - /** - * Method to emulate PDOStatement->errorCode - * - * @return string - */ - public function errorCode() - { - return $this->db->errorCode(); - } - - // -------------------------------------------------------------------------- - - /** - * Method to emulate PDO->errorInfo / PDOStatement->errorInfo - * - * @return array - */ - public function errorInfo() - { - return $this->db->errorInfo(); - } -} -// End of firebird_result.php diff --git a/docs/files/drivers/firebird/firebird_sql.php.txt b/docs/files/drivers/firebird/firebird_sql.php.txt deleted file mode 100644 index 37e5a9b..0000000 --- a/docs/files/drivers/firebird/firebird_sql.php.txt +++ /dev/null @@ -1,319 +0,0 @@ - 0) - { - $sql .= ' SKIP '. (int) $offset; - } - - $sql = preg_replace("`SELECT`i", "SELECT {$sql}", $orig_sql); - - return $sql; - } - - // -------------------------------------------------------------------------- - - /** - * Get the query plan for the sql query - * - * @param string $sql - * @return string - */ - public function explain($sql) - { - return $sql; - } - - // -------------------------------------------------------------------------- - - /** - * Random ordering keyword - * - * @return string - */ - public function random() - { - return NULL; - } - - - // -------------------------------------------------------------------------- - - /** - * Returns sql to list other databases - * - * @return NULL - */ - public function db_list() - { - return NULL; - } - - // -------------------------------------------------------------------------- - - /** - * Returns sql to list tables - * - * @return string - */ - public function table_list() - { - return << d2.RDB\$DEPENDED_ON_NAME - AND d1.RDB\$FIELD_NAME <> d2.RDB\$FIELD_NAME - AND rc.RDB\$RELATION_NAME = '{$table}' -- table name -SQL; - } - - // -------------------------------------------------------------------------- - - /** - * Get the list of indexes for the current table - * - * @param string $table - * @return array - */ - public function index_list($table) - { - return <<get_driver()->quote_table($name); - } - - // -------------------------------------------------------------------------- - - /** - * Create an SQL backup file for the current database's structure - * @codeCoverageIgnore - * @param string $db_path - * @param string $new_file - * @return string - */ - public function backup_structure() - { - list($db_path, $new_file) = func_get_args(); - return ibase_backup($this->get_driver()->get_service(), $db_path, $new_file, \IBASE_BKP_METADATA_ONLY); - } - - // -------------------------------------------------------------------------- - - /** - * Create an SQL backup file for the current database's data - * - * @codeCoverageIgnore - * @param array $exclude - * @param bool $system_tables - * @return string - */ - public function backup_data($exclude=array(), $system_tables=FALSE) - { - // Determine which tables to use - $tables = $this->get_driver()->get_tables(); - if($system_tables == TRUE) - { - $tables = array_merge($tables, $this->get_driver()->get_system_tables()); - } - - // Filter out the tables you don't want - if( ! empty($exclude)) - { - $tables = array_diff($tables, $exclude); - } - - $output_sql = ''; - - // Get the data for each object - foreach($tables as $t) - { - $sql = 'SELECT * FROM "'.trim($t).'"'; - $res = $this->get_driver()->query($sql); - $obj_res = $res->fetchAll(\PDO::FETCH_ASSOC); - - // Don't add to the file if the table is empty - if (count($obj_res) < 1) continue; - - // Nab the column names by getting the keys of the first row - $columns = @array_keys($obj_res[0]); - - $insert_rows = array(); - - // Create the insert statements - foreach($obj_res as $row) - { - $row = array_values($row); - - // Quote values as needed by type - if(stripos($t, 'RDB$') === FALSE) - { - $row = array_map(array($this->get_driver(), 'quote'), $row); - $row = array_map('trim', $row); - } - - $row_string = 'INSERT INTO "'.trim($t).'" ("'.implode('","', $columns).'") VALUES ('.implode(',', $row).');'; - - $row = NULL; - - $insert_rows[] = $row_string; - } - - $output_sql .= "\n\nSET TRANSACTION;\n".implode("\n", $insert_rows)."\nCOMMIT;"; - } - - return $output_sql; - } -} -// End of firebird_util.php diff --git a/docs/files/drivers/mysql/mysql_driver.php.txt b/docs/files/drivers/mysql/mysql_driver.php.txt deleted file mode 100644 index a1afd86..0000000 --- a/docs/files/drivers/mysql/mysql_driver.php.txt +++ /dev/null @@ -1,56 +0,0 @@ - "SET NAMES UTF-8 COLLATE 'UTF-8'", - )); - } - - if (strpos($dsn, 'mysql') === FALSE) $dsn = 'mysql:'.$dsn; - - parent::__construct($dsn, $username, $password, $options); - } -} -//End of mysql_driver.php diff --git a/docs/files/drivers/mysql/mysql_sql.php.txt b/docs/files/drivers/mysql/mysql_sql.php.txt deleted file mode 100644 index 3ca8f6c..0000000 --- a/docs/files/drivers/mysql/mysql_sql.php.txt +++ /dev/null @@ -1,234 +0,0 @@ -get_driver()->get_dbs(); - - foreach($dbs as &$d) - { - // Skip built-in dbs - if ($d == 'mysql') continue; - - // Get the list of tables - $tables = $this->get_driver()->driver_query("SHOW TABLES FROM `{$d}`", TRUE); - - foreach($tables as $table) - { - $array = $this->get_driver()->driver_query("SHOW CREATE TABLE `{$d}`.`{$table}`", FALSE); - $row = current($array); - - if ( ! isset($row['Create Table'])) continue; - - - $string[] = $row['Create Table']; - } - } - - return implode("\n\n", $string); - } - - // -------------------------------------------------------------------------- - - /** - * Create an SQL backup file for the current database's data - * - * @param array $exclude - * @return string - */ - public function backup_data($exclude=array()) - { - $tables = $this->get_driver()->get_tables(); - - // Filter out the tables you don't want - if( ! empty($exclude)) - { - $tables = array_diff($tables, $exclude); - } - - $output_sql = ''; - - // Select the rows from each Table - foreach($tables as $t) - { - $sql = "SELECT * FROM `{$t}`"; - $res = $this->get_driver()->query($sql); - $rows = $res->fetchAll(\PDO::FETCH_ASSOC); - - // Skip empty tables - if (count($rows) < 1) continue; - - // Nab the column names by getting the keys of the first row - $columns = @array_keys($rows[0]); - - $insert_rows = array(); - - // Create the insert statements - foreach($rows as $row) - { - $row = array_values($row); - - // Workaround for Quercus - foreach($row as &$r) - { - $r = $this->get_driver()->quote($r); - } - $row = array_map('trim', $row); - - $row_string = 'INSERT INTO `'.trim($t).'` (`'.implode('`,`', $columns).'`) VALUES ('.implode(',', $row).');'; - - $row = NULL; - - $insert_rows[] = $row_string; - } - - $output_sql .= "\n\n".implode("\n", $insert_rows)."\n"; - } - - return $output_sql; - } -} -// End of mysql_util.php - diff --git a/docs/files/drivers/pgsql/pgsql_driver.php.txt b/docs/files/drivers/pgsql/pgsql_driver.php.txt deleted file mode 100644 index db431ee..0000000 --- a/docs/files/drivers/pgsql/pgsql_driver.php.txt +++ /dev/null @@ -1,89 +0,0 @@ -driver_query($sql); - } - - // -------------------------------------------------------------------------- - - /** - * Retrieve foreign keys for the table - * - * @param string $table - * @return array - */ - public function get_fks($table) - { - $value_map = array( - 'c' => 'CASCADE', - 'r' => 'RESTRICT', - ); - - $keys = parent::get_fks($table); - - foreach($keys as &$key) - { - foreach(array('update', 'delete') AS $type) - { - if ( ! isset($value_map[$key[$type]])) continue; - - $key[$type] = $value_map[$key[$type]]; - } - } - - return $keys; - } -} -//End of pgsql_driver.php diff --git a/docs/files/drivers/pgsql/pgsql_sql.php.txt b/docs/files/drivers/pgsql/pgsql_sql.php.txt deleted file mode 100644 index e13b2c3..0000000 --- a/docs/files/drivers/pgsql/pgsql_sql.php.txt +++ /dev/null @@ -1,304 +0,0 @@ -get_driver()->get_tables(); - - // Filter out the tables you don't want - if( ! empty($exclude)) - { - $tables = array_diff($tables, $exclude); - } - - $output_sql = ''; - - // Get the data for each object - foreach($tables as $t) - { - $sql = 'SELECT * FROM "'.trim($t).'"'; - $res = $this->get_driver()->query($sql); - $obj_res = $res->fetchAll(\PDO::FETCH_ASSOC); - - // Don't add to the file if the table is empty - if (count($obj_res) < 1) continue; - - $res = NULL; - - // Nab the column names by getting the keys of the first row - $columns = @array_keys($obj_res[0]); - - $insert_rows = array(); - - // Create the insert statements - foreach($obj_res as $row) - { - $row = array_values($row); - - // Quote values as needed by type - $row = array_map(array($this->get_driver(), 'quote'), $row); - $row = array_map('trim', $row); - - - $row_string = 'INSERT INTO "'.trim($t).'" ("'.implode('","', $columns).'") VALUES ('.implode(',', $row).');'; - - $row = NULL; - - $insert_rows[] = $row_string; - } - - $obj_res = NULL; - - $output_sql .= "\n\n".implode("\n", $insert_rows)."\n"; - } - - return $output_sql; - } -} -// End of pgsql_util.php - diff --git a/docs/files/drivers/sqlite/sqlite_driver.php.txt b/docs/files/drivers/sqlite/sqlite_driver.php.txt deleted file mode 100644 index 85b8922..0000000 --- a/docs/files/drivers/sqlite/sqlite_driver.php.txt +++ /dev/null @@ -1,143 +0,0 @@ -sql->table_list(); - $res = $this->query($sql); - return db_filter($res->fetchAll(\PDO::FETCH_ASSOC), 'name'); - } - - // -------------------------------------------------------------------------- - - /** - * Retrieve foreign keys for the table - * - * @param string $table - * @return array - */ - public function get_fks($table) - { - $return_rows = array(); - - foreach(parent::get_fks($table) as $row) - { - $return_rows[] = array( - 'child_column' => $row['from'], - 'parent_table' => $row['table'], - 'parent_column' => $row['to'], - 'update' => $row['on_update'], - 'delete' => $row['on_delete'] - ); - } - - return $return_rows; - } - - // -------------------------------------------------------------------------- - - /** - * Create sql for batch insert - * - * @codeCoverageIgnore - * @param string $table - * @param array $data - * @return string - */ - public function insert_batch($table, $data=array()) - { - // If greater than version 3.7.11, supports the same syntax as - // MySQL and Postgres - if (version_compare($this->getAttribute(\PDO::ATTR_SERVER_VERSION), '3.7.11', '>=')) - { - return parent::insert_batch($table, $data); - } - - // -------------------------------------------------------------------------- - // Otherwise, do a union query as an analogue to a 'proper' batch insert - // -------------------------------------------------------------------------- - - // Each member of the data array needs to be an array - if ( ! is_array(current($data))) return NULL; - - // Start the block of sql statements - $table = $this->quote_table($table); - $sql = "INSERT INTO {$table} \n"; - - // Create a key-value mapping for each field - $first = array_shift($data); - $cols = array(); - foreach($first as $colname => $datum) - { - $cols[] = $this->_quote($datum) . ' AS ' . $this->quote_ident($colname); - } - $sql .= "SELECT " . implode(', ', $cols) . "\n"; - - foreach($data as $union) - { - $vals = array_map(array($this, 'quote'), $union); - $sql .= "UNION SELECT " . implode(',', $vals) . "\n"; - } - - return array($sql, NULL); - } -} -//End of sqlite_driver.php diff --git a/docs/files/drivers/sqlite/sqlite_sql.php.txt b/docs/files/drivers/sqlite/sqlite_sql.php.txt deleted file mode 100644 index 433c239..0000000 --- a/docs/files/drivers/sqlite/sqlite_sql.php.txt +++ /dev/null @@ -1,206 +0,0 @@ -get_driver()->query($sql); - $result = $res->fetchAll(\PDO::FETCH_ASSOC); - - unset($res); - - $output_sql = ''; - - // Get the data for each object - foreach($result as $r) - { - $sql = 'SELECT * FROM "'.$r['name'].'"'; - $res = $this->get_driver()->query($sql); - $obj_res = $res->fetchAll(\PDO::FETCH_ASSOC); - - unset($res); - - // If the row is empty, continue; - if (empty($obj_res)) continue; - - // Nab the column names by getting the keys of the first row - $columns = array_keys(current($obj_res)); - - $insert_rows = array(); - - // Create the insert statements - foreach($obj_res as $row) - { - $row = array_values($row); - - // Quote values as needed by type - for($i=0, $icount=count($row); $i<$icount; $i++) - { - $row[$i] = (is_numeric($row[$i])) ? $row[$i] : $this->get_driver()->quote($row[$i]); - } - - $row_string = 'INSERT INTO "'.$r['name'].'" ("'.implode('","', $columns).'") VALUES ('.implode(',', $row).');'; - - unset($row); - - $insert_rows[] = $row_string; - } - - unset($obj_res); - - $output_sql .= "\n\n".implode("\n", $insert_rows); - } - - return $output_sql; - } - - // -------------------------------------------------------------------------- - - /** - * Create an SQL backup file for the current database's structure - * - * @return string - */ - public function backup_structure() - { - // Fairly easy for SQLite...just query the master table - $sql = 'SELECT "sql" FROM "sqlite_master"'; - $res = $this->get_driver()->query($sql); - $result = $res->fetchAll(\PDO::FETCH_ASSOC); - - $sql_array = array(); - - foreach($result as $r) - { - $sql_array[] = $r['sql']; - } - - $sql_structure = implode(";\n", $sql_array) . ";"; - - return $sql_structure; - } -} -// End of sqlite_util.php diff --git a/docs/files/Query.Abstract_Driver.php.html b/docs/files/src.Query.Abstract_Driver.php.html similarity index 91% rename from docs/files/Query.Abstract_Driver.php.html rename to docs/files/src.Query.Abstract_Driver.php.html index 3f05b8b..c90999b 100644 --- a/docs/files/Query.Abstract_Driver.php.html +++ b/docs/files/src.Query.Abstract_Driver.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryAbstract_Driver.php

+

src/QueryAbstract_Driver.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Abstract_Query_Builder.php.html b/docs/files/src.Query.Abstract_Query_Builder.php.html similarity index 91% rename from docs/files/Query.Abstract_Query_Builder.php.html rename to docs/files/src.Query.Abstract_Query_Builder.php.html index fed757b..922e606 100644 --- a/docs/files/Query.Abstract_Query_Builder.php.html +++ b/docs/files/src.Query.Abstract_Query_Builder.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryAbstract_Query_Builder.php

+

src/QueryAbstract_Query_Builder.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Abstract_SQL.php.html b/docs/files/src.Query.Abstract_SQL.php.html similarity index 91% rename from docs/files/Query.Abstract_SQL.php.html rename to docs/files/src.Query.Abstract_SQL.php.html index 922db54..47a2d0f 100644 --- a/docs/files/Query.Abstract_SQL.php.html +++ b/docs/files/src.Query.Abstract_SQL.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryAbstract_SQL.php

+

src/QueryAbstract_SQL.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Abstract_Util.php.html b/docs/files/src.Query.Abstract_Util.php.html similarity index 91% rename from docs/files/Query.Abstract_Util.php.html rename to docs/files/src.Query.Abstract_Util.php.html index 97b04cf..451523e 100644 --- a/docs/files/Query.Abstract_Util.php.html +++ b/docs/files/src.Query.Abstract_Util.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryAbstract_Util.php

+

src/QueryAbstract_Util.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.BadDBDriverException.php.html b/docs/files/src.Query.BadDBDriverException.php.html similarity index 91% rename from docs/files/Query.BadDBDriverException.php.html rename to docs/files/src.Query.BadDBDriverException.php.html index e770c02..7bc204d 100644 --- a/docs/files/Query.BadDBDriverException.php.html +++ b/docs/files/src.Query.BadDBDriverException.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryBadDBDriverException.php

+

src/QueryBadDBDriverException.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Connection_Manager.php.html b/docs/files/src.Query.Connection_Manager.php.html similarity index 91% rename from docs/files/Query.Connection_Manager.php.html rename to docs/files/src.Query.Connection_Manager.php.html index 3734cf0..9acf637 100644 --- a/docs/files/Query.Connection_Manager.php.html +++ b/docs/files/src.Query.Connection_Manager.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryConnection_Manager.php

+

src/QueryConnection_Manager.php

Query

Free Query Builder / Database Abstraction Layer

@@ -376,7 +376,7 @@ Query method

@@ -417,7 +417,7 @@ Query method

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Driver_Interface.php.html b/docs/files/src.Query.Driver_Interface.php.html similarity index 91% rename from docs/files/Query.Driver_Interface.php.html rename to docs/files/src.Query.Driver_Interface.php.html index 3a99dbd..722bd28 100644 --- a/docs/files/Query.Driver_Interface.php.html +++ b/docs/files/src.Query.Driver_Interface.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryDriver_Interface.php

+

src/QueryDriver_Interface.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Firebird.Driver.php.html b/docs/files/src.Query.Drivers.Firebird.Driver.php.html similarity index 91% rename from docs/files/Query.Drivers.Firebird.Driver.php.html rename to docs/files/src.Query.Drivers.Firebird.Driver.php.html index f48257a..7b8bd5e 100644 --- a/docs/files/Query.Drivers.Firebird.Driver.php.html +++ b/docs/files/src.Query.Drivers.Firebird.Driver.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/FirebirdDriver.php

+

src/Query/Drivers/FirebirdDriver.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Firebird.Result.php.html b/docs/files/src.Query.Drivers.Firebird.Result.php.html similarity index 91% rename from docs/files/Query.Drivers.Firebird.Result.php.html rename to docs/files/src.Query.Drivers.Firebird.Result.php.html index 854a05e..f4284e9 100644 --- a/docs/files/Query.Drivers.Firebird.Result.php.html +++ b/docs/files/src.Query.Drivers.Firebird.Result.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/FirebirdResult.php

+

src/Query/Drivers/FirebirdResult.php

Query

Free Query Builder / Database Abstraction Layer

@@ -376,7 +376,7 @@ data-fetching methods

@@ -417,7 +417,7 @@ data-fetching methods

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Pdo_firebird.SQL.php.html b/docs/files/src.Query.Drivers.Firebird.SQL.php.html similarity index 91% rename from docs/files/Query.Drivers.Pdo_firebird.SQL.php.html rename to docs/files/src.Query.Drivers.Firebird.SQL.php.html index 9933cf8..f06b993 100644 --- a/docs/files/Query.Drivers.Pdo_firebird.SQL.php.html +++ b/docs/files/src.Query.Drivers.Firebird.SQL.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/Pdo_firebirdSQL.php

+

src/Query/Drivers/FirebirdSQL.php

Query

Free Query Builder / Database Abstraction Layer

@@ -318,7 +318,7 @@

Classes

- +
SQLSQL Firebird Specific SQL
@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Pdo_firebird.Util.php.html b/docs/files/src.Query.Drivers.Firebird.Util.php.html similarity index 91% rename from docs/files/Query.Drivers.Pdo_firebird.Util.php.html rename to docs/files/src.Query.Drivers.Firebird.Util.php.html index adb9f82..b26a69d 100644 --- a/docs/files/Query.Drivers.Pdo_firebird.Util.php.html +++ b/docs/files/src.Query.Drivers.Firebird.Util.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/Pdo_firebirdUtil.php

+

src/Query/Drivers/FirebirdUtil.php

Query

Free Query Builder / Database Abstraction Layer

@@ -318,7 +318,7 @@

Classes

- +
UtilUtil Firebird-specific backup, import and creation methods
@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Mysql.Driver.php.html b/docs/files/src.Query.Drivers.Mysql.Driver.php.html similarity index 91% rename from docs/files/Query.Drivers.Mysql.Driver.php.html rename to docs/files/src.Query.Drivers.Mysql.Driver.php.html index 2bce8fb..7fdaa25 100644 --- a/docs/files/Query.Drivers.Mysql.Driver.php.html +++ b/docs/files/src.Query.Drivers.Mysql.Driver.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/MysqlDriver.php

+

src/Query/Drivers/MysqlDriver.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Mysql.SQL.php.html b/docs/files/src.Query.Drivers.Mysql.SQL.php.html similarity index 91% rename from docs/files/Query.Drivers.Mysql.SQL.php.html rename to docs/files/src.Query.Drivers.Mysql.SQL.php.html index 3e41718..59deeed 100644 --- a/docs/files/Query.Drivers.Mysql.SQL.php.html +++ b/docs/files/src.Query.Drivers.Mysql.SQL.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/MysqlSQL.php

+

src/Query/Drivers/MysqlSQL.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Mysql.Util.php.html b/docs/files/src.Query.Drivers.Mysql.Util.php.html similarity index 91% rename from docs/files/Query.Drivers.Mysql.Util.php.html rename to docs/files/src.Query.Drivers.Mysql.Util.php.html index f141d92..ab112a8 100644 --- a/docs/files/Query.Drivers.Mysql.Util.php.html +++ b/docs/files/src.Query.Drivers.Mysql.Util.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/MysqlUtil.php

+

src/Query/Drivers/MysqlUtil.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Pdo_firebird.Driver.php.html b/docs/files/src.Query.Drivers.Pdo_firebird.Driver.php.html similarity index 91% rename from docs/files/Query.Drivers.Pdo_firebird.Driver.php.html rename to docs/files/src.Query.Drivers.Pdo_firebird.Driver.php.html index 7618ab2..cee4704 100644 --- a/docs/files/Query.Drivers.Pdo_firebird.Driver.php.html +++ b/docs/files/src.Query.Drivers.Pdo_firebird.Driver.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/Pdo_firebirdDriver.php

+

src/Query/Drivers/Pdo_firebirdDriver.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Firebird.SQL.php.html b/docs/files/src.Query.Drivers.Pdo_firebird.SQL.php.html similarity index 91% rename from docs/files/Query.Drivers.Firebird.SQL.php.html rename to docs/files/src.Query.Drivers.Pdo_firebird.SQL.php.html index 9252503..11825a5 100644 --- a/docs/files/Query.Drivers.Firebird.SQL.php.html +++ b/docs/files/src.Query.Drivers.Pdo_firebird.SQL.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/FirebirdSQL.php

+

src/Query/Drivers/Pdo_firebirdSQL.php

Query

Free Query Builder / Database Abstraction Layer

@@ -318,7 +318,7 @@

Classes

- +
SQLSQL Firebird Specific SQL
@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Firebird.Util.php.html b/docs/files/src.Query.Drivers.Pdo_firebird.Util.php.html similarity index 91% rename from docs/files/Query.Drivers.Firebird.Util.php.html rename to docs/files/src.Query.Drivers.Pdo_firebird.Util.php.html index 7c9cff0..672ffa0 100644 --- a/docs/files/Query.Drivers.Firebird.Util.php.html +++ b/docs/files/src.Query.Drivers.Pdo_firebird.Util.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/FirebirdUtil.php

+

src/Query/Drivers/Pdo_firebirdUtil.php

Query

Free Query Builder / Database Abstraction Layer

@@ -318,7 +318,7 @@

Classes

- +
UtilUtil Firebird-specific backup, import and creation methods
@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Pgsql.Driver.php.html b/docs/files/src.Query.Drivers.Pgsql.Driver.php.html similarity index 91% rename from docs/files/Query.Drivers.Pgsql.Driver.php.html rename to docs/files/src.Query.Drivers.Pgsql.Driver.php.html index a3921a9..781b817 100644 --- a/docs/files/Query.Drivers.Pgsql.Driver.php.html +++ b/docs/files/src.Query.Drivers.Pgsql.Driver.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/PgsqlDriver.php

+

src/Query/Drivers/PgsqlDriver.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Pgsql.SQL.php.html b/docs/files/src.Query.Drivers.Pgsql.SQL.php.html similarity index 91% rename from docs/files/Query.Drivers.Pgsql.SQL.php.html rename to docs/files/src.Query.Drivers.Pgsql.SQL.php.html index 7620f9e..006c5ab 100644 --- a/docs/files/Query.Drivers.Pgsql.SQL.php.html +++ b/docs/files/src.Query.Drivers.Pgsql.SQL.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/PgsqlSQL.php

+

src/Query/Drivers/PgsqlSQL.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Pgsql.Util.php.html b/docs/files/src.Query.Drivers.Pgsql.Util.php.html similarity index 91% rename from docs/files/Query.Drivers.Pgsql.Util.php.html rename to docs/files/src.Query.Drivers.Pgsql.Util.php.html index f43695b..7fdf42a 100644 --- a/docs/files/Query.Drivers.Pgsql.Util.php.html +++ b/docs/files/src.Query.Drivers.Pgsql.Util.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/PgsqlUtil.php

+

src/Query/Drivers/PgsqlUtil.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Sqlite.Driver.php.html b/docs/files/src.Query.Drivers.Sqlite.Driver.php.html similarity index 91% rename from docs/files/Query.Drivers.Sqlite.Driver.php.html rename to docs/files/src.Query.Drivers.Sqlite.Driver.php.html index 3800526..ffd9592 100644 --- a/docs/files/Query.Drivers.Sqlite.Driver.php.html +++ b/docs/files/src.Query.Drivers.Sqlite.Driver.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/SqliteDriver.php

+

src/Query/Drivers/SqliteDriver.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Sqlite.SQL.php.html b/docs/files/src.Query.Drivers.Sqlite.SQL.php.html similarity index 91% rename from docs/files/Query.Drivers.Sqlite.SQL.php.html rename to docs/files/src.Query.Drivers.Sqlite.SQL.php.html index bd22fe1..8778d27 100644 --- a/docs/files/Query.Drivers.Sqlite.SQL.php.html +++ b/docs/files/src.Query.Drivers.Sqlite.SQL.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/SqliteSQL.php

+

src/Query/Drivers/SqliteSQL.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Drivers.Sqlite.Util.php.html b/docs/files/src.Query.Drivers.Sqlite.Util.php.html similarity index 91% rename from docs/files/Query.Drivers.Sqlite.Util.php.html rename to docs/files/src.Query.Drivers.Sqlite.Util.php.html index b241879..c6f70a9 100644 --- a/docs/files/Query.Drivers.Sqlite.Util.php.html +++ b/docs/files/src.Query.Drivers.Sqlite.Util.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

Query/Drivers/SqliteUtil.php

+

src/Query/Drivers/SqliteUtil.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Query_Builder.php.html b/docs/files/src.Query.Query_Builder.php.html similarity index 91% rename from docs/files/Query.Query_Builder.php.html rename to docs/files/src.Query.Query_Builder.php.html index 1c0e762..a073ebb 100644 --- a/docs/files/Query.Query_Builder.php.html +++ b/docs/files/src.Query.Query_Builder.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryQuery_Builder.php

+

src/QueryQuery_Builder.php

Query

Free Query Builder / Database Abstraction Layer

@@ -376,7 +376,7 @@ instantiates the specific db driver

@@ -417,7 +417,7 @@ instantiates the specific db driver

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Query_Builder_Interface.php.html b/docs/files/src.Query.Query_Builder_Interface.php.html similarity index 91% rename from docs/files/Query.Query_Builder_Interface.php.html rename to docs/files/src.Query.Query_Builder_Interface.php.html index 5dd28cd..c7de21b 100644 --- a/docs/files/Query.Query_Builder_Interface.php.html +++ b/docs/files/src.Query.Query_Builder_Interface.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryQuery_Builder_Interface.php

+

src/QueryQuery_Builder_Interface.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.Query_Parser.php.html b/docs/files/src.Query.Query_Parser.php.html similarity index 91% rename from docs/files/Query.Query_Parser.php.html rename to docs/files/src.Query.Query_Parser.php.html index b5762c1..333013d 100644 --- a/docs/files/Query.Query_Parser.php.html +++ b/docs/files/src.Query.Query_Parser.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QueryQuery_Parser.php

+

src/QueryQuery_Parser.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query.SQL_Interface.php.html b/docs/files/src.Query.SQL_Interface.php.html similarity index 91% rename from docs/files/Query.SQL_Interface.php.html rename to docs/files/src.Query.SQL_Interface.php.html index c32013b..309404b 100644 --- a/docs/files/Query.SQL_Interface.php.html +++ b/docs/files/src.Query.SQL_Interface.php.html @@ -114,12 +114,12 @@ @@ -139,45 +139,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -187,17 +187,17 @@
- - Sqlite + + Mysql
-
+
@@ -207,30 +207,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -247,17 +227,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -309,7 +309,7 @@ -

QuerySQL_Interface.php

+

src/QuerySQL_Interface.php

Query

Free Query Builder / Database Abstraction Layer

@@ -375,7 +375,7 @@

@@ -416,7 +416,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/files/Query/Abstract_Driver.php.txt b/docs/files/src/Query/Abstract_Driver.php.txt similarity index 100% rename from docs/files/Query/Abstract_Driver.php.txt rename to docs/files/src/Query/Abstract_Driver.php.txt diff --git a/docs/files/Query/Abstract_Query_Builder.php.txt b/docs/files/src/Query/Abstract_Query_Builder.php.txt similarity index 100% rename from docs/files/Query/Abstract_Query_Builder.php.txt rename to docs/files/src/Query/Abstract_Query_Builder.php.txt diff --git a/docs/files/Query/Abstract_SQL.php.txt b/docs/files/src/Query/Abstract_SQL.php.txt similarity index 100% rename from docs/files/Query/Abstract_SQL.php.txt rename to docs/files/src/Query/Abstract_SQL.php.txt diff --git a/docs/files/Query/Abstract_Util.php.txt b/docs/files/src/Query/Abstract_Util.php.txt similarity index 100% rename from docs/files/Query/Abstract_Util.php.txt rename to docs/files/src/Query/Abstract_Util.php.txt diff --git a/docs/files/Query/BadDBDriverException.php.txt b/docs/files/src/Query/BadDBDriverException.php.txt similarity index 100% rename from docs/files/Query/BadDBDriverException.php.txt rename to docs/files/src/Query/BadDBDriverException.php.txt diff --git a/docs/files/Query/Connection_Manager.php.txt b/docs/files/src/Query/Connection_Manager.php.txt similarity index 97% rename from docs/files/Query/Connection_Manager.php.txt rename to docs/files/src/Query/Connection_Manager.php.txt index 29c3b0a..42c0668 100644 --- a/docs/files/Query/Connection_Manager.php.txt +++ b/docs/files/src/Query/Connection_Manager.php.txt @@ -212,11 +212,11 @@ final class Connection_Manager { { if (strtolower($dbtype) === 'pdo_firebird') $dbtype = 'firebird'; - $pairs = []; + $pairs = array(); if ( ! empty($params->database)) { - $pairs[] = implode('=', ['dbname', $params->database]); + $pairs[] = implode('=', array('dbname', $params->database)); } $skip = array( @@ -234,7 +234,7 @@ final class Connection_Manager { { if (( ! array_key_exists($key, $skip)) && ( ! empty($val))) { - $pairs[] = implode('=', [$key, $val]); + $pairs[] = implode('=', array($key, $val)); } } diff --git a/docs/files/Query/Driver_Interface.php.txt b/docs/files/src/Query/Driver_Interface.php.txt similarity index 100% rename from docs/files/Query/Driver_Interface.php.txt rename to docs/files/src/Query/Driver_Interface.php.txt diff --git a/docs/files/Query/Drivers/Firebird/Driver.php.txt b/docs/files/src/Query/Drivers/Firebird/Driver.php.txt similarity index 100% rename from docs/files/Query/Drivers/Firebird/Driver.php.txt rename to docs/files/src/Query/Drivers/Firebird/Driver.php.txt diff --git a/docs/files/Query/Drivers/Firebird/Result.php.txt b/docs/files/src/Query/Drivers/Firebird/Result.php.txt similarity index 100% rename from docs/files/Query/Drivers/Firebird/Result.php.txt rename to docs/files/src/Query/Drivers/Firebird/Result.php.txt diff --git a/docs/files/Query/Drivers/Firebird/SQL.php.txt b/docs/files/src/Query/Drivers/Firebird/SQL.php.txt similarity index 100% rename from docs/files/Query/Drivers/Firebird/SQL.php.txt rename to docs/files/src/Query/Drivers/Firebird/SQL.php.txt diff --git a/docs/files/Query/Drivers/Firebird/Util.php.txt b/docs/files/src/Query/Drivers/Firebird/Util.php.txt similarity index 100% rename from docs/files/Query/Drivers/Firebird/Util.php.txt rename to docs/files/src/Query/Drivers/Firebird/Util.php.txt diff --git a/docs/files/Query/Drivers/Mysql/Driver.php.txt b/docs/files/src/Query/Drivers/Mysql/Driver.php.txt similarity index 100% rename from docs/files/Query/Drivers/Mysql/Driver.php.txt rename to docs/files/src/Query/Drivers/Mysql/Driver.php.txt diff --git a/docs/files/Query/Drivers/Mysql/SQL.php.txt b/docs/files/src/Query/Drivers/Mysql/SQL.php.txt similarity index 100% rename from docs/files/Query/Drivers/Mysql/SQL.php.txt rename to docs/files/src/Query/Drivers/Mysql/SQL.php.txt diff --git a/docs/files/Query/Drivers/Mysql/Util.php.txt b/docs/files/src/Query/Drivers/Mysql/Util.php.txt similarity index 100% rename from docs/files/Query/Drivers/Mysql/Util.php.txt rename to docs/files/src/Query/Drivers/Mysql/Util.php.txt diff --git a/docs/files/Query/Drivers/Pdo_firebird/Driver.php.txt b/docs/files/src/Query/Drivers/Pdo_firebird/Driver.php.txt similarity index 100% rename from docs/files/Query/Drivers/Pdo_firebird/Driver.php.txt rename to docs/files/src/Query/Drivers/Pdo_firebird/Driver.php.txt diff --git a/docs/files/Query/Drivers/Pdo_firebird/SQL.php.txt b/docs/files/src/Query/Drivers/Pdo_firebird/SQL.php.txt similarity index 100% rename from docs/files/Query/Drivers/Pdo_firebird/SQL.php.txt rename to docs/files/src/Query/Drivers/Pdo_firebird/SQL.php.txt diff --git a/docs/files/Query/Drivers/Pdo_firebird/Util.php.txt b/docs/files/src/Query/Drivers/Pdo_firebird/Util.php.txt similarity index 100% rename from docs/files/Query/Drivers/Pdo_firebird/Util.php.txt rename to docs/files/src/Query/Drivers/Pdo_firebird/Util.php.txt diff --git a/docs/files/Query/Drivers/Pgsql/Driver.php.txt b/docs/files/src/Query/Drivers/Pgsql/Driver.php.txt similarity index 100% rename from docs/files/Query/Drivers/Pgsql/Driver.php.txt rename to docs/files/src/Query/Drivers/Pgsql/Driver.php.txt diff --git a/docs/files/Query/Drivers/Pgsql/SQL.php.txt b/docs/files/src/Query/Drivers/Pgsql/SQL.php.txt similarity index 100% rename from docs/files/Query/Drivers/Pgsql/SQL.php.txt rename to docs/files/src/Query/Drivers/Pgsql/SQL.php.txt diff --git a/docs/files/Query/Drivers/Pgsql/Util.php.txt b/docs/files/src/Query/Drivers/Pgsql/Util.php.txt similarity index 100% rename from docs/files/Query/Drivers/Pgsql/Util.php.txt rename to docs/files/src/Query/Drivers/Pgsql/Util.php.txt diff --git a/docs/files/Query/Drivers/Sqlite/Driver.php.txt b/docs/files/src/Query/Drivers/Sqlite/Driver.php.txt similarity index 100% rename from docs/files/Query/Drivers/Sqlite/Driver.php.txt rename to docs/files/src/Query/Drivers/Sqlite/Driver.php.txt diff --git a/docs/files/Query/Drivers/Sqlite/SQL.php.txt b/docs/files/src/Query/Drivers/Sqlite/SQL.php.txt similarity index 100% rename from docs/files/Query/Drivers/Sqlite/SQL.php.txt rename to docs/files/src/Query/Drivers/Sqlite/SQL.php.txt diff --git a/docs/files/Query/Drivers/Sqlite/Util.php.txt b/docs/files/src/Query/Drivers/Sqlite/Util.php.txt similarity index 100% rename from docs/files/Query/Drivers/Sqlite/Util.php.txt rename to docs/files/src/Query/Drivers/Sqlite/Util.php.txt diff --git a/docs/files/Query/Query_Builder.php.txt b/docs/files/src/Query/Query_Builder.php.txt similarity index 100% rename from docs/files/Query/Query_Builder.php.txt rename to docs/files/src/Query/Query_Builder.php.txt diff --git a/docs/files/Query/Query_Builder_Interface.php.txt b/docs/files/src/Query/Query_Builder_Interface.php.txt similarity index 100% rename from docs/files/Query/Query_Builder_Interface.php.txt rename to docs/files/src/Query/Query_Builder_Interface.php.txt diff --git a/docs/files/Query/Query_Parser.php.txt b/docs/files/src/Query/Query_Parser.php.txt similarity index 100% rename from docs/files/Query/Query_Parser.php.txt rename to docs/files/src/Query/Query_Parser.php.txt diff --git a/docs/files/Query/SQL_Interface.php.txt b/docs/files/src/Query/SQL_Interface.php.txt similarity index 100% rename from docs/files/Query/SQL_Interface.php.txt rename to docs/files/src/Query/SQL_Interface.php.txt diff --git a/docs/graphs/class.html b/docs/graphs/class.html index c1982ee..c463828 100644 --- a/docs/graphs/class.html +++ b/docs/graphs/class.html @@ -91,12 +91,12 @@ @@ -156,7 +156,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/graphs/classes.svg b/docs/graphs/classes.svg index bd6a1be..04bf5e6 100644 --- a/docs/graphs/classes.svg +++ b/docs/graphs/classes.svg @@ -53,7 +53,7 @@ Firebird -cluster_\Query\Drivers\Sqlite +cluster_\Query\Drivers\Mysql @@ -62,20 +62,9 @@ -Sqlite +Mysql -cluster_\Query\Drivers\Pdo_firebird - - - - - - - - -Pdo_firebird - -cluster_\Query\Drivers\Pgsql +cluster_\Query\Drivers\Pgsql @@ -86,7 +75,7 @@ Pgsql -cluster_\Query\Drivers\Mysql +cluster_\Query\Drivers\Sqlite @@ -95,41 +84,21 @@ -Mysql +Sqlite - -\\Query\\Drivers\\Firebird\\SQL - -SQL - - -\\Query\\Abstract_SQL - -«abstract» -Abstract_SQL - - -\\Query\\Drivers\\Firebird\\SQL->\\Query\\Abstract_SQL - - - - -\\Query\\Drivers\\Firebird\\Result - -Result - - -\\PDOStatement - -\PDOStatement - - -\\Query\\Drivers\\Firebird\\Result->\\PDOStatement - - +cluster_\Query\Drivers\Pdo_firebird + + + + + + + + +Pdo_firebird -\\Query\\Drivers\\Firebird\\Driver +\\Query\\Drivers\\Firebird\\Driver Driver @@ -140,158 +109,210 @@ Abstract_Driver -\\Query\\Drivers\\Firebird\\Driver->\\Query\\Abstract_Driver +\\Query\\Drivers\\Firebird\\Driver->\\Query\\Abstract_Driver + +\\Query\\Drivers\\Firebird\\Result + +Result + + +\\PDOStatement + +\PDOStatement + + +\\Query\\Drivers\\Firebird\\Result->\\PDOStatement + + + -\\Query\\Drivers\\Firebird\\Util +\\Query\\Drivers\\Firebird\\Util Util -\\Query\\Abstract_Util +\\Query\\Abstract_Util «abstract» Abstract_Util -\\Query\\Drivers\\Firebird\\Util->\\Query\\Abstract_Util +\\Query\\Drivers\\Firebird\\Util->\\Query\\Abstract_Util - -\\Query\\Drivers\\Sqlite\\Driver + +\\Query\\Drivers\\Firebird\\SQL + +SQL + + +\\Query\\Abstract_SQL + +«abstract» +Abstract_SQL + + +\\Query\\Drivers\\Firebird\\SQL->\\Query\\Abstract_SQL + + + + +\\Query\\Drivers\\Mysql\\Driver Driver - -\\Query\\Drivers\\Sqlite\\Driver->\\Query\\Abstract_Driver + +\\Query\\Drivers\\Mysql\\Driver->\\Query\\Abstract_Driver - -\\Query\\Drivers\\Sqlite\\SQL + +\\Query\\Drivers\\Mysql\\SQL SQL - -\\Query\\Drivers\\Sqlite\\SQL->\\Query\\Abstract_SQL + +\\Query\\Drivers\\Mysql\\SQL->\\Query\\Abstract_SQL - -\\Query\\Drivers\\Sqlite\\Util + +\\Query\\Drivers\\Mysql\\Util Util - -\\Query\\Drivers\\Sqlite\\Util->\\Query\\Abstract_Util + +\\Query\\Drivers\\Mysql\\Util->\\Query\\Abstract_Util - -\\Query\\Drivers\\Pdo_firebird\\SQL - -SQL - - -\\Query\\Drivers\\Pdo_firebird\\SQL->\\Query\\Drivers\\Firebird\\SQL - - - - -\\Query\\Drivers\\Pdo_firebird\\Driver - -Driver - - -\\Query\\Drivers\\Pdo_firebird\\Driver->\\Query\\Abstract_Driver - - - - - -\\Query\\Drivers\\Pdo_firebird\\Util - -Util - - -\\Query\\Drivers\\Pdo_firebird\\Util->\\Query\\Drivers\\Firebird\\Util - - - -\\Query\\Drivers\\Pgsql\\Driver +\\Query\\Drivers\\Pgsql\\Driver Driver -\\Query\\Drivers\\Pgsql\\Driver->\\Query\\Abstract_Driver +\\Query\\Drivers\\Pgsql\\Driver->\\Query\\Abstract_Driver -\\Query\\Drivers\\Pgsql\\Util +\\Query\\Drivers\\Pgsql\\Util Util -\\Query\\Drivers\\Pgsql\\Util->\\Query\\Abstract_Util +\\Query\\Drivers\\Pgsql\\Util->\\Query\\Abstract_Util -\\Query\\Drivers\\Pgsql\\SQL +\\Query\\Drivers\\Pgsql\\SQL SQL -\\Query\\Drivers\\Pgsql\\SQL->\\Query\\Abstract_SQL +\\Query\\Drivers\\Pgsql\\SQL->\\Query\\Abstract_SQL - -\\Query\\Drivers\\Mysql\\Util - -Util - - -\\Query\\Drivers\\Mysql\\Util->\\Query\\Abstract_Util - - - - -\\Query\\Drivers\\Mysql\\SQL - -SQL - - -\\Query\\Drivers\\Mysql\\SQL->\\Query\\Abstract_SQL - - - - -\\Query\\Drivers\\Mysql\\Driver + +\\Query\\Drivers\\Sqlite\\Driver Driver - -\\Query\\Drivers\\Mysql\\Driver->\\Query\\Abstract_Driver + +\\Query\\Drivers\\Sqlite\\Driver->\\Query\\Abstract_Driver - -\\Query\\SQL_Interface - -SQL_Interface + +\\Query\\Drivers\\Sqlite\\SQL + +SQL - -\\Query\\Abstract_SQL->\\Query\\SQL_Interface - - + +\\Query\\Drivers\\Sqlite\\SQL->\\Query\\Abstract_SQL + + + + +\\Query\\Drivers\\Sqlite\\Util + +Util + + +\\Query\\Drivers\\Sqlite\\Util->\\Query\\Abstract_Util + + + + +\\Query\\Drivers\\Pdo_firebird\\Util + +Util + + +\\Query\\Drivers\\Pdo_firebird\\Util->\\Query\\Drivers\\Firebird\\Util + + + + +\\Query\\Drivers\\Pdo_firebird\\Driver + +Driver + + +\\Query\\Drivers\\Pdo_firebird\\Driver->\\Query\\Abstract_Driver + + + + + +\\Query\\Drivers\\Pdo_firebird\\SQL + +SQL + + +\\Query\\Drivers\\Pdo_firebird\\SQL->\\Query\\Drivers\\Firebird\\SQL + + + + +\\Query\\Query_Builder + +Query_Builder + + +\\Query\\Abstract_Query_Builder + +«abstract» +Abstract_Query_Builder + + +\\Query\\Query_Builder->\\Query\\Abstract_Query_Builder + + + + +\\Query\\Query_Builder_Interface + +Query_Builder_Interface + + +\\Query\\Query_Builder->\\Query\\Query_Builder_Interface + + + + +\\Query\\Query_Parser + +Query_Parser \\Query\\BadDBDriverException - -BadDBDriverException + +BadDBDriverException \\InvalidArgumentException @@ -300,64 +321,43 @@ \\Query\\BadDBDriverException->\\InvalidArgumentException - - - - -\\Query\\Abstract_Query_Builder - -«abstract» -Abstract_Query_Builder + + -\\Query\\Connection_Manager - -Connection_Manager - - -\\Query\\Query_Parser - -Query_Parser +\\Query\\Connection_Manager + +Connection_Manager -\\Query\\Driver_Interface +\\Query\\Driver_Interface Driver_Interface -\\Query\\Abstract_Driver->\\Query\\Driver_Interface +\\Query\\Abstract_Driver->\\Query\\Driver_Interface -\\PDO +\\PDO \PDO -\\Query\\Abstract_Driver->\\PDO +\\Query\\Abstract_Driver->\\PDO - -\\Query\\Query_Builder - -Query_Builder + +\\Query\\SQL_Interface + +SQL_Interface - -\\Query\\Query_Builder->\\Query\\Abstract_Query_Builder - - - - -\\Query\\Query_Builder_Interface - -Query_Builder_Interface - - -\\Query\\Query_Builder->\\Query\\Query_Builder_Interface - - + +\\Query\\Abstract_SQL->\\Query\\SQL_Interface + + diff --git a/docs/namespaces/Query.Driver.SQL.html b/docs/namespaces/Query.Driver.SQL.html deleted file mode 100644 index c0b472e..0000000 --- a/docs/namespaces/Query.Driver.SQL.html +++ /dev/null @@ -1,312 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- -

\Query\DriverSQL

- - - -

Interfaces

- - - - - -
SQL_Interfaceparent for database manipulation subclasses
- -

Classes

- - - - - - - - - - - - - - - - - - - - - -
Abstract_SQLparent for database manipulation subclasses
PgSQL_SQLPostgreSQL specifc SQL
MySQL_SQLMySQL specifc SQL
Firebird_SQLFirebird Specific SQL
SQLite_SQLSQLite Specific SQL
-
- - -
- - - -
-
- - -
- - - diff --git a/docs/namespaces/Query.Driver.Util.html b/docs/namespaces/Query.Driver.Util.html deleted file mode 100644 index 8f54083..0000000 --- a/docs/namespaces/Query.Driver.Util.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- -

\Query\DriverUtil

- - - - -

Classes

- - - - - - - - - - - - - - - - - - - - - -
Firebird_UtilFirebird-specific backup, import and creation methods
MySQL_UtilMySQL-specific backup, import and creation methods
SQLite_UtilSQLite-specific backup, import and creation methods
PgSQL_UtilPosgres-specific backup, import and creation methods
Abstract_UtilAbstract class defining database / table creation methods
-
- - -
- - - -
-
- - -
- - - diff --git a/docs/namespaces/Query.Driver.html b/docs/namespaces/Query.Driver.html deleted file mode 100644 index d02a1fb..0000000 --- a/docs/namespaces/Query.Driver.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - Query - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- -

\QueryDriver

- -

Namespaces

- - - - - - - -
Util
SQL
- - -

Interfaces

- - - - - -
Driver_InterfacePDO Interface to implement for database drivers
- -

Classes

- - - - - - - - - - - - - - - - - - - - - - - - - -
Abstract_DriverBase Database class
Firebird_ResultFirebird result class to emulate PDOStatement Class - only implements -data-fetching methods
FirebirdFirebird Database class
SQLiteSQLite specific class
PgSQLPostgreSQL specifc class
MySQLMySQL specific class
-
- - -
- - - -
-
- - -
- - - diff --git a/docs/namespaces/Query.Drivers.Firebird.html b/docs/namespaces/Query.Drivers.Firebird.html index 072fb79..9d15fd2 100644 --- a/docs/namespaces/Query.Drivers.Firebird.html +++ b/docs/namespaces/Query.Drivers.Firebird.html @@ -66,12 +66,12 @@ @@ -91,45 +91,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -139,17 +139,17 @@
- - Sqlite + + Mysql
-
+
@@ -159,30 +159,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -199,17 +179,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -268,21 +268,21 @@

Classes

- - + + - - - - + + + +
SQLFirebird Specific SQLDriverFirebird Database class
Result Firebird result class to emulate PDOStatement Class - only implements data-fetching methods
DriverFirebird Database class
Util Firebird-specific backup, import and creation methods
SQLFirebird Specific SQL
@@ -345,7 +345,7 @@ data-fetching methods

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/namespaces/Query.Drivers.Mysql.html b/docs/namespaces/Query.Drivers.Mysql.html index 253fe77..140cb15 100644 --- a/docs/namespaces/Query.Drivers.Mysql.html +++ b/docs/namespaces/Query.Drivers.Mysql.html @@ -66,12 +66,12 @@ @@ -91,45 +91,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -139,17 +139,17 @@
- - Sqlite + + Mysql
-
+
@@ -159,30 +159,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -199,17 +179,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -268,16 +268,16 @@

Classes

- - + + - - + +
UtilMySQL-specific backup, import and creation methodsDriverMySQL specific class
SQL MySQL specifc SQL
DriverMySQL specific classUtilMySQL-specific backup, import and creation methods
@@ -340,7 +340,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/namespaces/Query.Drivers.Pdo_firebird.html b/docs/namespaces/Query.Drivers.Pdo_firebird.html index ca1bb2c..fcf0bd0 100644 --- a/docs/namespaces/Query.Drivers.Pdo_firebird.html +++ b/docs/namespaces/Query.Drivers.Pdo_firebird.html @@ -66,12 +66,12 @@ @@ -91,45 +91,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -139,17 +139,17 @@
- - Sqlite + + Mysql
-
+
@@ -159,30 +159,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -199,17 +179,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -268,16 +268,16 @@

Classes

- - + + - - + +
SQLFirebird Specific SQLUtilFirebird-specific backup, import and creation methods
Driver Firebird specific class
UtilFirebird-specific backup, import and creation methodsSQLFirebird Specific SQL
@@ -340,7 +340,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/namespaces/Query.Drivers.Pgsql.html b/docs/namespaces/Query.Drivers.Pgsql.html index ffd79bf..e1c51c5 100644 --- a/docs/namespaces/Query.Drivers.Pgsql.html +++ b/docs/namespaces/Query.Drivers.Pgsql.html @@ -66,12 +66,12 @@ @@ -91,45 +91,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -139,17 +139,17 @@
- - Sqlite + + Mysql
-
+
@@ -159,30 +159,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -199,17 +179,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -340,7 +340,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/namespaces/Query.Drivers.Sqlite.html b/docs/namespaces/Query.Drivers.Sqlite.html index a2492c9..8ddb1d5 100644 --- a/docs/namespaces/Query.Drivers.Sqlite.html +++ b/docs/namespaces/Query.Drivers.Sqlite.html @@ -66,12 +66,12 @@ @@ -91,45 +91,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -139,17 +139,17 @@
- - Sqlite + + Mysql
-
+
@@ -159,30 +159,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -199,17 +179,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -340,7 +340,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/namespaces/Query.Drivers.html b/docs/namespaces/Query.Drivers.html index 5d2d5c9..c7f3252 100644 --- a/docs/namespaces/Query.Drivers.html +++ b/docs/namespaces/Query.Drivers.html @@ -66,12 +66,12 @@ @@ -91,45 +91,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -139,17 +139,17 @@
- - Sqlite + + Mysql
-
+
@@ -159,30 +159,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -199,17 +179,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -268,16 +268,16 @@ Firebird - Sqlite - - - Pdo_firebird + Mysql Pgsql - Mysql + Sqlite + + + Pdo_firebird @@ -341,7 +341,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/namespaces/Query.html b/docs/namespaces/Query.html index aec7a7f..8fba9d9 100644 --- a/docs/namespaces/Query.html +++ b/docs/namespaces/Query.html @@ -66,12 +66,12 @@ @@ -91,45 +91,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -139,17 +139,17 @@
- - Sqlite + + Mysql
-
+
@@ -159,30 +159,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -199,17 +179,37 @@
- - Mysql + + Sqlite
-
+
+
+
+
+
+ + @@ -273,36 +273,33 @@

Interfaces

+ + + + - - - -
Query_Builder_InterfaceInterface defining the Query Builder class
Driver_Interface PDO Interface to implement for database drivers
SQL_Interface parent for database manipulation subclasses
Query_Builder_InterfaceInterface defining the Query Builder class

Classes

- - + + - - + + - - - - @@ -310,17 +307,20 @@ Query method - - + + + + + + - - + +
Abstract_UtilAbstract class defining database / table creation methodsQuery_BuilderConvenience class for creating sql queries - also the class that +instantiates the specific db driver
Abstract_SQLparent for database manipulation subclassesQuery_ParserUtility Class to parse sql clauses for properly escaping identifiers
BadDBDriverException Generic exception for bad drivers
Abstract_Query_BuilderAbstract Class for internal implementation methods of the Query Builder
Connection_Manager
Query_ParserUtility Class to parse sql clauses for properly escaping identifiersAbstract_Query_BuilderAbstract Class for internal implementation methods of the Query Builder
Abstract_UtilAbstract class defining database / table creation methods
Abstract_Driver Base Database class
Query_BuilderConvenience class for creating sql queries - also the class that -instantiates the specific db driverAbstract_SQLparent for database manipulation subclasses
@@ -379,7 +379,7 @@ instantiates the specific db driver

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/namespaces/default.html b/docs/namespaces/default.html index 6ec5692..986d515 100644 --- a/docs/namespaces/default.html +++ b/docs/namespaces/default.html @@ -66,12 +66,12 @@ @@ -91,45 +91,45 @@
- + \
-
+
- + Query
-
+
- + Drivers
-
+
- + Firebird
-
+ @@ -139,17 +139,17 @@
- - Sqlite + + Mysql
-
+
@@ -159,30 +159,10 @@
- - Pdo_firebird -
-
-
- - - -
-
-
-
- -
-
-
- + Pgsql
-
+
@@ -199,17 +179,37 @@ -
-
-

Functions

-
- -
- -
-
- -
-

do_include()

- -
do_include(string $path) : void
-

Bulk directory loading workaround for use -with array_map and glob

- - -

Parameters

- - - - - - -
string$path
- - -
-
- -
- -
-
- -
-

mb_trim()

- -
mb_trim(string $string) : string
-

Multibyte-safe trim function

- - -

Parameters

- - - - - - -
string$string
- - -

Returns

- string -
-
- -
- -
-
- -
-

db_filter()

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

Filter out db rows into one array

- - -

Parameters

- - - - - - - - - - - -
array$array
mixed$index
- - -

Returns

- array -
-
- -
- -
-
- -
-

from_camel_case()

- -
from_camel_case(string $input) : string
-

Create a snake_case string from camelCase

- - -

Parameters

- - - - - - -
string$input
- - -

Returns

- string -
-
- -
- -
-
- -
-

array_zipper()

- -
array_zipper(array $zipper_input) : array
-

Zip a set of arrays together on common keys

-

The $zipper_input array is an array of arrays indexed by their place in the output -array.

- -

Parameters

- - - - - - -
array$zipper_input
- - -

Returns

- array -
-
- -
- -
-
- -
-

array_pluck()

- -
array_pluck(array $array, string $key) : array
-

Get an array out of an multi-dimensional array based on a common -key

- - -

Parameters

- - - - - - - - - - - -
array$array
string$key
- - -

Returns

- array -
-
- -
- -
-
- -
-

regex_in_array()

- -
regex_in_array(array $array, string $pattern) : bool
-

Determine whether a value in the passed array matches the pattern -passed

- - -

Parameters

- - - - - - - - - - - -
array$array
string$pattern
- - -

Returns

- bool -
-
- -
- -
-
- -
-

Query()

- -
Query(string|object|array $params) : \Query\Query_Builder|null
-

Connection function

-

Send an array or object as connection parameters to create a connection. If -the array or object has an 'alias' parameter, passing that string to this -function will return that connection. Passing no parameters returns the last -connection created.

- -

Parameters

- - - - - - -
string|object|array$params
- - -

Returns

- \Query\Query_Builder|null -
-
- -
- - +
@@ -841,7 +404,7 @@ connection created.


Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/reports/deprecated.html b/docs/reports/deprecated.html index 4b9fee2..f847d63 100644 --- a/docs/reports/deprecated.html +++ b/docs/reports/deprecated.html @@ -67,12 +67,12 @@ @@ -162,7 +162,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/reports/errors.html b/docs/reports/errors.html index b342dfe..874056b 100644 --- a/docs/reports/errors.html +++ b/docs/reports/errors.html @@ -67,12 +67,12 @@ @@ -92,7 +92,7 @@ +
@@ -159,8 +159,6 @@
-
-
@@ -201,7 +199,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.
diff --git a/docs/reports/markers.html b/docs/reports/markers.html index d433206..9b2ebd9 100644 --- a/docs/reports/markers.html +++ b/docs/reports/markers.html @@ -67,12 +67,12 @@ @@ -91,8 +91,8 @@
@@ -104,11 +104,11 @@
-
- +
+

- Query/Drivers/Pgsql/Util.php + src/Query/Drivers/Pgsql/Util.php 1

@@ -126,7 +126,7 @@
-
+
@@ -167,7 +167,7 @@

Documentation is powered by phpDocumentor and authored - on July 20th, 2015 at 15:20. + on July 29th, 2015 at 16:44.