mirror of
https://github.com/danog/ext-pq.git
synced 2024-12-11 08:59:45 +01:00
13 lines
295 B
PHP
13 lines
295 B
PHP
<?php
|
|
function _ext($ext) {
|
|
extension_loaded($ext) or die("skip $ext not loaded");
|
|
}
|
|
_ext("pq");
|
|
include "_setup.inc";
|
|
defined("PQ_DSN") or die("skip PQ_DSN undefined");
|
|
try {
|
|
new pq\Connection(PQ_DSN);
|
|
} catch (pq\Exception $e) {
|
|
die("skip could not connect to PQ_DSN ".$e->getMessage());
|
|
}
|