加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-13 18:02:32 所属栏目:百科 来源:网络整理
导读: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

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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读