public function dsql($class = null)
    {
        $class = $class ?: $this->dsql_class;
        $obj = $this->add($class);
        if (!$obj instanceof DB_dsql) {
            throw $this->exception('Specified class must be descendant of DB_dsql')
                ->addMoreInfo('class', $class);
        }

        return $obj;
    }
public function dsql($class = null)
    {
        $class = $class ?: $this->dsql_class;
        $obj = $this->add($class);
        if (!$obj instanceof DB_dsql) {
            throw $this->exception('Specified class must be descendant of DB_dsql')
                ->addMoreInfo('class', $class);
        }

        return $obj;
    }
public function dsql ( $ class = null ) { $ class = $ class ? : $ this -> dsql_class ; $ obj = $ this -> add ( $ class ) ; if ( ! $ obj instanceof DB_dsql ) { throw $ this -> exception ( 'Specified class must be descendant of DB_dsql' ) -> addMoreInfo ( 'class' , $ class ) ; } return $ obj ; }
Returns Dynamic Query object which would be compatible with current
database connection. If you are connected to MySQL, DB_dsql_mysql will
be returned.

@param string $class Override class (e.g. DB_dsql_my)

@return DB_dsql empty dsql object
Returns Dynamic Query object which would be compatible with current database connection . If you are connected to MySQL DB_dsql_mysql will be returned .