extends abstract class Phalcon\Db\Adapter
implements Phalcon\Events\EventsAwareInterface
Source on GitHub
Phalcon\Db\Adapter\Pdo is the Phalcon\Db that internally uses PDO to connect to a database
use Phalcon\Db\Adapter\Pdo\Mysql;
$config = [
'host' => 'localhost',
'dbname' => 'blog',
'port' => 3306,
'username' => 'sigma',
'password' => 'secret'
];
$connection = new Mysql($config);
Methods
public __construct (array $descriptor)
Constructor for Phalc