Download the PHP package porthorian/pdo-wrapper without Composer
On this page you can find all versions of the php package porthorian/pdo-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download porthorian/pdo-wrapper
More information about porthorian/pdo-wrapper
Files in porthorian/pdo-wrapper
Download porthorian/pdo-wrapper
More information about porthorian/pdo-wrapper
Files in porthorian/pdo-wrapper
Vendor porthorian
Package pdo-wrapper
Short Description A PDO Database wrapper for ease of use.
License MIT
Package pdo-wrapper
Short Description A PDO Database wrapper for ease of use.
License MIT
Please rate this library. Is it a good library?
Informations about the package pdo-wrapper
PDO-Wrapper
A Mysql Singleton PDO Database Wrapper for ease of use.
Usage
Adding a Database Pool for connecting.
Using the client
DBWrapper will be your entry point to almost all queries that you will probably ever have to do. There are a variety of functions that do different things that allow you to execute your SQL related queries.
These are the functions that are commonly used but there are more inside DBWrapper that are static functions.
- execute - Execute a raw sql statement with no prepared statement support. Fetches all the rows from the query and loads it into memory
- PExecute - Used to executed prepared statements with delinated by ?. The result set is exactly like execute.
- PResult - This is an iterator based. Meaning it does not load the result set into memory it will use a mysql cursor to iterate through the rows.
Exception Handling
All errors are handled by an exception.
- Any SQL related error will throw a DatabaseException with the parent exception containing a PDOException with the information.
- Any configuration error will throw a InvalidArgumentException
All versions of pdo-wrapper with dependencies
PHP Build Version
Package Version
Requires
ext-pdo Version
*
ext-pdo_mysql Version *
php Version ^8.0
ext-pdo_mysql Version *
php Version ^8.0
The package porthorian/pdo-wrapper contains the following files
Loading the files please wait ....