fix: Create Additional README File#43
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Markdown README under includes/ezsql/ to document the bundled ezSQL library and basic usage.
Changes:
- Introduces
includes/ezsql/README.mdwith an overview of ezSQL, feature list, usage, debugging, contribution, and license sections.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # ezSQL Library | ||
|
|
||
| ## Overview | ||
| This directory contains the ezSQL library, a PHP class that simplifies database interactions. Created by Justin Vincent, ezSQL provides an abstraction layer to work seamlessly with databases such as MySQL, Oracle, PostgreSQL, SQLite, and MS-SQL. |
There was a problem hiding this comment.
The overview claims this ezSQL copy supports PostgreSQL and MS-SQL, but this repository’s includes/ezsql/ only contains modules for mysql/, oracle8_9/, and sqlite/ (no postgres/mssql drivers). Please update this sentence to list only the database modules that are actually shipped here to avoid misleading readers.
| This directory contains the ezSQL library, a PHP class that simplifies database interactions. Created by Justin Vincent, ezSQL provides an abstraction layer to work seamlessly with databases such as MySQL, Oracle, PostgreSQL, SQLite, and MS-SQL. | |
| This directory contains the ezSQL library, a PHP class that simplifies database interactions. Created by Justin Vincent, ezSQL provides an abstraction layer to work seamlessly with databases such as MySQL, Oracle, and SQLite. |
| Include the ezSQL library in your project by referencing it in your PHP files: | ||
| ```php | ||
| include_once 'ez_sql.php'; | ||
| ``` | ||
| Create a new database object for interactions: | ||
| ```php | ||
| $db = new db(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); | ||
| ``` |
There was a problem hiding this comment.
The usage example doesn’t match how ezSQL is actually structured/used in this repo: there is no ez_sql.php file here, and the DB classes are ezSQL_mysql, ezSQL_oracle8_9, ezSQL_sqlite, etc. (see includes/db.php and the includes/ezsql/*/demo.php scripts). Please adjust the include and instantiation examples to reference shared/ez_sql_core.php plus the appropriate DB-specific driver, and construct the correct class (e.g., new ezSQL_mysql(...)).
Automated fix by CoderOps.
Swarm: SwarmX2
Task: Create Additional README File