# Class Opencart\System\Library\DB\PDO

Class PDO

Located at system\library\db\pdo.php

Methods
`public` | `__construct(string $hostname, string $username, string $password, string $database, string $port = '')` Constructor Constructor | #
`public` | `query(string $sql): stdClass|true` Query Query | #
`public` | `escape(string $value): string` Escape Escape | #
`public` | `countAffected(): int` countAffected countAffected | #
`public` | `getLastId(): ?int` getLastId getLastId | #
`public` | `isConnected(): bool` isConnected isConnected | #
`public` | `__destruct()` Destructor Closes the DB connection when this object is destroyed. Destructor Closes the DB connection when this object is destroyed. | #

OpenCart API API documentation generated by ApiGen dev-master