summaryrefslogtreecommitdiff
path: root/idiorm.php
AgeCommit message (Collapse)Author
2013-01-04Issue #74 escaping quote symbols in "_quote_identifier_part"Simon Holywell
2013-01-03Issue #90 When using set_expr alone it doesn't trigger query creationSimon Holywell
2013-01-03Change code to use get_last_statementSimon Holywell
2013-01-03Add access to PDOStatement via get_last_statementtag
2013-01-03Fix last insert ID not being returned with postgresql, take 2.Kaspars Foigts
2012-11-29Merge branch 'master' into developSimon Holywell
Conflicts: README.markdown
2012-11-29Closes issue #85 Implement is_new() in IdiormSimon Holywell
2012-11-28Remove 5.3 static call. Closes issue #78Simon Holywell
2012-11-26Add raw_execute() to ORMtag
2012-11-26Fixed query logging for delete_many; added unit test for delete_manytag
2012-11-23Multiple connection support for Idiormtag
Mutiple connections code, including documentation and unit tests. Utilizes key names to distinguish connections, but uses a default connection if none specified. I don't (yet) use multiple connections in my work (it's pending), so this has not been tested "in the wild". Added unit tests with additional connections, ran unit tests for Paris against this build too, so an unmodified Paris is forward-compatible with this commit (mulitple connections support not yet coded for Paris). Does *NOT* add support for queries across multiple connections. (I don't even want to go there ...) ##### Edge-case compatibility breaks: * ORM::_setup_identifier_quote_character visibility was changed to protected (which was likely original intent, judging by prefixed name) * May break compatibility if ORM has been extended, **and** subclasses directly utilize `::_config`, `::_db`, `::_query_log`, or `::_query_cache` instead of using pre-existing accessor methods. (Paris does not do this; all Paris tests pass) * Re-use of `Tester` class outside of Idiorm repo, as `Tester::check_equal()` was renamed to `Tester::check_equal_query()` ##### Other notes New method: `ORM::get_connection_keys()`. New `Tester` method: `Tester::check_equal_string()`. TODO: Consider adding methods to get (connection-specific) configuration info.
2012-11-21Add raw_execute() to ORMtag
2012-11-21Fixed query logging for delete_many; added unit test for delete_manytag
2012-11-15Fix bug where input parameters were sent as part-indexed, part associative arraygerard sychay
2012-11-15Fix bug caused by custom exception not extending base exceptionSimon Holywell
2012-11-14Correct replace_outside_quotes error handlingSimon Holywell
2012-11-14Issue #57 _log_query errors when given raw ? or %Simon Holywell
Thanks to Jeff Roberson <[email protected]> for his regex skills.
2012-11-12Issue #17 Add find_array methodSimon Holywell
2012-11-12allow unsetting of valuesClaus Beerta
2012-11-12Allow Deletion of multiple rows by adding WHERE abilityClaus Beerta
2012-11-12Handle ambiguous column names when joining two tablesgerard sychay
2012-11-12Add set_expr() closing issues #43 & #59Simon Holywell
2012-11-12Issue #24 Add group_by_expr functionSimon Holywell
2012-11-12Issue #16 Aggregate function supportSimon Holywell
2012-11-12select_many and select_many_expr issues #49 and #69Simon Holywell
2012-11-09Closes Issue #58 Create then save a default empty row w/ParisSimon Holywell
2012-11-08Escape sprintf % chars in queriesKunio Murasawa
Thanks m92o
2012-08-28Minor tweaks to formatting on class and documentationDurham Hale
2012-08-28Merge remote-tracking branch 'jordanlev/configure-with-array' into developDurham Hale
2012-08-28Merge remote-tracking branch 'sandermarechal/set-array' into developDurham Hale
2012-08-28Merge remote-tracking branch 'sandermarechal/raw-query' into developDurham Hale
2011-05-15configure() function can now accept an array of settings (also updated ↵Jordan Lev
README to reflect this)
2011-03-03Rename order_raw to order_by_exprSander Marechal
2011-03-03Update multiple properties at onceSander Marechal
This change alters the `set` method so you can update multiple properties at once, by passing an associative array top `set`.
2011-03-02Allow raw queries without parametersSander Marechal
This is useful for e.g. MySQL `LOCK TABLE` or SQLite `VACUUM` commands which usually do not require parameters.
2011-03-02Add support for raw `ORDER BY` clauses.Sander Marechal
This is useful when you need to order results by something other than a column name, like the output of an SQL function.
2011-01-30Issue #12: Fix incorrect quoting of column wildcard. Thanks pewterfish.Jamie Matthews
2011-01-24Fix out-of-date comment and typo in READMEJamie Matthews
2011-01-22Add support for GROUP BY - issue #13Jamie Matthews
2011-01-22Add support for DISTINCT - issue #13Jamie Matthews
2011-01-10Guard against missing result in count methodJamie Matthews
2011-01-10Refactor and simplify count() methodJamie Matthews
This method was previously using _run directly, and was incorrectly assuming the result would contain a single associative array (row) instead of an array containing one row. Now uses find_one directly, which is much cleaner and simpler anyway.
2011-01-09Fix cache key generation bugJamie Matthews
2011-01-08Add simple query caching - issue #11Jamie Matthews
2011-01-08Refactor the way query results are fetched internally.Jamie Matthews
Previously, the _run method returned an executed PDOStatement object, which find_one and find_many then manually fetched the rows from. Now, _run does the fetching, and returns an array of rows (each as an associative array).
2011-01-08Add is_dirty method to check whether a field has modifiedJamie Matthews
2010-11-15Add __isset magic method. Fixes ↵Jamie Matthews
https://github.com/bobthecow/mustache.php/issues#issue/22
2010-11-03Add where_null and where_not_null methods. Thanks for the suggestion, artcijsgJamie Matthews
2010-11-03Parameters to where_raw method are now optionalJamie Matthews
2010-11-03Add where_not_equal method. Thanks for the suggestion, arcijsgJamie Matthews