src/flowcode/ceibo/data/PDOMySqlDataSource.php
function getConnection() {
        try {
            if (is_null($this->conn)) {
                $this->conn = new PDO($this->getDbDsn(), $this->getDbUser(), $this->getDbPass());
            }
            return $this->conn;
        } catch (PDOException $e) {
            print "Error!: " . $e->getMessage() . "<br/>";
            die();
        }
    }
function getConnection() {
        try {
            if (is_null($this->conn)) {
                $this->conn = new PDO($this->getDbDsn(), $this->getDbUser(), $this->getDbPass());
            }
            return $this->conn;
        } catch (PDOException $e) {
            print "Error!: " . $e->getMessage() . "<br/>";
            die();
        }
    }
function getConnection ( ) { try { if ( is_null ( $ this -> conn ) ) { $ this -> conn = new PDO ( $ this -> getDbDsn ( ) , $ this -> getDbUser ( ) , $ this -> getDbPass ( ) ) ; } return $ this -> conn ; } catch ( PDOException $ e ) { print "Error!: " . $ e -> getMessage ( ) . "<br/>" ; die ( ) ; } }
Open a mysql connection.
@return type
@throws Exception
Open a mysql connection .