Changes between Version 2 and Version 3 of PhpDb

Show
Ignore:
Author:
Nicolas (IP: 201.212.44.26)
Timestamp:
12/22/07 17:28:02 (2 years ago)
Comment:

Formatting

Legend:

Unmodified
Added
Removed
Modified
  • PhpDb

    v2 v3  
    33BOINC's PHP code uses the following classes for DB access: 
    44 
    5  Class !DbConn ([source:trunk/boinc/html/inc/db_conn.inc html/inc/db_conn.inc]):: Represents a connection to a particular database (not just to a server). The class functions prepend the database name to table names in queries, so there is no confusion if you use multiple databases at once. All MySQL-specific PHP functions (`mysql_query()`, etc.) are called only from this class. 
     5 Class {{{DbConn}}} ([source:trunk/boinc/html/inc/db_conn.inc html/inc/db_conn.inc]):: Represents a connection to a particular database (not just to a server). The class functions prepend the database name to table names in queries, so there is no confusion if you use multiple databases at once. All MySQL-specific PHP functions (`mysql_query()`, etc.) are called only from this class. 
    66 
    7  Class !BoincUser, !BoincTeam, etc. ([source:trunk/boinc/html/inc/boinc_db.inc html/inc/boinc_db.inc]):: Each class represents a particular table in the BOINC database, and provides functions for selecting, inserting, updating and enumerating rows. These functions take care of initializing the !DbConn layer - you don't have to do this directly. 
     7 Class {{{BoincUser}}}, {{{BoincTeam}}}, etc. ([source:trunk/boinc/html/inc/boinc_db.inc html/inc/boinc_db.inc]):: Each class represents a particular table in the BOINC database, and provides functions for selecting, inserting, updating and enumerating rows. These functions take care of initializing the {{{DbConn}}} layer - you don't have to do this directly. 
    88 
    99All PHP code should use these classes exclusively for accessing the DB. 

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.