您的位置:首页 > 数据库 > MySQL

Aprial 9th Monday (四月 九日 月曜日)

2007-04-10 11:41 471 查看
  Today I created a abstract layer for accessing a database in PHP.  This class includes such operator
 as "connect", "disconnect", "executeQuery", and so forth.  My purpose is to provide a uniform interface
of accessing database.  So, I created two sub classes of that class.  One is to access MySQL database.
Another is to access PostgreSQL database.

  To seek a property sub classes I created a special class to adapt a sub class in according to a argument.
That is a factory class, in acutal fact, it is a adaptation. 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息