[commits] [Wiki] changed: Doc/Dev/ConversionH4

Jan Schneider jan at horde.org
Mon Mar 14 17:16:19 UTC 2011


jan  Mon, 14 Mar 2011 17:16:19 +0000

Modified page: http://wiki.horde.org/Doc/Dev/ConversionH4
New Revision:  1.13
Change log:  Merge with Doc/Dev/DbH4

@@ -56,11 +56,18 @@
  All database abstraction is done through the Horde_Db library now.

  Cheat sheet for converting PEAR::DB calls to Horde_Db calls:

-||~PEAR DB||~Horde_Db||
-||getOne()||selectValue()||
-||select()||execute()/insert()/update()/delete()||
+||~ PEAR DB                          ||~ Horde_Db                      
        ||
+|| select()                          ||  
execute()/insert()/update()/delete() ||
+|| getAll() (w/DB_FETCHMODE_ORDERED) || ??                             
        ||
+|| getAll() (w/DB_FETCHMODE_ASSOC)   || selectAll()                    
        ||
+|| getAssoc()                        || selectAssoc()                  
        ||
+|| getCol()                          || selectValues()                 
        ||
+|| getOne()                          || selectValue()                  
        ||
+|| getRow()                          || selectOne()                    
        ||
+
+select() return a statement object from the SQL query.

  ++ Error Handling

  Don't use Horde::fatal() directly - throw an Exception and if  
uncaught, a fatal exception handler will be triggered.



More information about the commits mailing list