dongmaqiu6084 2013-07-21 20:47
浏览 91

包装器或数据库抽象层

Perhaps a strange question, but what exactly is the difference/similarity between a Wrapper and a Database Abstraction Layer (DAL) for MySQLi or PDO? I can't find much information about them on the internet. I was looking for a script that includes the query's, prepared statements, eg., should I use a wrapper or DAL for that? And when should I use the other one?

Thanks!

  • 写回答

1条回答 默认 最新

  • dtlygweb2017 2013-07-21 20:50
    关注

    Wrapper is something you write around another library for your purposes.

    Take a look at this question:

    Good PHP ORM Library?

    There are lot of alternatives, depending on what framework you are using, most of them have their own wrappers for this purpose.

    Doctrine is pretty popular.

    You can also use Zend Framework and it's data access for that purpose as well.

    Pear has stable data access wrappers.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?