Extends to default `PDO` class with capabilities used by other HotMelt classes.
Extensions include a wrapper around \PDO::prepare() that wraps statements in an instance of \HotMelt\PDOStatementDecorator and support for quoting identifiers (\HotMelt\PDO::quoteIdentifier()).
mySQL(string $host, string $db, string $user, string $password) : \HotMelt\PDO
This method will also configure the connection to use the UTF-8 character encoding.
stringThe host to connect to.
stringThe name of the database to use.
stringThe user name to use for authentication.
stringThe password to use for authentication.
\HotMelt\PDO
sqlite(string $path) : \HotMelt\PDO
This method will also configure the connection to use the UTF-8 character encoding.
stringThe path to the Sqlite database file.
\HotMelt\PDO
quoteIdentifier(string $identifier) : string
stringThe identifier to quote.
string
dsn :
| type |
string |
|---|---|