public function parse($query=null)
    {
        $query = $this->checkQuery($query);
        
        // sql log
        Ioc::logger('db')->debug($query->all());
        
        return $this->getParser()->parse($query);
    }
public function parse($query=null)
    {
        $query = $this->checkQuery($query);
        
        // sql log
        Ioc::logger('db')->debug($query->all());
        
        return $this->getParser()->parse($query);
    }
public function parse ( $ query = null ) { $ query = $ this -> checkQuery ( $ query ) ; // sql log Ioc :: logger ( 'db' ) -> debug ( $ query -> all ( ) ) ; return $ this -> getParser ( ) -> parse ( $ query ) ; }
parse query option to sql
@param  mixed  $query \Wslim\Db\Query|array
@return string $sql
parse query option to sql