aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
AgeCommit message (Collapse)Author
2011-01-06Refs #1242, Fixes #2775. Pulled common code between get_data() and ↵brettp
get_data_row() into elgg_query_runner(). Caching is now done in the query runner instead of spread across execute_query() and get_data*(). Namespacing cache for callback and single row request. I'm open to better names for that function. Not closing #1242 because the elgg_get_entities*() functions can still return false. git-svn-id: http://code.elgg.org/elgg/trunk@7849 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-22Refs #2673 moved changes into trunk from 1.7 branchcash
git-svn-id: http://code.elgg.org/elgg/trunk@7417 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-10Fixes #2367: With fear and trepidation, converting events/plugin hooks to ↵ewinslow
use elgg_ prefixed versions git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-03Refs #1320. Updated core to use elgg_echo()'s native string replacement.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7227 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30ripped out last remaining tentacles of old installer from core - just needs ↵cash
removal of install.php when elgg_view() is updated git-svn-id: http://code.elgg.org/elgg/trunk@7141 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-28Standardized code in all of core, not including language files, tests, or ↵brettp
core mods. git-svn-id: http://code.elgg.org/elgg/trunk@7124 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-20Refs #2474 - merged [6976] from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@7103 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-10removed function replaced by installercash
git-svn-id: http://code.elgg.org/elgg/trunk@7043 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-13Refs #2450: Really removed the @uses and @see tags.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6931 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-13Refs #2450: Removing @see and @uses. Replaced NB: with English phrases.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6930 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-08Refs #2450: Documentation added for database functions.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6919 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-22Merged r6757:6810 from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6850 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-22Merged r6701:6756 from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6849 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-04-05Merged 5530:5604 from 1.7 to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5622 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Adding some \ns between the SQL error and the query in the database exception.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3891 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-10Fixes #1432: Version number is set during installation.brettp
Refs #1424: The upgrade functions now detect if no version number is saved to the db and silences all upgrade warnings and errors. This is required for all installations < this commit to upgrade correctly because of #1432. More strict regex for finding upgrade files. Upgrade mysql.sql schema with latest. git-svn-id: http://code.elgg.org/elgg/trunk@3791 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-31Closes #1424: Faulty database migrations will now halt an upgrade.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3783 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-20cleaned up logic on db query cachecash
git-svn-id: http://code.elgg.org/elgg/trunk@3773 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-17fixed warning due to database query cachecash
git-svn-id: http://code.elgg.org/elgg/trunk@3765 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-19Replacing a direct call to error_log() with new elgg_log().nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3564 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-16Rewriting core debug messages to be more informative.nickw
Introducing the concept of levels for Elgg debugging: notices, warnings and errors are displayed when the appropriate debugging level is enabled. An additional level of "debug" exists to differentiate from errors. git-svn-id: http://code.elgg.org/elgg/trunk@3560 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-07database.php now more closely matches coding standards.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3515 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-07Fixes #1181: UTF8 now correctly stored in database.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3514 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-31All line endings are now Unix-style.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3451 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-20Whoa nelly this is a big one: Removed license and copyright for files.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3427 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-06-02Removed some error messagesmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@3317 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-22Refs #965: Allowing upgrades to be loaded from other locations.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3301 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-19Refs #1027: Introducing $CONFIG->db_disable_query_cache which allows ↵marcus
disabling of query cache for implementation in CLI mode git-svn-id: https://code.elgg.org/elgg/trunk@3296 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-04-08Added callback support to get_data_row()marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3192 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-30Closes #875: Using db linkmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@3181 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-02Corrected unnecessarily patriotic comments.ben
git-svn-id: https://code.elgg.org/elgg/trunk@3017 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-13Added lazy database connections to delay establishing the db link until ↵marcus
actually required - will allow for future lite/static content endpoints that bypass db connections and session creation. git-svn-id: https://code.elgg.org/elgg/trunk@2733 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-23Refs #706marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2611 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-07Profiling now showing queries executed before debug flag being setmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2426 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-06* Database functions optimised and centralised a bitmarcus
* Caching now caches queries which return no data * Introducing execute_delayed_query family for executing queries AFTER the page has loaded. git-svn-id: https://code.elgg.org/elgg/trunk@2414 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-05Revert use of memcache for database query cachemarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2403 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-04More tweaksmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2400 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-04Moved caching to function so it can be easily replacedmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2390 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-03Database using new memory cache objectmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2385 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-03Experimental database query caching, please report problems asap.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2383 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-03Experimental database query caching, please report problems asap.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2381 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-31Closes #493: Moved database queries out of module and in to core in line ↵marcus
with best practice. git-svn-id: https://code.elgg.org/elgg/trunk@2369 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-07Closes #409: PHP update script to update core addedmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2208 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-01Fixes #395marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2157 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-09-23The database schema will now automatically update itself on upgrade.ben
git-svn-id: https://code.elgg.org/elgg/trunk@2107 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-09-20Apparently non-p connections are better in many cases, see ↵marcus
http://www.slideshare.net/techdude/how-to-kill-mysql-performance git-svn-id: https://code.elgg.org/elgg/trunk@2101 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-09-06Fixes #330: I implemented the changes you suggested (except for quotes ↵marcus
around the table name). What problems did you encounter? git-svn-id: https://code.elgg.org/elgg/trunk@2055 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-19Refs #266: Error given if no database has been set up.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2017 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-19Refs #256: Basic installation parameters checked.marcus
Fixes #266: If the install flag isn't set then elgg_view will no longer attempt to load data from the database. git-svn-id: https://code.elgg.org/elgg/trunk@2016 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-07-08Removing annoying warning messagesben
git-svn-id: https://code.elgg.org/elgg/trunk@1328 36083f99-b078-4883-b0ff-0f9b5a30f544