Home Backend Development PHP Tutorial 关于PEAR:DB_DataObject,该如何解决

关于PEAR:DB_DataObject,该如何解决

Jun 13, 2016 am 10:11 AM
db

关于PEAR::DB_DataObject
项目目录为DBTest

数据库名称为db_object_test,库下有四个表。

目录下有配置文件DB_DataObject.ini

[DB_DataObject]
databse = mysql://root:[email protected]/db_object_test
schema_location = DBTables
class_location = DBTables/
class_prefix = DBTables_



目录下有php文件CreatDBTables.php

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php require_once 'DB/DataObject/Generator.php';    $config = parse_ini_file("DB_DataObject.ini", true);    $options = &PEAR::getStaticProperty('DB_DataObject','options');    $options = $config['DB_DataObject'];    if (!$options){        PEAR::raiseError("\nerror\n", null, PEAR_ERROR_DIE);        exit;    }    set_time_limit(0);    DB_DataObject::debugLevel(1);    $generator = new DB_DataObject_Generator;    $generator->start();?>
Copy after login


此外目录下还有目录DBTables。

运行php文件,本来应该能够在DBTables下生成4个php文件分别存放着对应数据表的实体类。
但是运行结果只显示:

DB_DataObject_Generator: 0: DONE

而且DBTables中并无生成php文件。

请问为什么?


------解决方案--------------------
不用的。。
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Comparison and differences of SQL syntax between Oracle and DB2 Comparison and differences of SQL syntax between Oracle and DB2 Mar 11, 2024 pm 12:09 PM

Oracle and DB2 are two commonly used relational database management systems, each of which has its own unique SQL syntax and characteristics. This article will compare and differ between the SQL syntax of Oracle and DB2, and provide specific code examples. Database connection In Oracle, use the following statement to connect to the database: CONNECTusername/password@database. In DB2, the statement to connect to the database is as follows: CONNECTTOdataba

Comparative analysis of Oracle and DB2 database technology Comparative analysis of Oracle and DB2 database technology Mar 11, 2024 am 09:54 AM

Oracle and DB2 are two well-known relational database management systems (RDBMS) that are widely used in enterprise applications. In this article, we will compare the two database technologies of Oracle and DB2 and analyze them in detail, including analysis of their characteristics, performance, functions and usage examples. 1. Overview of Oracle database technology Oracle is a relational database management system developed by Oracle Corporation of the United States. It is widely used in enterprise-level applications and has strong performance and stability.

Comparative analysis of Oracle and DB2 database performance Comparative analysis of Oracle and DB2 database performance Mar 09, 2024 pm 10:00 PM

Oracle and DB2 databases are two leading relational database management systems that are widely used in enterprise-level applications. In practical applications, database performance is often one of the important indicators for evaluating the quality of a database system. This article will conduct a comparative analysis of the performance of Oracle and DB2 databases, and use specific code examples to demonstrate the differences between them. 1. Oracle database performance analysis Oracle database is a powerful database management system with good scalability and stability.

What file format is db? What file format is db? May 19, 2021 am 11:56 AM

db is the abbreviation of "datebase", which is a format of "database file". It is a file used by software to store data, which is equivalent to a database. Each software has its own storage format. For example, "Thumbs.db" under Win7 system is a thumbnail data file, so the db file is not a specific file format.

What is the file format of db? What is the file format of db? Mar 07, 2023 pm 05:27 PM

db is a database file format, which is a file used by software to store data. It is equivalent to a database. Each software has its own storage format, that is, the way the data is arranged; the suffix of some software data files is DB. For example, Thumbs.db under Win7 system is a thumbnail data file; therefore, the db file is not a specific file format.

Comparison of features between Oracle and DB2 database management systems Comparison of features between Oracle and DB2 database management systems Mar 11, 2024 am 08:57 AM

Oracle and DB2 are two common relational database management systems, each with their own unique characteristics and advantages. This article will compare the characteristics of Oracle and DB2, and provide specific code examples to illustrate the differences between them. 1. Characteristics of Oracle database management system: Storage engine: Oracle database uses its own unique storage engine, called Oracle Database Engine (OracleDatabaseEngine), which can handle large-scale data storage.

How to assess and reduce the risks of MySQL to DB2 technology transformation? How to assess and reduce the risks of MySQL to DB2 technology transformation? Sep 08, 2023 pm 04:10 PM

How to assess and reduce the risks of MySQL to DB2 technology transformation? Overview: As enterprise business develops and needs change, there may be a need to migrate the MySQL database to a DB2 database. However, database migration inherently carries certain risks, especially when different database technologies are involved. This article will explore how to assess and reduce the risks of MySQL to DB2 technology transformation, and provide some code examples to help readers better understand this process. 1. Risk assessment: Technical transformation from MySQL to DB2

How to quickly carry out the technical transformation from MySQL to DB2? How to quickly carry out the technical transformation from MySQL to DB2? Sep 08, 2023 pm 03:57 PM

How to quickly carry out the technical transformation from MySQL to DB2? In modern enterprises, databases are key data storage and management tools. As the size of enterprise data continues to increase and the business develops, it is sometimes necessary to convert the database from one type to another. This article will discuss how to quickly perform the technical transformation from MySQL to DB2, and provide some code examples to help readers better understand and practice. 1. Understand the differences between DB2 and MySQL. Before starting the technology transformation, we first need to understand the difference between DB2 and MySQL.

See all articles