Commit Graph

73 Commits

Author SHA1 Message Date
Timothy Warren e9e03953a7 Moved protected query builder methods to abstract class 2014-03-27 15:46:28 -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 56c061a7d1 Split _compile method in query_builder class 2014-03-20 11:57:50 -04:00
Scrutinizer Auto-Fixer 2b4154a91b Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/timw4mail/Query/inspections/89ed2aa4-7aae-45bb-9289-ebb27a60ef13

Enabled analysis tools:
 - PHP Analyzer
 - PHP Copy/Paste Detector
 - PHP PDepend
2014-03-18 00:35:25 +01:00
Timothy Warren 5e464ef158 Remove some dead code, update docs 2014-03-17 19:34:48 -04:00
Timothy Warren 3c16ca7253 Fix error in < 5.3 in Query Builder 2014-02-21 15:08:00 -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 df84a3fe70 Work around MySQL issues in testsuite 2014-02-17 20:10:47 -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 65ff7d8d03 Remove extraneous quotes from input queries 2014-02-10 15:01:46 -05:00
Timothy Warren 56ea38ccad Fix some Firebird issues, and make util class available from the Query Builder class 2014-02-10 13:35:57 -05:00
Timothy Warren 8dc2079d43 Add `explain` method to query builder 2014-02-04 20:59:30 -05:00
Timothy Warren 6dc9ed0d52 Update copyright for the new year 2014-01-02 12:36:50 -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 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 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 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 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
Kieren Eaton 81dcd40daa Fixed AS issue when field names contain 'as' e.g. taskid 2012-09-25 12:52:28 +08: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
Timothy Warren 84d5bd492b Remove extra argument from exception 2012-07-27 16:11:43 +00:00
Timothy Warren 9d8d07958f Minor tweaks to exceptions 2012-07-27 16:05:29 +00:00
Timothy Warren d9a4b5fbe5 Added exception for invalid drivers 2012-07-26 17:21:24 +00:00
Timothy Warren 1e71b225c5 Make mysql/postgres drivers compatible with Quercus 2012-07-05 14:19:49 -04:00
Timothy Warren f555b179b4 Optimize foreach loops: 2012-05-14 13:33:41 -04:00
Timothy Warren eb5d30ab21 Improve 'type_list' methods 2012-05-08 15:37:36 -04:00
Timothy Warren e4acfda004 Add list_types abstract method to db_sql class 2012-05-07 16:05:51 -04:00
Timothy Warren 942d21a1b8 Fix tweaks 2012-05-02 12:59:52 -04:00
Timothy Warren dcdf581998 Database connection tweaks 2012-05-02 12:53:34 -04:00
Timothy Warren 31ba0881ea Remove echoing of sql statements 2012-05-01 14:19:34 -04:00