mirror of
https://github.com/danog/ext-pq.git
synced 2024-11-26 20:04:44 +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());
|
|
}
|