Commit Graph

248 Commits

Author SHA1 Message Date
Timothy Warren d5c8212dd0 Another attempt to get php to use interbase extension 2015-08-26 10:21:12 -04:00
Timothy Warren 056e8bf6d9 Re-add some missing tests, and update README 2015-07-31 10:24:34 -04:00
Timothy Warren 225017adee Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic 2015-07-30 16:40:30 -04:00
Timothy Warren 8511c6a445 Move library into src folder, fix simpletest test runner 2015-07-29 16:51:17 -04:00
Timothy Warren cd7f904889 Add pdo_firebird driver 2015-07-20 15:24:21 -04:00
Timothy Warren 28f5cb2934 Fix Firebird tests and speed up tests by using one database connection for each query builder datbase test 2015-07-17 15:38:06 -04:00
Timothy Warren bfc3ea33ca Reorganize drivers into a more modern layout 2015-07-16 16:56:13 -04:00
Timothy Warren 232761398e Version 2.0.2, Adds checks for constants and functions in the common file 2015-06-04 15:27:55 -04:00
Timothy Warren 6755818232 Fix some issues with multiple array items in where statements 2014-11-07 12:14:46 -05:00
Timothy Warren 023093c1f1 Fix Firebird tests on phpci 2014-07-14 15:17:16 -04:00
Timothy Warren 884aa10a3b Setup phpci 2014-07-11 11:31:29 -04:00
Timothy Warren 7fd90aba76 Remove Table Builder classes 2014-06-30 11:01:44 -04:00
Timothy Warren 1abd835f47 Attempting some Quercus compatibility, test-suite runs with simpletest as well as PHPUnit 2014-06-09 17:02:14 -04:00
Timothy Warren 6a38213a62 Improve some tests and docblocks 2014-04-28 16:41:46 -04:00
Timothy Warren 993a2aba51 Allow camelCase method calls, update interfaces with missing methods 2014-04-24 14:50:53 -04:00
Timothy Warren aa5aa8eb97 Docblock fixes and more dependency injection 2014-04-23 15:53:16 -04:00
Timothy Warren d6c0fd23dc Add update and delete rules to foreign key methods 2014-04-17 16:41:12 -04:00
Timothy Warren 80595dfbbe Update foreign key driver methods to return the same kind of information 2014-04-15 16:15:08 -04:00
Timothy Warren 32696a53ff Flesh out the table builder a bit, and add some missing driver methods to SQLite 2014-04-10 15:54:43 -04:00
Timothy Warren 3ce35d78d2 Fix tests, by fixing some issues with auto-prefixing table names 2014-04-09 10:30:01 -04:00
Timothy Warren 74d4a00eef Test improvements 2014-04-08 17:13:41 -04:00
Timothy Warren 303eda1567 Fix sql test errors 2014-04-08 15:38:18 -04:00
Timothy Warren b40b085ae5 Add test sql files 2014-04-08 15:18:51 -04:00
Timothy Warren d06a3eda0d Add method to get indexes for the current table 2014-04-08 14:26:28 -04:00
Timothy Warren 2af3b0be9f Add method to retrieve foreign keys for a table to driver classes 2014-04-07 16:49:49 -04:00
Timothy Warren 3eeea75b54 Cut down on some duplication, and increase test coverage 2014-04-03 16:49:01 -04:00
Timothy Warren a3339200f0 Rename db_util to abstract_util, mark create_table method as deprecated 2014-04-03 14:44:03 -04:00
Timothy Warren 4809016c31 Add insert_batch methods to Firebird and SQLite 2014-04-03 13:28:30 -04:00
Timothy Warren e3fdad5206 Namespaces! 2014-04-02 17:08:50 -04:00
Timothy Warren 02d4e0e52e improve query builder and connection manager, skip coverage of some soon-to-be-removed methods 2014-04-02 10:31:59 -04:00
Timothy Warren a04b8b44ff Improve code coverage on a few stupid spots 2014-04-01 14:54:38 -04:00
Timothy Warren 32a01a66e8 Update docs, composer and README 2014-03-31 16:01:58 -04:00
Timothy Warren 7cf3c436dd Breakout Query function into its own class 2014-03-31 12:47:07 -04:00
Timothy Warren 22f28b766b Remove PDO_Firebird driver 2014-03-26 20:54:40 -04:00
Timothy Warren 846e68acc4 Add interface for pdo drivers to enforce the same interface on the Firebird driver 2014-03-26 20:49:33 -04:00
Timothy Warren 5e464ef158 Remove some dead code, update docs 2014-03-17 19:34:48 -04:00
Timothy Warren 00374bbde3 Start of pdo_firebird driver 2014-03-01 01:28:42 +00:00
Timothy Warren 620441a9a3 Better test coverage 2014-02-25 13:47:35 -05:00
Timothy Warren 1e5d941eb4 Update docs 2014-02-25 11:33:18 -05:00
Timothy Warren 4702ccb2b3 No more skipped tests, and minor update to query formatting 2014-02-21 15:02:41 -05:00
Timothy Warren 81692053ed Better Firebird test coverage 2014-02-20 11:00:18 -05:00
Timothy Warren 003991659a Fix failing test on HHVM 2014-02-20 10:31:54 -05:00
Timothy Warren 484548dc49 Remove PHP 5.2 from testing 2014-02-19 13:45:05 -05:00
Timothy Warren 0b6a3aeef5 Fix test broken by invalid test parameters 2014-02-18 19:45:08 -05:00
Timothy Warren 96f55f2ef5 100% code coverage of the base classes 2014-02-18 19:29:58 -05:00
Timothy Warren 1095e85762 Fix some docblocks, and update test files to 2014 2014-02-18 15:18:01 -05:00
Timothy Warren f6d50c678b Fix some test issues and allow persistent database connections 2014-02-18 14:50:20 -05:00
Timothy Warren deb9237532 Fix coverage by moving phpunit folder back into tests 2014-02-17 21:48:08 -05:00
Timothy Warren df84a3fe70 Work around MySQL issues in testsuite 2014-02-17 20:10:47 -05:00
Timothy Warren 348967d17a Skip QB tests for Postgres if the class isn't loaded 2014-02-17 19:34:47 -05:00
Timothy Warren 2465941fdf Skip Postgres tests if the class isn't loaded 2014-02-17 19:12:53 -05:00
Timothy Warren fa3c3efb38 Move phpunit xml file into a sane place 2014-02-17 17:07:17 -05:00
Timothy Warren a443bbc86d Fix Firebird loading issue for tests 2014-02-14 22:52:56 -05:00
Timothy Warren fabedc1d7f Add include for Firebird class so that testsuite works 2014-02-14 22:30:28 -05:00
Timothy Warren 8da96c7c2f Another go 2014-02-14 22:27:01 -05:00
Timothy Warren 5125ac4e31 Convert test suite to use PHPUnit 2014-02-14 22:08:19 -05:00
Timothy Warren 4cb7c97c60 Minor query formatting changes 2014-02-14 10:38:25 -05:00
Timothy Warren bed0d1bb04 Improve code coverage 2014-02-11 14:29:41 -05:00
Timothy Warren d4e99aa5cd Test and doc updates 2014-02-07 16:53:01 -05:00
Timothy Warren 7c0b951539 More firebird coverage 2014-02-07 15:43:25 -05:00
Timothy Warren 29f824b562 Reorganize sqlite tests and improve coverage 2014-02-07 14:18:08 -05:00
Timothy Warren 1e31196dee Add another test and try again 2014-02-06 17:07:29 -05:00
Timothy Warren c07a4fcf14 Update sqlite test for explain, attempt firebird tests on Travis CI 2014-02-06 16:48:52 -05:00
Timothy Warren 8d7b73a9a3 Tracking down a test bug for sqlite 2014-02-06 16:15:23 -05:00
Timothy Warren 8dc2079d43 Add `explain` method to query builder 2014-02-04 20:59:30 -05:00
Timothy Warren 73d6e72afc Improve test coverage of sql driver 2013-12-09 20:11:49 -05:00
Timothy Warren 4678e289aa 100% coverage of Query Builder class, remove some undocumented/unused code. 2013-12-09 19:46:34 -05:00
Timothy Warren 7397b95e8b Fix broken tests 2013-12-06 23:37:43 -05:00
Timothy Warren c53024ae6a Fix some issues with the grouping commands, and greatly expand test coverage 2013-12-06 23:00:32 -05:00
Timothy Warren 6dfb94b375 supress stupid error on bad connection test 2013-05-29 14:06:09 -04:00
Timothy Warren 9578e43722 set error mode in pdo constructor 2013-05-29 13:57:08 -04:00
Timothy Warren cd338e5aea update tests
Assume mysql is installed rather than postgres. Sqlite can not be
assumed because it will create a database if none exists.
2013-05-29 12:23:49 -04:00
Timothy Warren f6bfe414e6 Add insert batch as a function to overwrite in drivers 2013-05-03 13:07:34 -04:00
Timothy Warren 4ee865ac6d Remove insert batch, as it only works for MySQL and Postgres 2013-05-02 12:51:53 -04:00
Timothy Warren c4ec46eae4 Fix sql tests? 2013-05-02 11:59:43 -04:00
Timothy Warren 40c76b2653 Changed invalid methods to return NULL instead of FALSE, added insert_batch 2013-05-01 15:59:23 -04:00
Timothy Warren 842b4b5fd4 Fixed bug with handling functions in select 2013-04-25 08:15:56 -04:00
Timothy Warren 6959b614ab Better query logging 2013-02-28 12:22:55 -05:00
Timothy Warren e10eebb302 Removed object references 2013-02-07 16:21:02 -05:00
Timothy Warren 0e44bbaf0d Update year 2013-01-02 14:26:42 -05:00
Timothy Warren 785e5f2e1f Add interfaces 2012-12-18 16:19:52 -05:00
Timothy Warren 5a626629d7 Enable Query() function as a alias function 2012-11-08 20:02:31 -05:00
Timothy Warren 6875de3e7c Create query() method to handle database connections instead of Query_Builder class 2012-11-08 14:28:49 -05:00
Timothy Warren 47d493537e Remove some extra recursion and explicitly call more methods 2012-11-07 20:48:15 -05:00
Timothy Warren 60d5d99ee3 Fix test prefix 2012-11-07 08:46:04 -05:00
Timothy Warren 5ca46798ca Misc typo fixes, fixes #4' 2012-11-07 08:42:34 -05:00
Timothy Warren 6ecfb40c87 More cleanup/ refactoring 2012-10-31 20:21:15 +00:00
Timothy Warren 9078e19961 Documenation update and more fat trimming 2012-10-30 16:14:57 +00:00
Timothy Warren 3de38cd953 Some refactoring to eliminate some redundancy 2012-10-30 14:37:32 +00:00
Timothy Warren ee6f946782 Fix out-of-order where/set statements 2012-10-25 00:19:39 +00:00
Timothy Warren b1624e2f95 Remove more references, and update README 2012-10-23 13:40:11 +00:00
Timothy Warren 27318506d0 Fix num_rows() method 2012-09-27 17:41:29 +00:00
Timothy Warren 10de783b14 Fix contributing file, beginning of prefixes 2012-09-25 17:16:36 +00:00
Timothy Warren 13a37e10f2 Remove some references, and add autoload parameter to composer.json 2012-09-25 14:16:01 +00:00
Timothy Warren 559f3ab13a Update readme and added 'get_compiled_' methods to query builder 2012-09-13 15:44:57 +00:00
Timothy Warren 92c989e6f8 Add array of executed queries 2012-09-12 13:55:04 +00:00
Timothy Warren 4c546ed3e9 Fix issue with Query_Builder->where_in() method 2012-08-24 16:17:08 +00:00
Timothy Warren a4f730b081 Fixed issue with multiple fields in order_by, removed extranious spaces in SQL generation 2012-08-23 01:17:27 +00:00
Timothy Warren 90c6760196 Parsed join conditions fixes #2 2012-08-09 16:15:36 +00:00
Timothy Warren 6a89b48fe8 Beginning of query parser 2012-08-02 15:59:11 +00:00