primal / databasepool
Basic class for managing database configurations and active PDO links.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/primal/databasepool
Requires
- php: >=5.3.10
This package is not auto-updated.
Last update: 2022-02-01 12:23:32 UTC
README
#Primal Database Pool
Created and Copyright 2013 by Jarvis Badgley, chiper at chipersoft dot com.
Primal Database Pool is a basic class for managing database configurations and active PDO links from a central location. It offers an optional singleton interface for maintaining a global instance of the pool.
Primal is a collection of independent micro-libraries.
##Usage
###Adding a configuration
The class currently offers support for three database types:
addMySQL($name, $host, $username, $password[, $database[, $options[, $port]]])
addPostgrSQL($name, $host, $username, $password[, $database[, $options[, $port]]])
addSQLite($name, $database, $username[, $options])
$name
is the name which will be used to retrieve the PDO object.
All of this functions are chainable.