Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: DB layer 2.0.

Development:DB layer 2.0: Difference between revisions

From MoodleDocs
No edit summary
(added basic info about objectives)
Line 1: Line 1:
COMING SOON
== Objectives ==
 
* Switch to prepared statements - using placeholders and preparing statements protects against sql injection
* Remove the need for data to be add/strip slashed all over the place in the code.
* Make it so that the database object can be subclassed - this means for unit tests that want to test database access, the test framework can override necessary methods
 


== Ideas ==
== Ideas ==

Revision as of 13:15, 28 April 2008

Objectives

  • Switch to prepared statements - using placeholders and preparing statements protects against sql injection
  • Remove the need for data to be add/strip slashed all over the place in the code.
  • Make it so that the database object can be subclassed - this means for unit tests that want to test database access, the test framework can override necessary methods


Ideas