8000 GitHub - met-moon/db: db database
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

met-moon/db

Repository files navigation

db

A database connection based on pdo

<?php

// get a connection

$config = [
    'dsn'=>'mysql:host=localhost;dbname=test',
    'username'=>'root',
    'password'=>'root'
];
$db = new Moon\Db\Connection($config);

//get pdo instance
try{
    $db->getPdo();
}catch (PDOException $e){
    echo $e->getMessage();
}

About

db database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0