WIP on PHP (Leaf) version
This commit is contained in:
15
src/app/documents/functions.php
Normal file
15
src/app/documents/functions.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
use BitBadger\PgSQL\Documents\Configuration;
|
||||
|
||||
if (!function_exists('pdo')) {
|
||||
/**
|
||||
* Return the active PostgreSQL PDO object
|
||||
*
|
||||
* @return \PDO The data connection from the configuration
|
||||
*/
|
||||
function pdo()
|
||||
{
|
||||
return Configuration::getConn();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user