Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once(RL_LIB_DIR . '/extras/PostgreSQLProvider.class.php');
- class Database extends PostgreSQLProvider {
- protected function connectRead () {
- static $conn;
- if ($conn === null) {
- $conn = pg_connect('user=werd password=DBPASS dbname=werd');
- }
- return $conn;
- }
- protected function connectWrite () {
- return $this->connectRead();
- }
- }
Add Comment
Please, Sign In to add comment