One write, run anywhere

Source: Internet
Author: User
Tags mdb database pear php database
PHP database APIs have different functions for different databases. For a long time, someone has tried to encapsulate PHP's object-oriented functions. Among them, there is a famous ADODB, PHPLIB. Later, pear db was one of the most popular PEAR projects. These packages encapsulated with object-oriented database APIs are generally called the database abstraction layer.
This article introduces the efficiency-oriented and easy-to-use feature of the Metabase database integrated by PEAR databases. The author is the creator of MDB.
For the latest original and translated PHP/PEAR files that I recently followed, visit my homepage.
Write once-run anywhere
One write ?? Run anywhere
Pear mdb Database login action Layer
Pear mdb Database abstraction layer
Author: Lukas Smith
Translator: taowen
While this is a Java marketing phrase it is also a key feature of PHP. using business models depend on operation system independence to ensure that products can be sold to a wide range of MERS. so why lock yourself in with a specific database vendor? Database isolation action layers allow you to develop your application independent of a database. But often they eat more performance than you are willing to give or they do not abstract enough to eliminate all database specific code.
This is a marketing slogan of Java, but it is also one of the key features of PHP. Many business models rely on operating system independence to ensure that products can be sold to a wide range of customers. Therefore, why do you need to tie yourself to a database vendor? The database abstraction layer allows you to develop your applications independently from the database. However, in general, their impact on performance exceeds what you want, or they are not abstract enough to eliminate all code related to a specific database.
What will this article teach me?
What will this article teach me?
This article will give a good introduction to the database operation action package pear mdb. the focus will be explaining the more advanced features of MDB like data type into action and the XML based schema management that go beyond what other similar packages offer. A basic level of understanding of PHP and SQL is recommended.
This article will give a good introduction to the database abstraction package pear mdb. The focus of this article will be on more advanced features provided by MDB over similar packages, such as data type abstraction and XML-based schema management. The basic understanding of PHP and SQL is recommended.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.